-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from FeldrinH/abstract-debugging
Abstract debugging
- Loading branch information
Showing
54 changed files
with
3,132 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"files": [ | ||
"thesis_example.c" | ||
], | ||
"ana": { | ||
"int": { | ||
"interval": true, | ||
"congruence": true, | ||
"refinement": "fixpoint", | ||
"interval_threshold_widening" : true, | ||
"def_exc_widen_by_join" : true | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"goblintConf" : "goblint.json", | ||
"abstractDebugging": true, | ||
"showCfg": true, | ||
"incrementalAnalysis": false | ||
} |
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,36 @@ | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <pthread.h> | ||
|
||
pthread_mutex_t lukk = PTHREAD_MUTEX_INITIALIZER; | ||
|
||
void f(int a) { | ||
printf("%i", a); | ||
} | ||
|
||
void g(int b) { | ||
if (b >= 50) { | ||
f(b - 50); | ||
} else { | ||
f(b); | ||
f(b + 12); | ||
} | ||
} | ||
|
||
void h(int c) { | ||
if (c == 0) { | ||
pthread_mutex_lock(&lukk); | ||
} | ||
if (c > 0) { | ||
printf("%i", c); | ||
} | ||
if (c == 0) { | ||
pthread_mutex_unlock(&lukk); | ||
} | ||
} | ||
|
||
int main() { | ||
int i = rand() % 100; | ||
g(i); | ||
h(i); | ||
} |
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,16 @@ | ||
#include <stdlib.h> | ||
|
||
struct s { | ||
int n; | ||
int m[3]; | ||
}; | ||
|
||
int main() { | ||
int a = rand() % 19; | ||
int b = 79; | ||
struct s c = { | ||
7 * a + 5, | ||
{b, b + 1, b + 2} | ||
}; | ||
return 0; | ||
} |
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
Oops, something went wrong.