Skip to content

Commit 1387afc

Browse files
committed
Add missing checks to 52-apron-mukherjee/19-mukherjee_fig_3_11
1 parent 570c749 commit 1387afc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/regression/52-apron-mukherjee/19-mukherjee_fig_3_11.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.activated[+] threadJoins
2-
// NOCHECK: checks nothing?
32
#include <pthread.h>
3+
#include <goblint.h>
44

55
int x;
66
int y;
@@ -10,6 +10,7 @@ pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
1010
void* T1(void* arg) {
1111
while(0 == 0) {
1212
pthread_mutex_lock(&m);
13+
__goblint_check(x == y);
1314
if (x > 0) {
1415
x = x - 1;
1516
y = y - 1;
@@ -22,6 +23,7 @@ void* T1(void* arg) {
2223
void* T2(void* arg) {
2324
while(0 == 0) {
2425
pthread_mutex_lock(&m);
26+
__goblint_check(x == y);
2527
if (x < 10) {
2628
x = x + 1;
2729
y = y + 1;

0 commit comments

Comments
 (0)