summaryrefslogtreecommitdiff
path: root/Source/Core/Absy.cs
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2013-12-10 18:03:10 -0800
committerGravatar qadeer <unknown>2013-12-10 18:03:10 -0800
commit8f143f70ce8a013f0273c885c184b5f96432943a (patch)
tree7425b450c01e91cd8026967bcb4130c4efb496c9 /Source/Core/Absy.cs
parentae0332cea1ff9cc65a239fddbc588cbaf73ac140 (diff)
some refactoring of QED stuff
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r--Source/Core/Absy.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs
index 33c4e91a..1776f64e 100644
--- a/Source/Core/Absy.cs
+++ b/Source/Core/Absy.cs
@@ -2350,14 +2350,14 @@ namespace Microsoft.Boogie {
//Contract.Requires(rc != null);
this.Condition.Resolve(rc);
}
-
+
public override void Typecheck(TypecheckingContext tc) {
//Contract.Requires(tc != null);
bool isAtomicSpecification =
- QKeyValue.FindBoolAttribute(this.Attributes, "atomic") ||
- QKeyValue.FindBoolAttribute(this.Attributes, "right") ||
- QKeyValue.FindBoolAttribute(this.Attributes, "left") ||
- QKeyValue.FindBoolAttribute(this.Attributes, "both");
+ QKeyValue.FindIntAttribute(this.Attributes, "atomic", int.MaxValue) != int.MaxValue ||
+ QKeyValue.FindIntAttribute(this.Attributes, "right", int.MaxValue) != int.MaxValue ||
+ QKeyValue.FindIntAttribute(this.Attributes, "left", int.MaxValue) != int.MaxValue ||
+ QKeyValue.FindIntAttribute(this.Attributes, "both", int.MaxValue) != int.MaxValue;
bool oldYields = tc.Yields;
tc.Yields = isAtomicSpecification;
this.Condition.Typecheck(tc);