diff options
author | qadeer <unknown> | 2014-02-10 10:13:53 -0800 |
---|---|---|
committer | qadeer <unknown> | 2014-02-10 10:13:53 -0800 |
commit | fd9a195a8ba5188a3325ec5ad0d5f62abf5c0a94 (patch) | |
tree | 958fef86dfb139ed9a83fd11fc1ebcaf9894d840 /Source/Concurrency/TypeCheck.cs | |
parent | a6642da2e55119f78539926112f368bfa9e88289 (diff) |
fixed a problem with the nonblocking check
Diffstat (limited to 'Source/Concurrency/TypeCheck.cs')
-rw-r--r-- | Source/Concurrency/TypeCheck.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Concurrency/TypeCheck.cs b/Source/Concurrency/TypeCheck.cs index a3e35a70..ce29a700 100644 --- a/Source/Concurrency/TypeCheck.cs +++ b/Source/Concurrency/TypeCheck.cs @@ -34,7 +34,7 @@ namespace Microsoft.Boogie public HashSet<Variable> usedGlobalVars;
public HashSet<Variable> modifiedGlobalVars;
public HashSet<Variable> gateUsedGlobalVars;
- public bool isNonBlocking;
+ public bool hasAssumeCmd;
public bool CommutesWith(ActionInfo actionInfo)
{
@@ -68,11 +68,11 @@ namespace Microsoft.Boogie this.thatGate = new List<AssertCmd>();
this.thatInParams = new List<Variable>();
this.thatOutParams = new List<Variable>();
- this.isNonBlocking = true;
+ this.hasAssumeCmd = false;
foreach (Block block in codeExpr.Blocks)
{
- block.Cmds.ForEach(x => this.isNonBlocking = this.isNonBlocking && !(x is AssumeCmd));
+ block.Cmds.ForEach(x => this.hasAssumeCmd = this.hasAssumeCmd || x is AssumeCmd);
}
var cmds = thisAction.Blocks[0].Cmds;
|