Skip to content

Commit

Permalink
Disable VeyMontToolPaper tests while stratified permissions are imple…
Browse files Browse the repository at this point in the history
…mented
  • Loading branch information
bobismijnnaam committed May 31, 2024
1 parent 1d24a5e commit f937072
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/rewrite/vct/rewrite/veymont/StratifyExpressions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ case class StratifyExpressions[Pre <: Generation]()
foldAny(e.t)(
exprs.map {
case e: ChorExpr[Pre] => (None, e)
case e: ChorPerm[Pre] => (None, e)
case expr => point(expr)
}.map {
case (Some(endpoint), expr) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ case class StratifyUnpointedExpressions[Pre <: Generation]()
def stratifyExpr(expr: Expr[Pre]): Expr[Post] = {
implicit val o = expr.o
foldAny(expr.t)(unfoldStar(expr).flatMap {
case expr: EndpointExpr[Pre] => Seq(expr.rewriteDefault())
case expr @ (_: EndpointExpr[Pre] |
_: ChorExpr[Pre] | _: ChorPerm[Pre]) =>
Seq(expr.rewriteDefault())
case expr =>
currentParticipants.top.map { endpoint =>
EndpointExpr[Post](succ(endpoint), dispatch(expr))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ class VeyMontToolPaperSpec extends VercorsSpec {
val applicability = s"$wd/applicability"
val paperExamples = s"$wd/paper-examples"

vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/2pc-3.pvl"
vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/2pc-5.pvl"
vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/consensus-3.pvl"
vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/consensus-5.pvl"
vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/election-3.pvl"
vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/election-5.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/2pc-3.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/2pc-5.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/consensus-3.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/consensus-5.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/election-3.pvl"
// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$applicability/election-5.pvl"

// vercors should verify using silicon flag "--veymont-generate-permissions" example s"$paperExamples/veymont-swap.pvl"

vercors should verify using silicon flag "--veymont-generate-permissions" example s"$paperExamples/veymont-swap.pvl"
// Slow because of generated permisissions. Can fix when VeyMont has permission support.
// (vercors
// should verify
Expand Down
2 changes: 1 addition & 1 deletion test/main/vct/test/integration/helper/ExampleFiles.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case object ExampleFiles {
"examples/concepts/resourceValues",
"examples/technical/veymont",
"examples/concepts/veymont",
"concepts/veymont/generatedPermissions",
"examples/publications/2023/VeyMontToolPaper",
).map(_.replaceAll("/", File.separator))

val IGNORE_EXTS: Seq[String] = Seq(".h", ".bib", ".xml")
Expand Down

0 comments on commit f937072

Please sign in to comment.