Skip to content

Commit

Permalink
Annotate correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
colder committed Aug 24, 2015
1 parent 63ff8d3 commit fcac011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions library/lang/Rational.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ case class Rational(numerator: BigInt, denominator: BigInt) {
}
}

@library
object Rational {

implicit def bigIntToRat(n: BigInt): Rational = Rational(n, 1)
Expand Down
4 changes: 2 additions & 2 deletions library/proof/Internal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import leon.lang._
import leon.annotation._

/** Internal helper classes and methods for the 'proof' package. */
@library
object Internal {

/*** Helper classes for relational reasoning ***/

@library
case class WithRel[A, B](x: A, r: (A, B) => Boolean, prop: Boolean) {

/** Continue with the next relation. */
Expand All @@ -33,6 +32,7 @@ object Internal {
def qed: Boolean = prop
}

@library
case class WithProof[A, B](
x: A, r: (A, B) => Boolean, proof: Boolean, prop: Boolean) {

Expand Down

0 comments on commit fcac011

Please sign in to comment.