1- KNOWNBUG 
1+ CORE 
22main.c
33--dependence-graph --show
44activate-multi-line-match
55EXIT=0
66SIGNAL=0
77// Assignment has a control dependency on the if
8- \/\/ ([0-9]+).*\n.*IF.*i < 7.*THEN(.*\n)*Control dependencies: \1\n(.*\n){2,3}.*a = 1
8+ \/\/ ([0-9]+).*\n.*IF.*i < 7.*THEN(.*\n)*Control dependencies: \1 \[TRUE\] \n(.*\n){2,3}.*a = 1
99// If has a control dependency on the loop head
10- \/\/ ([0-9]+).*\n.*IF.*i < 10.*THEN(.*\n)*Control dependencies: \1\n(.*\n){2,3}.*i < 7
10+ \/\/ ([0-9]+).*\n.*IF.*i < 10.*THEN(.*\n)*Control dependencies: \1 \[TRUE\] \n(.*\n){2,3}.*i < 7
1111--
1212^warning: ignoring
1313// Assignment does not have a control dependency on the loop head
14- \/\/ ([0-9]+).*\n.*IF.*i < 10.*THEN(.*\n)*Control dependencies: \1\n(.*\n){2,3}.*a = 1
14+ \/\/ ([0-9]+).*\n.*IF.*i < 10.*THEN(.*\n)*Control dependencies: \1 \[.*\] \n(.*\n){2,3}.*a = 1
1515--
1616The first regex above matches output portions like shown below (with <N> being a
1717location number). The intention is to check whether the assignment has a control
@@ -21,7 +21,7 @@ dependency on the if.
2121     1: IF !(i < 7) THEN GOTO 2
2222...
2323**** 3 file main.c line 8 function main
24- Control dependencies: <N>
24+ Control dependencies: <N> [TRUE] 
2525
2626        // 3 file main.c line 8 function main
2727        a = 1;
@@ -34,21 +34,21 @@ dependency on the loop head.
3434     1: IF !(i < 10) THEN GOTO 3
3535
3636**** 3 file main.c line 8 function main
37- Control dependencies: <N>
37+ Control dependencies: <N> [TRUE] 
3838Data dependencies: 1
3939
4040        // 3 file main.c line 8 function main
4141        IF !(i < 7) THEN GOTO 2
4242
4343The third regex above matches output portions like shown below (with <N> being a
44- location number). The intention is to check that the assignment does not have a 
45- control dependency on the loop head.
44+ location number, and <B> being a boolean ). The intention is to check that the
45+ assignment does not have a  control dependency on the loop head.
4646
4747        // <N> file main.c line 6 function main
4848     1: IF !(i < 10) THEN GOTO 3
4949...
5050**** 4 file main.c line 10 function main
51- Control dependencies: <N>
51+ Control dependencies: <N> [<B>] 
5252
5353        // 4 file main.c line 10 function main
5454        a = 1;
0 commit comments