equal
deleted
inserted
replaced
194 (** instrumentalization **) |
194 (** instrumentalization **) |
195 |
195 |
196 fun evaluation_code thy module_name tycos consts = |
196 fun evaluation_code thy module_name tycos consts = |
197 let |
197 let |
198 val ctxt = Proof_Context.init_global thy; |
198 val ctxt = Proof_Context.init_global thy; |
199 val program = Code_Thingol.consts_program thy false consts; |
199 val program = Code_Thingol.consts_program thy consts; |
200 val (ml_modules, target_names) = |
200 val (ml_modules, target_names) = |
201 Code_Target.produce_code_for thy |
201 Code_Target.produce_code_for thy |
202 target NONE module_name [] program (map Constant consts @ map Type_Constructor tycos); |
202 target NONE module_name [] program (map Constant consts @ map Type_Constructor tycos); |
203 val ml_code = space_implode "\n\n" (map snd ml_modules); |
203 val ml_code = space_implode "\n\n" (map snd ml_modules); |
204 val (consts', tycos') = chop (length consts) target_names; |
204 val (consts', tycos') = chop (length consts) target_names; |