-
Notifications
You must be signed in to change notification settings - Fork 76
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 #1236 from goblint/issue-1235
Use inlined ARG edges for unambiguous stacked ARG function return
- Loading branch information
Showing
6 changed files
with
96 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// PARAM: --enable ana.sv-comp.enabled --enable ana.sv-comp.functions --enable witness.graphml.enabled --set ana.specification 'CHECK( init(main()), LTL(G valid-memtrack) )' --set ana.activated[+] memLeak --set ana.path_sens[+] memLeak --set ana.malloc.unique_address_count 1 | ||
struct _twoIntsStruct { | ||
int intOne ; | ||
int intTwo ; | ||
}; | ||
|
||
typedef struct _twoIntsStruct twoIntsStruct; | ||
|
||
void printStructLine(twoIntsStruct const *structTwoIntsStruct) | ||
{ | ||
return; | ||
} | ||
|
||
|
||
int main(int argc, char **argv) | ||
{ | ||
twoIntsStruct *data; | ||
int tmp_1; | ||
|
||
|
||
if (tmp_1 != 0) { | ||
twoIntsStruct *dataBuffer = malloc(800UL); | ||
data = dataBuffer; | ||
} | ||
else { | ||
|
||
twoIntsStruct *dataBuffer_0 = malloc(800UL); | ||
data = dataBuffer_0; | ||
} | ||
|
||
printStructLine((twoIntsStruct const *)data); | ||
free((void *)data); | ||
|
||
return; | ||
} |
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,39 @@ | ||
// PARAM: --enable ana.sv-comp.enabled --enable ana.sv-comp.functions --enable witness.graphml.enabled --set ana.specification 'CHECK( init(main()), LTL(G valid-memtrack) )' --set ana.activated[+] memLeak --set ana.path_sens[+] memLeak --set ana.malloc.unique_address_count 1 | ||
struct _twoIntsStruct { | ||
int intOne ; | ||
int intTwo ; | ||
}; | ||
|
||
typedef struct _twoIntsStruct twoIntsStruct; | ||
|
||
void printStructLine(twoIntsStruct const *structTwoIntsStruct) | ||
{ | ||
return; | ||
} | ||
|
||
twoIntsStruct *foo() { | ||
twoIntsStruct *data; | ||
int tmp_1; | ||
|
||
if (tmp_1 != 0) { | ||
twoIntsStruct *dataBuffer = malloc(800UL); | ||
data = dataBuffer; | ||
} | ||
else { | ||
|
||
twoIntsStruct *dataBuffer_0 = malloc(800UL); | ||
data = dataBuffer_0; | ||
} | ||
return data; | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
twoIntsStruct *data; | ||
data = foo(); | ||
|
||
printStructLine((twoIntsStruct const *)data); | ||
free((void *)data); | ||
|
||
return; | ||
} |