src/HOL/Boogie/Tools/boogie_commands.ML
changeset 50214 67fb9a168d10
parent 49866 619acbd72664
child 51658 21c10672633b
equal deleted inserted replaced
50213:7b73c0509835 50214:67fb9a168d10
   300     scan_val "without" vc_labels >> VC_Without) ||
   300     scan_val "without" vc_labels >> VC_Without) ||
   301   Scan.succeed VC_Complete
   301   Scan.succeed VC_Complete
   302 
   302 
   303 val _ =
   303 val _ =
   304   Outer_Syntax.command @{command_spec "boogie_vc"}
   304   Outer_Syntax.command @{command_spec "boogie_vc"}
   305     "enter into proof mode for a specific verification condition"
   305     "enter into proof mode for a specific Boogie verification condition"
   306     (vc_name -- vc_opts >> (fn args =>
   306     (vc_name -- vc_opts >> (fn args =>
   307       (Toplevel.print o Toplevel.theory_to_proof (boogie_vc args))))
   307       (Toplevel.print o Toplevel.theory_to_proof (boogie_vc args))))
   308 
   308 
   309 
   309 
   310 val quick_timeout = 5
   310 val quick_timeout = 5
   332 fun status_cmd f = Toplevel.no_timing o Toplevel.keep (fn state =>
   332 fun status_cmd f = Toplevel.no_timing o Toplevel.keep (fn state =>
   333   f (Toplevel.theory_of state))
   333   f (Toplevel.theory_of state))
   334 
   334 
   335 val _ =
   335 val _ =
   336   Outer_Syntax.improper_command @{command_spec "boogie_status"}
   336   Outer_Syntax.improper_command @{command_spec "boogie_status"}
   337     "show the name and state of all loaded verification conditions"
   337     "show the name and state of all loaded Boogie verification conditions"
   338     (status_test >> status_cmd ||
   338     (status_test >> status_cmd ||
   339      status_vc >> status_cmd ||
   339      status_vc >> status_cmd ||
   340      Scan.succeed (status_cmd boogie_status))
   340      Scan.succeed (status_cmd boogie_status))
   341 
   341 
   342 
   342