Skip to content

Commit

Permalink
Add test from #1235
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 6, 2023
1 parent 2174f10 commit 4279417
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/regression/56-witness/52-witness-lifter-ps2.c
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;
}

0 comments on commit 4279417

Please sign in to comment.