summaryrefslogtreecommitdiff
path: root/Source/Concurrency/YieldTypeChecker.cs
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-06-02 00:04:15 -0700
committerGravatar qadeer <unknown>2014-06-02 00:04:15 -0700
commit77b57bda1bb6c31f99b1f215943c8c1b73dc2200 (patch)
treedb9cc7aacd3392f3c71542921f8f7adcd1cf215a /Source/Concurrency/YieldTypeChecker.cs
parent8f5906c401ff0cc1111f15a968c62566a2ed582e (diff)
various fixes
Diffstat (limited to 'Source/Concurrency/YieldTypeChecker.cs')
-rw-r--r--Source/Concurrency/YieldTypeChecker.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Concurrency/YieldTypeChecker.cs b/Source/Concurrency/YieldTypeChecker.cs
index 92ec7e1c..c6979fc7 100644
--- a/Source/Concurrency/YieldTypeChecker.cs
+++ b/Source/Concurrency/YieldTypeChecker.cs
@@ -154,12 +154,12 @@ namespace Microsoft.Boogie
}
}
- private static bool IsTerminatingLoopHeader(Block block)
+ private bool IsTerminatingLoopHeader(Block block)
{
foreach (Cmd cmd in block.Cmds)
{
AssertCmd assertCmd = cmd as AssertCmd;
- if (assertCmd != null && QKeyValue.FindBoolAttribute(assertCmd.Attributes, "terminates"))
+ if (assertCmd != null && QKeyValue.FindBoolAttribute(assertCmd.Attributes, "terminates") && moverTypeChecker.absyToPhaseNums[assertCmd].Contains(currPhaseNum))
{
return true;
}