Skip to content

Commit

Permalink
Trying out different mask axioms/triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers committed Jul 15, 2023
1 parent 792aa3d commit c9a9f0a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/main/resources/mask_axioms.smt2
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
($Hp.get_$Perm ($Hp.maskAdd m r1 v) r2)
(+ ($Hp.get_$Perm m r2) (ite (= r1 r2) v 0.0)))
:pattern (($Hp.get_$Perm ($Hp.maskAdd m r1 v) r2))
;:pattern (($Hp.get_$Perm m r2))
:qid |qp.$Hp.maskAdd-def-inner|
))
:pattern (($Hp.maskAdd m r1 v))
Expand Down Expand Up @@ -103,4 +104,17 @@
)))
:pattern (($Hp.maskGoodField m))
:qid |qp.$Hp.maskGoodField-def|
)))


(assert (forall ((m $Hp<$Perm>) (r $Ref) (v Real)) (!
(=> ($Hp.maskGoodField m)
(and (>=
($Hp.get_$Perm ($Hp.maskAdd m r v) r)
0.0)
(<=
($Hp.get_$Perm ($Hp.maskAdd m r v) r)
1.0)))
:pattern (($Hp.maskGoodField ($Hp.maskAdd m r v)))
:qid |qp.$Hp.maskGoodFieldAdd-def|
)))
2 changes: 1 addition & 1 deletion src/main/scala/decider/TermToSMTLib2Converter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class TermToSMTLib2Converter
case GoodMask(mask) =>
parens(text("$Hp.maskGood") <+> render(mask))

case GoodMask(mask) =>
case GoodFieldMask(mask) =>
parens(text("$Hp.maskGoodField") <+> render(mask))

case DummyHeap(sort) =>
Expand Down

0 comments on commit c9a9f0a

Please sign in to comment.