src/HOL/Tools/Predicate_Compile/code_prolog.ML
changeset 70308 7f568724d67e
parent 69593 3dda49e08b9d
child 73233 4d36070bdbf4
equal deleted inserted replaced
70307:53d21039518a 70308:7f568724d67e
  1016   let
  1016   let
  1017     val ctxt = Toplevel.context_of state
  1017     val ctxt = Toplevel.context_of state
  1018     val t = Syntax.read_term ctxt raw_t
  1018     val t = Syntax.read_term ctxt raw_t
  1019     val t' = values ctxt soln t
  1019     val t' = values ctxt soln t
  1020     val ty' = Term.type_of t'
  1020     val ty' = Term.type_of t'
  1021     val ctxt' = Variable.auto_fixes t' ctxt
  1021     val ctxt' = Proof_Context.augment t' ctxt
  1022     val _ = tracing "Printing terms..."
  1022     val _ = tracing "Printing terms..."
  1023   in
  1023   in
  1024     Print_Mode.with_modes print_modes (fn () =>
  1024     Print_Mode.with_modes print_modes (fn () =>
  1025       Pretty.block [Pretty.quote (Syntax.pretty_term ctxt' t'), Pretty.fbrk,
  1025       Pretty.block [Pretty.quote (Syntax.pretty_term ctxt' t'), Pretty.fbrk,
  1026         Pretty.str "::", Pretty.brk 1, Pretty.quote (Syntax.pretty_typ ctxt' ty')]) ()
  1026         Pretty.str "::", Pretty.brk 1, Pretty.quote (Syntax.pretty_typ ctxt' ty')]) ()