@@ -111,11 +111,7 @@ protected override VCExpr GenReverseCastAxiom(Function castToU, Function castFro
111
111
Contract . Assert ( var != null ) ;
112
112
Contract . Assert ( eq != null ) ;
113
113
VCExpr /*!*/ premiss ;
114
- if ( CommandLineOptions . Clo . TypeEncodingMethod
115
- == CommandLineOptions . TypeEncoding . None )
116
- premiss = VCExpressionGenerator . True ;
117
- else
118
- premiss = GenVarTypeAxiom ( var , cce . NonNull ( castFromU . OutParams [ 0 ] ) . TypedIdent . Type ,
114
+ premiss = GenVarTypeAxiom ( var , cce . NonNull ( castFromU . OutParams [ 0 ] ) . TypedIdent . Type ,
119
115
// we don't have any bindings available
120
116
new Dictionary < TypeVariable /*!*/ , VCExpr /*!*/ > ( ) ) ;
121
117
VCExpr /*!*/ matrix = Gen . ImpliesSimp ( premiss , eq ) ;
@@ -436,10 +432,6 @@ private VCExpr GenFunctionAxiom(UntypedFunction fun, Function originalFun) {
436
432
Contract . Requires ( originalInTypes . Count + explicitTypeParams . Count == fun . InParams . Count ) ;
437
433
Contract . Ensures ( Contract . Result < VCExpr > ( ) != null ) ;
438
434
439
- if ( CommandLineOptions . Clo . TypeEncodingMethod == CommandLineOptions . TypeEncoding . None ) {
440
- return VCExpressionGenerator . True ;
441
- }
442
-
443
435
List < VCExprVar /*!*/ > /*!*/ typedInputVars = new List < VCExprVar /*!*/ > ( originalInTypes . Count ) ;
444
436
int i = 0 ;
445
437
foreach ( Type /*!*/ t in originalInTypes ) {
@@ -501,7 +493,6 @@ private VCExpr GenFunctionAxiom(UntypedFunction fun, Function originalFun) {
501
493
protected override void AddVarTypeAxiom ( VCExprVar var , Type originalType ) {
502
494
//Contract.Requires(originalType != null);
503
495
//Contract.Requires(var != null);
504
- if ( CommandLineOptions . Clo . TypeEncodingMethod == CommandLineOptions . TypeEncoding . None ) return ;
505
496
AddTypeAxiom ( GenVarTypeAxiom ( var , originalType ,
506
497
// we don't have any bindings available
507
498
new Dictionary < TypeVariable /*!*/ , VCExpr /*!*/ > ( ) ) ) ;
@@ -841,8 +832,7 @@ private VCExpr GenMapAxiom0(Function select, Function store, Type mapResult, Lis
841
832
AxBuilderPremisses . Type2Term ( mapResult , bindings . TypeVariableBindings ) ) ;
842
833
Contract . Assert ( ante != null ) ;
843
834
VCExpr body ;
844
- if ( CommandLineOptions . Clo . TypeEncodingMethod == CommandLineOptions . TypeEncoding . None ||
845
- ! AxBuilder . U . Equals ( cce . NonNull ( select . OutParams [ 0 ] ) . TypedIdent . Type ) ) {
835
+ if ( ! AxBuilder . U . Equals ( cce . NonNull ( select . OutParams [ 0 ] ) . TypedIdent . Type ) ) {
846
836
body = Gen . Let ( letBindings_Explicit , eq ) ;
847
837
} else {
848
838
body = Gen . Let ( letBindings_Implicit , Gen . Let ( letBindings_Explicit , Gen . ImpliesSimp ( ante , eq ) ) ) ;
@@ -1152,11 +1142,6 @@ private VCExpr HandleQuantifier(VCExprQuantifier node, List<VCExprVar/*!*/>/*!*/
1152
1142
1153
1143
// assemble the new quantified formula
1154
1144
1155
- if ( CommandLineOptions . Clo . TypeEncodingMethod
1156
- == CommandLineOptions . TypeEncoding . None ) {
1157
- typePremisses = VCExpressionGenerator . True ;
1158
- }
1159
-
1160
1145
VCExpr /*!*/ bodyWithPremisses =
1161
1146
AxBuilderPremisses . AddTypePremisses ( typeVarBindings , typePremisses ,
1162
1147
node . Quan == Quantifier . ALL ,
0 commit comments