renamed simpset_of to global_simpset_of, and local_simpset_of to simpset_of -- same for claset and clasimpset;
structure Codegen =
struct
val arbitrary_option : 'a option = NONE;
fun dummy_option [] = arbitrary_option
| dummy_option (x :: xs) = SOME x;
end; (*struct Codegen*)