Skip to content

Commit bbe22f2

Browse files
committed
Make cram tests for 13-privatized/19-publish-precision and 20-publish-regression deterministic
1 parent e00bfb0 commit bbe22f2

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
$ goblint --enable dbg.print_protection 19-publish-precision.c
2-
[Success][Assert] Assertion "glob1 == 0" will succeed (19-publish-precision.c:27:3-27:30)
3-
[Success][Assert] Assertion "glob1 == 5" will succeed (19-publish-precision.c:17:3-17:30)
1+
$ goblint --enable dbg.print_protection --enable warn.deterministic 19-publish-precision.c
42
[Warning][Assert] Assertion "glob1 == 0" is unknown. (19-publish-precision.c:30:3-30:30)
53
[Warning][Assert] Assertion "glob1 == 5" is unknown. (19-publish-precision.c:31:3-31:30)
6-
[Info][Deadcode] Logical lines of code (LLoC) summary:
7-
live: 20
8-
dead: 0
9-
total lines: 20
4+
[Success][Assert] Assertion "glob1 == 5" will succeed (19-publish-precision.c:17:3-17:30)
5+
[Success][Assert] Assertion "glob1 == 0" will succeed (19-publish-precision.c:27:3-27:30)
106
[Info][Race] Mutex mutex1 read-write protects 0 variable(s): {}
11-
[Info][Race] Variable glob1 read-write protected by 1 mutex(es): {mutex2}
127
[Info][Race] Mutex mutex2 read-write protects 1 variable(s): {glob1}
13-
[Info][Race] Mutex read-write protection summary:
14-
Number of mutexes: 2
15-
Max number variables of protected by a mutex: 1
16-
Total number of protected variables (including duplicates): 1
8+
[Info][Race] Variable glob1 read-write protected by 1 mutex(es): {mutex2}
179
[Info][Race] Memory locations race summary:
1810
safe: 1
1911
vulnerable: 0
2012
unsafe: 0
2113
total memory locations: 1
14+
[Info][Race] Mutex read-write protection summary:
15+
Number of mutexes: 2
16+
Max number variables of protected by a mutex: 1
17+
Total number of protected variables (including duplicates): 1
18+
[Info][Deadcode] Logical lines of code (LLoC) summary:
19+
live: 20
20+
dead: 0
21+
total lines: 20
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
$ goblint --enable dbg.print_protection 20-publish-regression.c
2-
[Success][Assert] Assertion "glob1 == 0" will succeed (20-publish-regression.c:29:3-29:30)
1+
$ goblint --enable dbg.print_protection --enable warn.deterministic 20-publish-regression.c
32
[Success][Assert] Assertion "glob1 == 5" will succeed (20-publish-regression.c:20:3-20:30)
3+
[Success][Assert] Assertion "glob1 == 0" will succeed (20-publish-regression.c:29:3-29:30)
44
[Success][Assert] Assertion "glob1 == 0" will succeed (20-publish-regression.c:32:3-32:30)
5-
[Info][Deadcode] Logical lines of code (LLoC) summary:
6-
live: 19
7-
dead: 0
8-
total lines: 19
95
[Info][Race] Mutex mutex1 read-write protects 1 variable(s): {glob1}
10-
[Info][Race] Variable glob1 read-write protected by 1 mutex(es): {mutex1}
116
[Info][Race] Mutex mutex2 read-write protects 0 variable(s): {}
12-
[Info][Race] Mutex read-write protection summary:
13-
Number of mutexes: 2
14-
Max number variables of protected by a mutex: 1
15-
Total number of protected variables (including duplicates): 1
7+
[Info][Race] Variable glob1 read-write protected by 1 mutex(es): {mutex1}
168
[Info][Race] Memory locations race summary:
179
safe: 1
1810
vulnerable: 0
1911
unsafe: 0
2012
total memory locations: 1
13+
[Info][Race] Mutex read-write protection summary:
14+
Number of mutexes: 2
15+
Max number variables of protected by a mutex: 1
16+
Total number of protected variables (including duplicates): 1
17+
[Info][Deadcode] Logical lines of code (LLoC) summary:
18+
live: 19
19+
dead: 0
20+
total lines: 19

0 commit comments

Comments
 (0)