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

Construct to write invariant

parent b47356fe
Branches
Tags
No related merge requests found
......@@ -9,4 +9,10 @@ object Utils {
}
implicit def any2IsValid(x: Boolean) : IsValid = new IsValid(x)
object InvariantFunction {
def invariant(x: Boolean): Unit = ()
}
implicit def while2Invariant(u: Unit) = InvariantFunction
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment