lean2/tests/lean/interactive/t4.input
Leonardo de Moura 891a3fb48b feat(frontends/lean): add command block reader with snapshot and resume
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-14 14:13:32 -07:00

26 lines
No EOL
547 B
Text

variable N : Type.{1}
print "block 1"
#SNAPSHOT
variable f : N -> N
variable g : N -> N
#SNAPSHOT
check N
print "before restore"
#RESTORE 3
-- Restore will remove all lines >= 3
-- You will be able to reuse the first snapshot
print "after restore"
print "only once"
check N
variable f : N -> N
#RESTORE 6
-- Restore will remove all lines >= 6
print "after second restore"
#RESTART
variable N : Type.{1}
print "block 1"
-- Restore will remove all lines >= 3
-- You will be able to reuse the first snapshot
print "after restore"
check N
print "done"