test/Tools/isac/ProgLang/auto_prog.sml
changeset 60650 06ec8abfd3bc
parent 60618 46f1c75d4f75
child 60660 c4b24621077e
equal deleted inserted replaced
60649:b2ff1902420f 60650:06ec8abfd3bc
   150 val thy = @{theory (** )"Poly" ( **) Rational(**) (*required for rls "norm_Rational"*)}
   150 val thy = @{theory (** )"Poly" ( **) Rational(**) (*required for rls "norm_Rational"*)}
   151 val ctxt = Proof_Context.init_global thy
   151 val ctxt = Proof_Context.init_global thy
   152 val auto_script = 
   152 val auto_script = 
   153   Auto_Prog.gen thy @{term "ttt :: real"} (get_rls ctxt "norm_Rational");
   153   Auto_Prog.gen thy @{term "ttt :: real"} (get_rls ctxt "norm_Rational");
   154 writeln(UnparseC.term auto_script);
   154 writeln(UnparseC.term auto_script);
   155 TermC.atomty auto_script;
   155 TermC.atom_trace_detail @{context} auto_script;
   156 (*** 
   156 (*** 
   157 *** Const (Program.Stepwise, 'z => 'z => 'z)
   157 *** Const (Program.Stepwise, 'z => 'z => 'z)
   158 *** . Free (t_t, 'z)
   158 *** . Free (t_t, 'z)
   159 *** . Const (Program.Seq, ('a => 'a) => ('a => 'a) => 'a => 'a)
   159 *** . Const (Program.Seq, ('a => 'a) => ('a => 'a) => 'a => 'a)
   160 *** . . Const (Program.Try, ('a => 'a) => 'a => 'a)
   160 *** . . Const (Program.Try, ('a => 'a) => 'a => 'a)