src/Tools/Code/code_preproc.ML
changeset 40176 d88c47ca4557
parent 40167 e44d04716920
child 41184 5c6f44d22f51
equal deleted inserted replaced
40168:1c7e836872b0 40176:d88c47ca4557
   479     val vs' = Term.add_tfrees t' [];
   479     val vs' = Term.add_tfrees t' [];
   480     val consts = fold_aterms
   480     val consts = fold_aterms
   481       (fn Const (c, _) => insert (op =) c | _ => I) t' [];
   481       (fn Const (c, _) => insert (op =) c | _ => I) t' [];
   482     val (algebra', eqngr') = obtain false thy consts [t'];
   482     val (algebra', eqngr') = obtain false thy consts [t'];
   483   in
   483   in
   484     evaluator algebra' eqngr' vs' t'
   484     t'
       
   485     |> evaluator algebra' eqngr' vs'
   485     |> postproc (postprocess_term thy o resubst)
   486     |> postproc (postprocess_term thy o resubst)
   486   end;
   487   end;
   487 
   488 
   488 fun static_eval_conv thy consts conv =
   489 fun static_eval_conv thy consts conv =
   489   let
   490   let