Skip to content

Commit

Permalink
Add simple test suite for bounded unfolding
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 22, 2019
1 parent f2bea54 commit a15660e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .larabot.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
commands = [
"sbt -batch -Dparallel=5 test"
"sbt -batch -Dparallel=5 it:test"
"sbt -batch -Dparallel=1 it:testOnly *SMTZ3Unroll*"
]

nightly {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ class SMTZ3VerificationSuite extends VerificationSuite {
}
}

class SMTZ3UnrollBoundVerificationSuite(unrollBound: Int, unrollFactor: Int) extends SMTZ3VerificationSuite {
override def configurations = super.configurations.map {
seq => Seq(
inox.solvers.unrolling.optUnrollBound(unrollBound),
inox.solvers.unrolling.optUnrollFactor(unrollFactor),
) ++ seq
}
}

class SMTZ3UnrollBoundOneOneSuite extends SMTZ3UnrollBoundVerificationSuite(1, 1)
class SMTZ3UnrollBoundOneTwoSuite extends SMTZ3UnrollBoundVerificationSuite(1, 2)
class SMTZ3UnrollBoundTwoOneSuite extends SMTZ3UnrollBoundVerificationSuite(2, 1)
class SMTZ3UnrollBoundTwoTwoSuite extends SMTZ3UnrollBoundVerificationSuite(2, 2)

class CodeGenVerificationSuite extends SMTZ3VerificationSuite {
override def configurations = super.configurations.map {
seq => Seq(
Expand Down

0 comments on commit a15660e

Please sign in to comment.