-
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.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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
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; | ||
} |