This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
20 lines
434 B
Text
20 lines
434 B
Text
-- works
|
|
#guard_msgs in
|
|
def go (numDigits : Nat) : Nat :=
|
|
if 4*numDigits < 64 then
|
|
go (numDigits+1)
|
|
else
|
|
numDigits
|
|
termination_by 64 - 4*numDigits
|
|
|
|
-- set_option trace.Elab.definition.wf true
|
|
-- set_option debug.rawDecreasingByGoal true
|
|
|
|
#guard_msgs(pass trace, all) in
|
|
def foo (numDigits : Nat) : Nat :=
|
|
let sz := 4*numDigits
|
|
if sz < 64 then
|
|
foo (numDigits+1)
|
|
else
|
|
numDigits
|
|
termination_by 64 - 4*numDigits
|