Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ public long test1(long value) {

@Run(test = "test1")
public void run1(RunInfo info) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it, you can also remove all the unused RunInfo parameters. But up to you if you want to squeeze that in here as well - it's only a clean-up that is not that important.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for missed this comment......

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries!

long res = 0;
for (int i = 0; i < 10000; i++) {
res |= test1(field_L);
}
long res = test1(field_L);
Asserts.assertEQ(res, gold_L);
}

Expand All @@ -92,10 +89,7 @@ public int test2(int value) {

@Run(test = "test2")
public void run2(RunInfo info) {
int res = 0;
for (int i = 0; i < 10000; i++) {
res |= test2(field_I);
}
int res = test2(field_I);
Asserts.assertEQ(res, gold_I);
}

Expand All @@ -113,7 +107,7 @@ public int test3(int value) {
@Run(test = "test3")
public void run3(RunInfo info) {
int res = 0;
for (int i = 1; i < 10000; i++) {
for (int i = 1; i < 100; i++) {
res |= test3(i);
}
Asserts.assertLTE(0, res);
Expand All @@ -133,7 +127,7 @@ public long test4(long value) {
@Run(test = "test4")
public void run4(RunInfo info) {
long res = 0;
for (long i = 1; i < 10000; i++) {
for (long i = 1; i < 100; i++) {
res |= test4(i);
}
Asserts.assertLTE(0L, res);
Expand All @@ -151,7 +145,7 @@ public long test5(long value) {
@Run(test = "test5")
public void run5(RunInfo info) {
long res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test5((long)i);
}
Asserts.assertEQ(-1L, res);
Expand All @@ -169,7 +163,7 @@ public long test6(long value) {
@Run(test = "test6")
public void run6(RunInfo info) {
long res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test6((long)i);
}
Asserts.assertLTE(0L, res);
Expand All @@ -188,7 +182,7 @@ public long test7(long value) {
@Run(test = "test7")
public void run7(RunInfo info) {
long res = Long.MIN_VALUE;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res = Long.max(test7((long)i), res);
}
Asserts.assertGTE(10000L, res);
Expand All @@ -206,7 +200,7 @@ public int test8(int value) {
@Run(test = "test8")
public void run8(RunInfo info) {
int res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test8(i);
}
Asserts.assertEQ(-1, res);
Expand All @@ -224,7 +218,7 @@ public int test9(int value) {
@Run(test = "test9")
public void run9(RunInfo info) {
int res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test9(i);
}
Asserts.assertLTE(0, res);
Expand All @@ -243,10 +237,10 @@ public int test10(int value) {
@Run(test = "test10")
public void run10(RunInfo info) {
int res = Integer.MIN_VALUE;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res = Integer.max(test10(i), res);
}
Asserts.assertGTE(10000, res);
Asserts.assertGTE(100, res);
}

@Test
Expand All @@ -260,7 +254,7 @@ public int test11(int value) {
@Run(test = "test11")
public void run11(RunInfo info) {
int res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test11(i);
}
Asserts.assertEQ(0, res);
Expand All @@ -277,7 +271,7 @@ public long test12(long value) {
@Run(test = "test12")
public void run12(RunInfo info) {
long res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test12(i);
}
Asserts.assertEQ(0L, res);
Expand All @@ -294,7 +288,7 @@ public int test13(int value) {
@Run(test = "test13")
public void run13(RunInfo info) {
int res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test13(i);
}
Asserts.assertEQ(0, res);
Expand All @@ -311,7 +305,7 @@ public long test14(long value) {
@Run(test = "test14")
public void run14(RunInfo info) {
long res = 0;
for (int i = -10000; i < 10000; i++) {
for (int i = -100; i < 100; i++) {
res |= test14(i);
}
Asserts.assertEQ(0L, res);
Expand All @@ -327,10 +321,7 @@ public int test15(int src, int mask) {

@Run (test = "test15")
public void run15(RunInfo info) {
int res = 0;
for (int i = 0; i < 10000; i++) {
res |= test15(0, 0);
}
int res = test15(0, 0);
Asserts.assertEQ(0, res);
}

Expand Down Expand Up @@ -408,7 +399,7 @@ public void run16(RunInfo info) {
int actual = 0;
int expected = 0;

for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 100; i++) {
int arg1 = GEN_I.next();
int arg2 = GEN_I.next();

Expand Down Expand Up @@ -492,7 +483,7 @@ public void run17(RunInfo info) {
int actual = 0;
int expected = 0;

for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 100; i++) {
int arg1 = GEN_I.next();
int arg2 = GEN_I.next();

Expand Down Expand Up @@ -576,7 +567,7 @@ public void run18(RunInfo info) {
long actual = 0;
long expected = 0;

for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 100; i++) {
long arg1 = GEN_L.next();
long arg2 = GEN_L.next();

Expand Down Expand Up @@ -660,7 +651,7 @@ public void run19(RunInfo info) {
long actual = 0;
long expected = 0;

for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 100; i++) {
long arg1 = GEN_L.next();
long arg2 = GEN_L.next();

Expand Down