Skip to content
Snippets Groups Projects
Commit 31db59f9 authored by Régis Blanc's avatar Régis Blanc
Browse files

that benchmark was checking for not equals bug

parent a4df62f9
No related branches found
No related tags found
No related merge requests found
import leon.annotation._ import leon.annotation._
import leon.lang._ import leon.lang._
object Rationals { object NotEquals {
// Represents n/d // Represents n/d
case class Q(n: BigInt, d: BigInt) case class Q(n: BigInt, d: BigInt)
def op(a: Q, b: Q) = { def op(a: Q, b: Q) = {
require(isRational(a) && isRational(b)) require(isRational(a) && isRational(b))
Q(a.n + b.n, a.d) Q(a.n + b.n, a.d)
} ensuring { } ensuring {
isRational(_) isRational(_)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment