summaryrefslogtreecommitdiff
path: root/Source/VCExpr/TypeErasure.cs
diff options
context:
space:
mode:
authorGravatar tabarbe <unknown>2010-08-20 16:02:01 +0000
committerGravatar tabarbe <unknown>2010-08-20 16:02:01 +0000
commit0539cca7cc85df57f171b33d8a3cd204b9fb9fa8 (patch)
tree8fceacb9b4434b357b38f6f46a42d512c8c2adfb /Source/VCExpr/TypeErasure.cs
parentcd570aa762cb546ae734aa719990fd9d2713b3c1 (diff)
Boogie: Fixed some doubly-inherited-contract occurrences.
Diffstat (limited to 'Source/VCExpr/TypeErasure.cs')
-rw-r--r--Source/VCExpr/TypeErasure.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs
index f148dc79..45533115 100644
--- a/Source/VCExpr/TypeErasure.cs
+++ b/Source/VCExpr/TypeErasure.cs
@@ -714,7 +714,7 @@ Contract.Ensures(Contract.ValueAtReturn(out var) != null);
// Type.Int, and Type.Bool
public override Type TypeAfterErasure(Type type) {
- Contract.Requires(type != null);
+ //Contract.Requires(type != null);
Contract.Ensures(Contract.Result<Type>() != null);
if (UnchangedType(type))
// these types are kept
@@ -726,7 +726,7 @@ Contract.Ensures(Contract.ValueAtReturn(out var) != null);
[Pure]
public override bool UnchangedType(Type type) {
- Contract.Requires(type != null);
+ //Contract.Requires(type != null);
return type.IsInt || type.IsBool || type.IsBv || (type.IsMap && CommandLineOptions.Clo.MonomorphicArrays);
}
@@ -1142,9 +1142,9 @@ Contract.Ensures(Contract.ValueAtReturn(out instantiations) != null);
// this method is called by MutatingVCExprVisitor.Visit(VCExprNAry, ...)
protected override VCExpr/*!*/ UpdateModifiedNode(VCExprNAry/*!*/ originalNode, List<VCExpr/*!*/>/*!*/ newSubExprs, bool changed, VariableBindings/*!*/ bindings) {
- Contract.Requires(originalNode != null);
- Contract.Requires(cce.NonNullElements(newSubExprs));
- Contract.Requires(bindings != null);
+ //Contract.Requires(originalNode != null);
+ //Contract.Requires(cce.NonNullElements(newSubExprs));
+ //Contract.Requires(bindings != null);
Contract.Assume(originalNode.Op == VCExpressionGenerator.AndOp ||
originalNode.Op == VCExpressionGenerator.OrOp);
return Gen.Function(originalNode.Op,
@@ -1307,8 +1307,8 @@ Contract.Ensures(Contract.ValueAtReturn(out instantiations) != null);
}
protected override VCExpr StandardResult(VCExprNAry node, VariableBindings bindings) {
- Contract.Requires(bindings != null);
- Contract.Requires(node != null);
+ //Contract.Requires(bindings != null);
+ //Contract.Requires(node != null);
Contract.Ensures(Contract.Result<VCExpr>() != null);
System.Diagnostics.Debug.Fail("Don't know how to erase types in this expression: " + node);
Contract.Assert(false);
@@ -1570,7 +1570,7 @@ Contract.Ensures(cce.NonNullElements(Contract.Result<List<VCExprVar>>()));
readonly TypeAxiomBuilderIntBoolU/*!*/ AxBuilder;
protected override bool StandardResult(VCExpr node, bool arg) {
- Contract.Requires(node != null);
+ //Contract.Requires(node != null);
return true; // not used
}