src/Tools/Code/code_simp.ML
changeset 38671 febcd1733229
parent 38669 9ff76d0f0610
child 38759 37a9092de102
equal deleted inserted replaced
38670:3c7db0192db9 38671:febcd1733229
    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;