forked from caterinaurban/function
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguarantee.sh
executable file
·63 lines (43 loc) · 3.04 KB
/
guarantee.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
### guarantee with polyhedra:
### -domain polyhedra
### -joinbwd 2
./main.exe tests/guarantee/countdown.c -guarantee tests/guarantee/countdown.txt -domain polyhedra -json_output -vulnerability #> logs/guarantee/countdown.log
./main.exe tests/guarantee/mnav.c -guarantee tests/guarantee/mnav.txt -domain polyhedra -json_output -vulnerability #> logs/guarantee/mnav.log
./main.exe tests/guarantee/peterson.c -guarantee tests/guarantee/peterson.txt -domain polyhedra -json_output -vulnerability #> logs/guarantee/peterson.log
./main.exe tests/guarantee/pingpong.c -guarantee tests/guarantee/pingpong.txt -domain polyhedra -json_output -vulnerability #> logs/guarantee/pingpong.log
### guarantee with polyhedra and ordinals:
### -domain polyhedra
### -joinbwd 2
### -ordinals 1
./main.exe tests/guarantee/sink.c -guarantee tests/guarantee/sink.txt -domain polyhedra -ordinals 1 -json_output -vulnerability #> logs/guarantee/sink.log
# conditional guarantee
./main.exe tests/guarantee/simple.c -guarantee tests/guarantee/simple.txt -domain polyhedra -json_output -vulnerability #> logs/guarantee/simple.log # x <= 3
###
### guarantee (CTL-CFG) with polyhedra:
### -domain polyhedra
### -joinbwd 2
./main.exe tests/guarantee/countdown.c -ctl-cfg "AF{x == 0}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/countdownCFG#TODO.log # TODO: ?
./main.exe tests/guarantee/peterson.c -ctl-cfg "AF{C1: true}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/petersonCFG.log
./main.exe tests/guarantee/pingpong.c -ctl-cfg "AF{z == 1}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/pingpongCFG.log
### guarantee (CTL-CFG) with polyhedra and ordinals:
### -domain polyhedra
### -joinbwd 2
### -ordinals 1
./main.exe tests/guarantee/sink.c -ctl-cfg "AF{x == 0}" -domain polyhedra -ordinals 1 -json_output -vulnerability #> logs/guarantee/sinkCFG#TODO.log # TODO: ?
# conditional guarantee (CTL-CFG)
./main.exe tests/guarantee/simple.c -ctl-cfg "AF{x == 3}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/simpleCFG#TODO.log # TODO: ?
###
### guarantee (CTL-AST) with polyhedra:
### -domain polyhedra
### -joinbwd 2
./main.exe tests/guarantee/countdown.c -ctl-ast "AF{x == 0}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/countdownAST.log
./main.exe tests/guarantee/peterson.c -ctl-ast "AF{C1: true}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/petersonAST.log
./main.exe tests/guarantee/pingpong.c -ctl-ast "AF{z == 1}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/pingpongAST.log
### guarantee (CTL-AST) with polyhedra and ordinals:
### -domain polyhedra
### -joinbwd 2
### -ordinals 1
./main.exe tests/guarantee/sink.c -ctl-ast "AF{x == 0}" -domain polyhedra -ordinals 1 -json_output -vulnerability #> logs/guarantee/sinkAST.log
# conditional guarantee (CTL-AST)
./main.exe tests/guarantee/simple.c -ctl-ast "AF{x == 3}" -domain polyhedra -json_output -vulnerability #> logs/guarantee/simpleAST.log # x <= 3