Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ class DefaultHeapModule(val verifier: Verifier)

If(UnExp(Not,hasDirectPerm(loc)), resetPredicateInfo, Nil) ++
addPermissionToPMask(loc) ++ stateModule.assumeGoodState} )
case sil.Unfold(sil.PredicateAccessPredicate([email protected](_, _), _)) =>
val knownfolded_update: Stmt = curHeapAssignUpdatePredWandMask(predicateMask(loc).maskField, zeroPMask)
stmt ++ If(UnExp(Not,hasDirectPerm(loc)), knownfolded_update, Nil)
case sil.FieldAssign(lhs, rhs) =>
if(usingOldState) sys.error("heap module: field is assigned while using old state")
stmt ++ (currentHeapAssignUpdate(lhs, translateExp(rhs))) // after all checks
Expand Down
Loading