summaryrefslogtreecommitdiff
path: root/Source/AbsInt
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-05-30 14:17:40 -0700
committerGravatar Rustan Leino <unknown>2013-05-30 14:17:40 -0700
commitecd49b32f40d6a0683beb89a8ae7cc2ba40d853f (patch)
tree2ebe0022174a49e76c0365c8cdfc4e65378c6f1c /Source/AbsInt
parent6a9e8449f14e8c3858ab0809036e68a0a43c2d4e (diff)
Fixed bug in Interval abstract domain (pertaining to unary negation)
Diffstat (limited to 'Source/AbsInt')
-rw-r--r--Source/AbsInt/IntervalDomain.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/AbsInt/IntervalDomain.cs b/Source/AbsInt/IntervalDomain.cs
index 3d83bb5c..be62eb58 100644
--- a/Source/AbsInt/IntervalDomain.cs
+++ b/Source/AbsInt/IntervalDomain.cs
@@ -667,7 +667,7 @@ namespace Microsoft.Boogie.AbstractInterpretation
Lo = 1 - hi;
}
if (lo != null) {
- Hi = -lo;
+ Hi = 1 - lo;
}
}
else if (op.Op == UnaryOperator.Opcode.Not) {