equal
deleted
inserted
replaced
80 #> Value.add_evaluator ("simp", dynamic_eval_value o ProofContext.theory_of); |
80 #> Value.add_evaluator ("simp", dynamic_eval_value o ProofContext.theory_of); |
81 |
81 |
82 |
82 |
83 (* evaluation with freezed code context *) |
83 (* evaluation with freezed code context *) |
84 |
84 |
85 fun static_eval_conv thy some_ss consts = no_frees_conv (Code_Preproc.pre_post_conv thy |
85 fun static_eval_conv thy some_ss consts = no_frees_conv |
86 ((rewrite_modulo thy some_ss o snd o snd o Code_Thingol.consts_program thy false) consts)); |
86 (Code_Thingol.static_eval_conv_simple thy consts (rewrite_modulo thy some_ss)); |
87 |
87 |
88 fun static_eval_tac thy some_ss consts = CONVERSION (static_eval_conv thy some_ss consts) |
88 fun static_eval_tac thy some_ss consts = CONVERSION (static_eval_conv thy some_ss consts) |
89 THEN' conclude_tac thy some_ss; |
89 THEN' conclude_tac thy some_ss; |
90 |
90 |
91 end; |
91 end; |