lean4-htt/tests/lean/run/basic_monitor1.lean
2017-03-09 18:41:19 -08:00

12 lines
273 B
Text

meta def basic_monitor : vm_monitor nat :=
{ init := 0, step := λ s, return (trace ("step " ++ s^.to_string) (s+1)) >> failure }
run_cmd vm_monitor.register `basic_monitor
set_option debugger true
def f : nat → nat
| 0 := 0
| (a+1) := f a
#eval trace "a" (f 4)