@@ -1224,11 +1224,6 @@ object quantifiedChunkSupporter extends QuantifiedChunkSupport {
12241224 : VerificationResult = {
12251225
12261226 val resource = resourceAccess.res(s.program)
1227- val failure = resourceAccess match {
1228- case locAcc : ast.LocationAccess => createFailure(pve dueTo InsufficientPermission (locAcc), v, s)
1229- case wand : ast.MagicWand => createFailure(pve dueTo MagicWandChunkNotFound (wand), v, s)
1230- case _ => sys.error(s " Found resource $resourceAccess, which is not yet supported as a quantified resource. " )
1231- }
12321227 val chunkIdentifier = ChunkIdentifier (resource, s.program)
12331228
12341229 val chunkOrderHeuristics = optChunkOrderHeuristic match {
@@ -1240,6 +1235,11 @@ object quantifiedChunkSupporter extends QuantifiedChunkSupport {
12401235 }
12411236
12421237 if (s.exhaleExt) {
1238+ val failure = resourceAccess match {
1239+ case locAcc : ast.LocationAccess => createFailure(pve dueTo InsufficientPermission (locAcc), v, s)
1240+ case wand : ast.MagicWand => createFailure(pve dueTo MagicWandChunkNotFound (wand), v, s)
1241+ case _ => sys.error(s " Found resource $resourceAccess, which is not yet supported as a quantified resource. " )
1242+ }
12431243 magicWandSupporter.transfer(s, permissions, failure, v)((s1, h1, rPerm, v1) => {
12441244 val (relevantChunks, otherChunks) =
12451245 quantifiedChunkSupporter.splitHeap[QuantifiedBasicChunk ](h1, chunkIdentifier)
@@ -1313,7 +1313,11 @@ object quantifiedChunkSupporter extends QuantifiedChunkSupport {
13131313 val snap = ResourceLookup (resource, smDef1.sm, arguments, s2.program).convert(sorts.Snap )
13141314 Q (s2, h1, snap, v)
13151315 case (Incomplete (_), _, _) =>
1316- failure
1316+ resourceAccess match {
1317+ case locAcc : ast.LocationAccess => createFailure(pve dueTo InsufficientPermission (locAcc), v, s)
1318+ case wand : ast.MagicWand => createFailure(pve dueTo MagicWandChunkNotFound (wand), v, s)
1319+ case _ => sys.error(s " Found resource $resourceAccess, which is not yet supported as a quantified resource. " )
1320+ }
13171321 }
13181322 }
13191323 }
@@ -1417,7 +1421,7 @@ object quantifiedChunkSupporter extends QuantifiedChunkSupport {
14171421
14181422 v.decider.prover.comment(" Final check if taken enough permissions" )
14191423 success =
1420- if (success.isComplete || v.decider.check(tookEnoughCheck, 0 ) /* This check is a must-check, i.e. an assert */ )
1424+ if (success.isComplete || v.decider.check(tookEnoughCheck, Verifier .config.assertTimeout.getOrElse( 0 ) ) /* This check is a must-check, i.e. an assert */ )
14211425 Complete ()
14221426 else
14231427 success
0 commit comments