summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-07-23 10:48:24 -0700
committerGravatar wuestholz <unknown>2013-07-23 10:48:24 -0700
commitd9f68c9878b0a15d8da7108df211f4fd2f523434 (patch)
treecfb7a51640dcae7e671f551a6db4b9721114b54a
parent34ff60de0ab0a05c85e6af50ed6d1a93805e040b (diff)
Minor fix
-rw-r--r--Source/VCExpr/TypeErasurePremisses.cs2
-rw-r--r--Source/VCExpr/VCExprASTVisitors.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/VCExpr/TypeErasurePremisses.cs b/Source/VCExpr/TypeErasurePremisses.cs
index fc3d1214..d4b36b68 100644
--- a/Source/VCExpr/TypeErasurePremisses.cs
+++ b/Source/VCExpr/TypeErasurePremisses.cs
@@ -1115,7 +1115,7 @@ namespace Microsoft.Boogie.TypeErasure
if (typeVarBindings.Count < node.TypeParameters.Count) {
foreach (TypeVariable/*!*/ var in node.TypeParameters) {
Contract.Assert(var != null);
- if (typeVarBindings.All(b => b.V.Equals(var)))
+ if (typeVarBindings.All(b => !b.V.Equals(var)))
newBoundVars.Add((VCExprVar)bindings.TypeVariableBindings[var]);
}
}
diff --git a/Source/VCExpr/VCExprASTVisitors.cs b/Source/VCExpr/VCExprASTVisitors.cs
index 10c06abf..02220057 100644
--- a/Source/VCExpr/VCExprASTVisitors.cs
+++ b/Source/VCExpr/VCExprASTVisitors.cs
@@ -1072,13 +1072,13 @@ namespace Microsoft.Boogie.VCExprAST {
public bool TermSubstIsEmpty {
get {
- return TermSubsts.All(dict => dict.Count == 0);
+ return TermSubsts.All(dict => !dict.Any());
}
}
public bool TypeSubstIsEmpty {
get {
- return TypeSubsts.All(dict => dict.Count == 0); ;
+ return TypeSubsts.All(dict => !dict.Any());
}
}