diff options
author | 2011-12-12 13:52:36 -0800 | |
---|---|---|
committer | 2011-12-12 13:52:36 -0800 | |
commit | a0331bcece67f35325fe70f2fda1b87d66397ab1 (patch) | |
tree | 29a3325b513466bbd112c50d7ccd101277ef3773 /Source | |
parent | b476991da92ea85c4d1a3cad84dc5171e08a4cf8 (diff) |
Boogie: Changed Expr.Not to keep swap arguments rather change direction of operator when negating <, <=, >=, or >
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Core/AbsyExpr.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AbsyExpr.cs b/Source/Core/AbsyExpr.cs index 02a2f762..e274fcc3 100644 --- a/Source/Core/AbsyExpr.cs +++ b/Source/Core/AbsyExpr.cs @@ -197,13 +197,13 @@ namespace Microsoft.Boogie { } else if (op.Op == BinaryOperator.Opcode.Neq) {
return Eq(arg0, arg1);
} else if (op.Op == BinaryOperator.Opcode.Lt) {
- return Ge(arg0, arg1);
+ return Le(arg1, arg0);
} else if (op.Op == BinaryOperator.Opcode.Le) {
- return Gt(arg0, arg1);
+ return Lt(arg1, arg0);
} else if (op.Op == BinaryOperator.Opcode.Ge) {
- return Lt(arg0, arg1);
+ return Gt(arg1, arg0);
} else if (op.Op == BinaryOperator.Opcode.Gt) {
- return Le(arg0, arg1);
+ return Ge(arg1, arg0);
}
}
}
|