Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit 60414be

Browse files
committed
Add third property as discussed in #1008
1 parent c184663 commit 60414be

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
format_version: "2.0"
2+
input_files:
3+
- ../../common/
4+
- impl/
5+
- prop3/
6+
properties:
7+
- property_file: ../../properties/assert.prp
8+
expected_verdict: false
9+
10+
options:
11+
language: Java
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import java.util.ArrayList;
2+
import org.sosy_lab.sv_benchmarks.Verifier;
3+
4+
public class Main {
5+
6+
public static void main(String[] args) {
7+
char c0 = Verifier.nondetChar();
8+
char c1 = Verifier.nondetChar();
9+
char c2 = Verifier.nondetChar();
10+
char c3 = Verifier.nondetChar();
11+
char c4 = Verifier.nondetChar();
12+
char c5 = Verifier.nondetChar();
13+
char c6 = Verifier.nondetChar();
14+
char c7 = Verifier.nondetChar();
15+
char c8 = Verifier.nondetChar();
16+
DumpXML d = new DumpXML();
17+
int out1 = d.mainProcess(c0, c1, c2, c3, c4, c5, c6, c7, c8);
18+
int out2 = d.mainProcess(c0, c1, c2, c3, c4, c5, c6, c7, c8);
19+
checkEquality(out1, out2);
20+
}
21+
22+
public static void checkEquality(int outSPF, int outJR) {
23+
if (outSPF == outJR) System.out.println("Match");
24+
else {
25+
System.out.println("Mismatch");
26+
assert(false);
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)