summaryrefslogtreecommitdiff
path: root/Source/Core/Absy.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2015-01-26 23:42:31 +0100
committerGravatar wuestholz <unknown>2015-01-26 23:42:31 +0100
commit466cb430e1ae626a73a483bb29d450a196f2c592 (patch)
tree877a52cbd838ab26145dd5f5143505ed1249b125 /Source/Core/Absy.cs
parent88acfa270c5d94547d62b1822c7e4abcd0ea640b (diff)
Fixed minor issue.
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r--Source/Core/Absy.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs
index 041993a7..9f7e57cf 100644
--- a/Source/Core/Absy.cs
+++ b/Source/Core/Absy.cs
@@ -128,10 +128,10 @@ namespace Microsoft.Boogie {
public Absy(IToken tok) {
Contract.Requires(tok != null);
this._tok = tok;
- this.uniqueId = System.Threading.Interlocked.Increment(ref AbsyNodeCount);
+ this.uniqueId = System.Threading.Interlocked.Increment(ref CurrentAbsyNodeId);
}
- private static int AbsyNodeCount = 0;
+ private static int CurrentAbsyNodeId = -1;
// We uniquely number every AST node to make them
// suitable for our implementation of functional maps.
@@ -162,7 +162,7 @@ namespace Microsoft.Boogie {
public virtual Absy Clone() {
Contract.Ensures(Contract.Result<Absy>() != null);
Absy/*!*/ result = cce.NonNull((Absy/*!*/)this.MemberwiseClone());
- result.uniqueId = System.Threading.Interlocked.Increment(ref AbsyNodeCount); // BUGBUG??
+ result.uniqueId = System.Threading.Interlocked.Increment(ref CurrentAbsyNodeId); // BUGBUG??
if (InternalNumberedMetadata != null) {
// This should probably use the lock