Loosening regex on phi merge zero generation regression tests

The tests that should have caught this were too specific when checking for the names of the variables and at some point in the past dynamic_object got given a prefix, which meant that the check to make sure no zero generation existed always passed (even with a #0 there) because the variable name wasn't exact.

Made the matching far more forgiving and it now looks for anything that vaguely looks like a guard statement with a 0 generation object.
This commit is contained in:
johndumbell 2019-01-10 16:01:44 +00:00
parent eca9b599eb
commit 466ac7a799
7 changed files with 14 additions and 14 deletions

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\)
^.*\?\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\)
^.*\?\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\)
^.*\?\s+(dynamic_object|new_tmp)[0-9]+(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+dynamic_object[0-9]+(@[0-9]+)?#0\)
^.*\?\s+dynamic_object[0-9]+(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+global(@[0-9]+)?#0\)
^.*\?\s+global(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+local(@[0-9]+)?#0\)
^.*\?\s+local(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement:

View File

@ -5,8 +5,8 @@ activate-multi-line-match
^EXIT=0$
^SIGNAL=0$
--
^.*:\s+staticLocal(@[0-9]+)?#0\)
^.*\?\s+staticLocal(@[0-9]+)?#0\s+:
\([^\s]+guard[^\s]+ \? [^\s]+#0 : [^\s]+\)
\([^\s]+guard[^\s]+ \? [^\s]+ : [^\s]+#0\)
--
These regexes are making sure that a variable of generation 0 dosen't appear in a phi merge, so the below
statement: