Skip to content

Commit 7b95fcd

Browse files
author
Simon Tietz
committed
expsplit-test
1 parent a3bd48a commit 7b95fcd

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tests/practical/expsplit.c renamed to tests/regression/07-asm-exp-split.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// PARAM: --set ana.activated[+] expsplit --disable asm_is_nop
12
#include <goblint.h>
23

34
int main(void) {
@@ -7,5 +8,5 @@ int main(void) {
78
asm("nop" : "=x" (x), "=x" (r));
89
__goblint_check(x == 0 || x == 1);
910
__goblint_split_end(x);
10-
__goblint_check(x == 0 || x == 1);
11+
__goblint_check(x == 0 || x == 1); // UNKNOWN (intentionally)
1112
}

tests/regression/79-assembly/28-asm_deadlock.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22
#include <unistd.h>
33
#include <pthread.h>
44
#include <stdio.h>
5-
#include <goblint.h>
65

76
pthread_mutex_t lock_a;
87
pthread_mutex_t lock_b;
98

10-
extern __goblint_unknown(void*);
11-
129
void *proc_a(void *arg) {
13-
asm ("nop" : "=g" (lock_a));
14-
__goblint_unknown(&lock_a);
1510
pthread_mutex_lock(&lock_a);
11+
asm ("nop" : "=g" (lock_a));
1612
sleep(1);
1713
pthread_mutex_lock(&lock_b);
1814
pthread_exit(NULL);

0 commit comments

Comments
 (0)