-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'goblint:master' into master
- Loading branch information
Showing
12 changed files
with
183 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// CRAM | ||
#include<pthread.h> | ||
int d, j, k; | ||
|
||
pthread_mutex_t f; | ||
|
||
void nothing() {}; | ||
void nothing2() {}; | ||
|
||
int top() { | ||
int top2; | ||
return top2; | ||
} | ||
|
||
void main() { | ||
d = top(); | ||
if (d) { | ||
k = 1; | ||
pthread_t tid; | ||
pthread_create(&tid, 0, ¬hing, NULL); | ||
pthread_mutex_lock(&f); | ||
j = 0; // To ensure something is published | ||
pthread_mutex_unlock(&f); | ||
pthread_mutex_lock(&f); | ||
|
||
pthread_t tid2; | ||
pthread_create(&tid2, 0, ¬hing2, NULL); | ||
float f = 8.0f; | ||
} else { | ||
pthread_t tid2; | ||
pthread_create(&tid2, 0, ¬hing2, NULL); | ||
} | ||
} |
Oops, something went wrong.