begin model freeBad
| begin input variables
| end input variables;
| begin output variables
| end output variables;
| begin process 0
| | main function : main;
| | begin function main
| | | | freeBad.c 3.0--3.11: "void main()"
| | | begin proper local variables
| | | | x : real;
| | | | | freeBad.c 4.1--4.10: "double x;"
| | | | p : pointer(36)<real> = &x;
| | | | | freeBad.c 5.1--5.16: "double* p = &x;"
| | | end proper local variables;
| | | start location : 0;
| | | begin location 0
| | | | kind : INVOCATION;
| | | | free(p); goto location 1;
| | | | | freeBad.c 7.1--7.9: "free(p);"
| | | end location 0;
| | | begin location 1
| | | | kind : RETURN;
| | | | return null; goto location 2;
| | | | | freeBad.c 8.0--8.0: "}"
| | | end location 1;
| | | begin location 2
| | | | kind : TERMINAL;
| | | end location 2;
| | end function main;
| | begin function free
| | | | null
| | | begin formal parameters
| | | | pointer : pointer(37)<void>;
| | | | | null
| | | end formal parameters;
| | end function free;
| end process 0;
end model freeBad.
