summaryrefslogtreecommitdiff
path: root/Source/VCExpr/TypeErasurePremisses.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/TypeErasurePremisses.cs
parentcd570aa762cb546ae734aa719990fd9d2713b3c1 (diff)
Boogie: Fixed some doubly-inherited-contract occurrences.
Diffstat (limited to 'Source/VCExpr/TypeErasurePremisses.cs')
-rw-r--r--Source/VCExpr/TypeErasurePremisses.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/VCExpr/TypeErasurePremisses.cs b/Source/VCExpr/TypeErasurePremisses.cs
index c36551d6..09794803 100644
--- a/Source/VCExpr/TypeErasurePremisses.cs
+++ b/Source/VCExpr/TypeErasurePremisses.cs
@@ -99,8 +99,8 @@ void ObjectInvariant()
// generate axioms of the kind "forall x:U. {Int2U(U2Int(x))}
// type(x)=int ==> Int2U(U2Int(x))==x"
protected override VCExpr GenReverseCastAxiom(Function castToU, Function castFromU) {
- Contract.Requires(castFromU != null);
- Contract.Requires(castToU != null);
+ //Contract.Requires(castFromU != null);
+ //Contract.Requires(castToU != null);
Contract.Ensures(Contract.Result<VCExpr>() != null);
List<VCTrigger/*!*/>/*!*/ triggers;
VCExprVar/*!*/ var;
@@ -122,8 +122,8 @@ void ObjectInvariant()
}
protected override VCExpr GenCastTypeAxioms(Function castToU, Function castFromU) {
- Contract.Requires(castFromU != null);
- Contract.Requires(castToU != null);
+ //Contract.Requires(castFromU != null);
+ //Contract.Requires(castToU != null);
Contract.Ensures(Contract.Result<VCExpr>() != null);
Type/*!*/ fromType = cce.NonNull(castToU.InParams[0]).TypedIdent.Type;
return GenFunctionAxiom(castToU, new List<TypeVariable/*!*/>(), new List<TypeVariable/*!*/>(),
@@ -485,8 +485,8 @@ Contract.Ensures(Contract.Result<VCExpr>() != null);
////////////////////////////////////////////////////////////////////////////
protected override void AddVarTypeAxiom(VCExprVar var, Type originalType){
-Contract.Requires(originalType != null);
-Contract.Requires(var != null);
+//Contract.Requires(originalType != null);
+//Contract.Requires(var != null);
if (CommandLineOptions.Clo.TypeEncodingMethod == CommandLineOptions.TypeEncoding.None) return;
AddTypeAxiom(GenVarTypeAxiom(var, originalType,
// we don't have any bindings available
@@ -574,8 +574,8 @@ Contract.Requires(var != null);
////////////////////////////////////////////////////////////////////////////
protected override void GenSelectStoreFunctions(MapType abstractedType, TypeCtorDecl synonym, out Function/*!*/ select, out Function/*!*/ store) {
- Contract.Requires(synonym != null);
- Contract.Requires(abstractedType != null);
+ //Contract.Requires(synonym != null);
+ //Contract.Requires(abstractedType != null);
Contract.Ensures(Contract.ValueAtReturn(out select) != null);
Contract.Ensures(Contract.ValueAtReturn(out store) != null);
Type/*!*/ mapTypeSynonym;