Skip to content

Commit 66b5df8

Browse files
Merge pull request #1714 from arkocal/fix-test-82-04
Fix test 82/04
2 parents 66dff5a + 520ef1c commit 66b5df8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/regression/82-widening_gas/04-side_simple_update.c

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ void *thread(void *arg) {
1212
pthread_mutex_lock(&A);
1313
a = 1;
1414
b = 1;
15-
b = 2;
1615
c = 1;
16+
pthread_mutex_unlock(&A);
17+
18+
pthread_mutex_lock(&A);
19+
b = 2;
1720
c = 2;
21+
pthread_mutex_unlock(&A);
22+
23+
pthread_mutex_lock(&A);
1824
c = 3;
1925
pthread_mutex_unlock(&A);
2026
return NULL;
@@ -28,7 +34,7 @@ int main(void) {
2834
pthread_mutex_lock(&A);
2935
__goblint_check(a <= 1);
3036
__goblint_check(b <= 2);
31-
__goblint_check(c <= 3);
37+
__goblint_check(c <= 3);
3238
pthread_mutex_unlock(&A);
3339
return 0;
3440
}

0 commit comments

Comments
 (0)