diff options
author | qadeer <unknown> | 2014-01-08 22:10:54 -0800 |
---|---|---|
committer | qadeer <unknown> | 2014-01-08 22:10:54 -0800 |
commit | a0da62d4eba25d38b35445378a9cfd7dafed25ba (patch) | |
tree | 4d391f17458e1422970fd18b9f81f3e9571426b7 /Source/Concurrency/TypeCheck.cs | |
parent | 6c4edf3e7aea971d002d2e4e472a08ffc62a3eb2 (diff) |
a fix regarding the checking of assertions in atomic specs at call sites
Diffstat (limited to 'Source/Concurrency/TypeCheck.cs')
-rw-r--r-- | Source/Concurrency/TypeCheck.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Concurrency/TypeCheck.cs b/Source/Concurrency/TypeCheck.cs index f6d673ab..9d9c661c 100644 --- a/Source/Concurrency/TypeCheck.cs +++ b/Source/Concurrency/TypeCheck.cs @@ -159,7 +159,7 @@ namespace Microsoft.Boogie int enclosingProcPhaseNum;
public Dictionary<Procedure, ActionInfo> procToActionInfo;
public Program program;
- public HashSet<int> assertionPhaseNums;
+ public HashSet<int> allPhaseNums;
bool inAtomicSpecification;
public void TypeCheck()
@@ -205,7 +205,7 @@ namespace Microsoft.Boogie }
}
this.procToActionInfo = new Dictionary<Procedure, ActionInfo>();
- this.assertionPhaseNums = new HashSet<int>();
+ this.allPhaseNums = new HashSet<int>();
this.errorCount = 0;
this.checkingContext = new CheckingContext(null);
this.program = program;
@@ -222,7 +222,7 @@ namespace Microsoft.Boogie enclosingProcPhaseNum = FindPhaseNumber(node);
if (enclosingProcPhaseNum != int.MaxValue)
{
- assertionPhaseNums.Add(enclosingProcPhaseNum);
+ allPhaseNums.Add(enclosingProcPhaseNum);
}
return base.VisitProcedure(node);
}
@@ -296,7 +296,7 @@ namespace Microsoft.Boogie }
foreach (int phaseNum in OwickiGries.FindPhaseNums(ensures.Attributes))
{
- assertionPhaseNums.Add(phaseNum);
+ allPhaseNums.Add(phaseNum);
if (phaseNum > enclosingProcPhaseNum)
{
Error(ensures, "The phase of ensures clause cannot be greater than the phase of enclosing procedure");
@@ -308,7 +308,7 @@ namespace Microsoft.Boogie {
foreach (int phaseNum in OwickiGries.FindPhaseNums(requires.Attributes))
{
- assertionPhaseNums.Add(phaseNum);
+ allPhaseNums.Add(phaseNum);
if (phaseNum > enclosingProcPhaseNum)
{
Error(requires, "The phase of requires clause cannot be greater than the phase of enclosing procedure");
@@ -320,7 +320,7 @@ namespace Microsoft.Boogie {
foreach (int phaseNum in OwickiGries.FindPhaseNums(node.Attributes))
{
- assertionPhaseNums.Add(phaseNum);
+ allPhaseNums.Add(phaseNum);
if (phaseNum > enclosingProcPhaseNum)
{
Error(node, "The phase of assert cannot be greater than the phase of enclosing procedure");
|