Skip to content

Commit

Permalink
Update HOTest.scala
Browse files Browse the repository at this point in the history
I think the decreases annotation is not necessary here.
  • Loading branch information
drganam authored and mario-bucev committed May 14, 2024
1 parent d3e7f44 commit 924f987
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontends/benchmarks/termination/valid/HOTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import math._
object HOTest {
def hoRecur(x: BigInt, f: BigInt => BigInt): BigInt = {
require(x >= 0 && forall((x: BigInt) => f(x) < x && f(x) >= 0))
decreases(abs(x))
if (x <= 0) BigInt(0)
else
hoRecur(f(x), f)
Expand Down

0 comments on commit 924f987

Please sign in to comment.