@@ -12,14 +12,14 @@ class VCSubstitutionTest {
1212
1313 @ Test
1414 void applyOnceReturnsNullForNullImplication () {
15- assertNull (VCSubstitution .applyOnce (null ));
15+ assertNull (VCSubstitution .apply (null ));
1616 }
1717
1818 @ Test
1919 void substitutesBinderEqualityIntoWholeChain () {
2020 VCImplication implication = vc ("∀x:int. x == 3" , "x > 0" );
2121
22- VCImplication result = VCSubstitution .applyOnce (implication );
22+ VCImplication result = VCSubstitution .apply (implication );
2323
2424 assertSimplifiedVC (result , simplified ("3 > 0" , "∀x:int. x > 0" ));
2525 }
@@ -28,7 +28,7 @@ void substitutesBinderEqualityIntoWholeChain() {
2828 void substitutesReverseBinderEquality () {
2929 VCImplication implication = vc ("∀x:int. 3 == x" , "x > 0" );
3030
31- VCImplication result = VCSubstitution .applyOnce (implication );
31+ VCImplication result = VCSubstitution .apply (implication );
3232
3333 assertSimplifiedVC (result , simplified ("3 > 0" , "∀x:int. x > 0" ));
3434 }
@@ -37,7 +37,7 @@ void substitutesReverseBinderEquality() {
3737 void substitutesCompoundKnownValue () {
3838 VCImplication implication = vc ("∀x:int. x == y + 1" , "x > y" );
3939
40- VCImplication result = VCSubstitution .applyOnce (implication );
40+ VCImplication result = VCSubstitution .apply (implication );
4141
4242 assertSimplifiedVC (result , simplified ("y + 1 > y" , "∀x:int. x > y" ));
4343 }
@@ -46,7 +46,7 @@ void substitutesCompoundKnownValue() {
4646 void usesFirstSubstitutionFoundInChain () {
4747 VCImplication implication = vc ("∀x:int. x > 0" , "∀y:int. y == 4" , "x + y > 0" );
4848
49- VCImplication result = VCSubstitution .applyOnce (implication );
49+ VCImplication result = VCSubstitution .apply (implication );
5050
5151 assertVC (result , "x > 0" , "x + 4 > 0" );
5252 assertEquals (VCImplication .class , result .getClass ());
@@ -57,7 +57,7 @@ void usesFirstSubstitutionFoundInChain() {
5757 void substitutesInnerKnownValueAcrossNestedImplications () {
5858 VCImplication implication = vc ("∀x:int. true" , "∀y:int. y == 1" , "∀z:int. z > y" , "y + z > 0" );
5959
60- VCImplication result = VCSubstitution .applyOnce (implication );
60+ VCImplication result = VCSubstitution .apply (implication );
6161
6262 assertVC (result , "true" , "z > 1" , "1 + z > 0" );
6363 assertEquals (VCImplication .class , result .getClass ());
@@ -69,7 +69,7 @@ void substitutesInnerKnownValueAcrossNestedImplications() {
6969 void substitutesOuterKnownValueIntoNestedBinderRefinements () {
7070 VCImplication implication = vc ("∀x:int. x == 3" , "∀y:int. y == x + 1" , "y > x" );
7171
72- VCImplication result = VCSubstitution .applyOnce (implication );
72+ VCImplication result = VCSubstitution .apply (implication );
7373
7474 assertSimplifiedVC (result , simplified ("y == 3 + 1" , "∀x:int. y == x + 1" ),
7575 simplified ("y > 3" , "∀x:int. y > x" ));
@@ -79,7 +79,7 @@ void substitutesOuterKnownValueIntoNestedBinderRefinements() {
7979 void ignoresRecursiveBinderEquality () {
8080 VCImplication implication = vc ("∀x:int. x == x + 1" , "x > 0" );
8181
82- VCImplication result = VCSubstitution .applyOnce (implication );
82+ VCImplication result = VCSubstitution .apply (implication );
8383
8484 assertNotSame (implication , result );
8585 assertVC (result , "x == x + 1" , "x > 0" );
@@ -89,7 +89,7 @@ void ignoresRecursiveBinderEquality() {
8989 void ignoresNonEqualityBinderRefinement () {
9090 VCImplication implication = vc ("∀x:int. x > 3" , "x > 0" );
9191
92- VCImplication result = VCSubstitution .applyOnce (implication );
92+ VCImplication result = VCSubstitution .apply (implication );
9393
9494 assertNotSame (implication , result );
9595 assertVC (result , "x > 3" , "x > 0" );
@@ -99,7 +99,7 @@ void ignoresNonEqualityBinderRefinement() {
9999 void ignoresEqualityWithoutBinder () {
100100 VCImplication implication = vc ("x == 3" , "x > 0" );
101101
102- VCImplication result = VCSubstitution .applyOnce (implication );
102+ VCImplication result = VCSubstitution .apply (implication );
103103
104104 assertVC (result , "x == 3" , "x > 0" );
105105 }
0 commit comments