We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 570c749 commit 1387afcCopy full SHA for 1387afc
1 file changed
tests/regression/52-apron-mukherjee/19-mukherjee_fig_3_11.c
@@ -1,6 +1,6 @@
1
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.activated[+] threadJoins
2
-// NOCHECK: checks nothing?
3
#include <pthread.h>
+#include <goblint.h>
4
5
int x;
6
int y;
@@ -10,6 +10,7 @@ pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
10
void* T1(void* arg) {
11
while(0 == 0) {
12
pthread_mutex_lock(&m);
13
+ __goblint_check(x == y);
14
if (x > 0) {
15
x = x - 1;
16
y = y - 1;
@@ -22,6 +23,7 @@ void* T1(void* arg) {
22
23
void* T2(void* arg) {
24
25
26
27
if (x < 10) {
28
x = x + 1;
29
y = y + 1;
0 commit comments