Replaced all but one occurrence of perm_simp_tac by perm_simproc_app,
since perm_simp_tac now behaves in a different way (due to changes
in swap_simps).
structure Codegen =
struct
val arbitrary_option : 'a option = NONE;
fun dummy_option [] = arbitrary_option
| dummy_option (x :: xs) = SOME x;
end; (*struct Codegen*)