CORE
main.c
--dependence-graph --show
activate-multi-line-match
EXIT=0
SIGNAL=0
// Assignment has a control dependency on the first if
\/\/ ([0-9]+).*\n.*IF.*a < 7.*THEN(.*\n)*Control dependencies: (([0-9]+,\1)|(\1,[0-9]+))\n(.*\n){2,3}.*a = 2
// Assignment has a control dependency on the second if
\/\/ ([0-9]+).*\n.*IF.*a < 10.*THEN(.*\n)*Control dependencies: (([0-9]+,\1)|(\1,[0-9]+))\n(.*\n){2,3}.*a = 2
--
^warning: ignoring
--
The first regex above matches output portions like shown below (with <N> being a
location number). The intention is to check whether the assignment has a control
dependency on the goto statement.

        // <N> file main.c line 9 function main
        IF a < 7 THEN GOTO 1
...
**** 6 file main.c line 19 function main
Control dependencies: (<N>,...)|(...,<N>)

        // 6 file main.c line 19 function main
        a = 2;

The second regex above matches output portions like shown below (with <N> being
a location number). The intention is to check whether the assignment has a
control dependency on the goto statement.

        // <N> file main.c line 14 function main
        IF !(a < 10) THEN GOTO 2
...
**** 6 file main.c line 19 function main
Control dependencies: (<N>,...)|(...,<N>)

        // 6 file main.c line 19 function main
        a = 2;
