Skip to content

Commit c5cd82d

Browse files
committed
Update transform files to match new stuff
1 parent ff72e60 commit c5cd82d

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

test/org/jetbrains/java/decompiler/ir/IrTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected Stream<DynamicNode> makeTests() {
7070

7171
Path outPath = outDir.resolve(s + ".res");
7272
if (outPath.toFile().exists()) {
73-
assertEquals(output, Files.readString(outPath).replaceAll("\r\n", "\n"));
73+
assertEquals(Files.readString(outPath).replaceAll("\r\n", "\n"), output);
7474

7575
String existing = Files.readString(inPath).replaceAll("\r\n", "\n");
7676
// Ensuring the input file has a rendered statement at the end

testData/results/transforms/IdentifyLabels/TestLiftSequenceLabel.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
4 < [Invoke println java/io/PrintStream (Ljava/lang/Object;)V VIRTUAL [Field out java/lang/System Ljava/io/PrintStream;] [Var U 1]]
2121
5 < [Return RETURN V]
2222
=======================================
23-
while(true) {
23+
while (true) {
2424
label13:
2525
if (var1.hashCode() >= 0) {
26-
if (var1 instanceof "null" var2 != false) {
26+
if (var1 instanceof var2 != false) {
2727
System.out.println(var1);
2828
}
2929

testData/results/transforms/IdentifyLabels/TestLoopBreak.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
4 < [Invoke println java/io/PrintStream (I)V VIRTUAL [Field out java/lang/System Ljava/io/PrintStream;] [Const I 0]]
1717
5 < [Return RETURN V]
1818
=======================================
19-
while(var1 > 10) {
19+
while (var1 > 10) {
2020
if (!(++var1 == 15)) {
2121
System.out.println(0);
2222
continue;

testData/results/transforms/IdentifyLabels/TestLoopBreakEmptyIf.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
9 < [If [Func BOOL_NOT [Func EQ [Func PPI I [Var U 1]] [Const I 15]]]]
1414
5 < [Return RETURN V]
1515
=======================================
16-
while(var1 > 10) {
16+
while (var1 > 10) {
1717
if (!(++var1 == 15)) {
1818
continue;
1919
}

testData/transforms/IdentifyLabels/TestLiftSequenceLabel.qir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
4 < [Invoke println java/io/PrintStream (Ljava/lang/Object;)V VIRTUAL [Field out java/lang/System Ljava/io/PrintStream;] [Var U 1]]
2222
=======================================
2323
label16:
24-
while(true) {
24+
while (true) {
2525
if (var1.hashCode() >= 0) {
2626
label18: {
27-
if (var1 instanceof "null" var2 != false) {
27+
if (var1 instanceof var2 != false) {
2828
System.out.println(var1);
2929
continue label16;
3030
}

testData/transforms/IdentifyLabels/TestLoopBreak.qir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
5 < [Return RETURN V]
1818
=======================================
1919
label12:
20-
while(var1 > 10) {
20+
while (var1 > 10) {
2121
if (!(++var1 == 15)) {
2222
System.out.println(0);
2323
continue label12;

testData/transforms/IdentifyLabels/TestLoopBreakEmptyIf.qir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
5 < [Return RETURN V]
1515
=======================================
1616
label12:
17-
while(var1 > 10) {
17+
while (var1 > 10) {
1818
if (!(++var1 == 15)) {
1919
continue label12;
2020
}

0 commit comments

Comments
 (0)