Skip to content

Commit e2049b0

Browse files
author
thk123
committed
Making the approx and precise FP removal tests more precise
We now exclude the line that would catch if the function is replaced by all 9 possibilities.
1 parent ab23684 commit e2049b0

File tree

29 files changed

+29
-0
lines changed
  • regression/goto-analyzer
    • approx-array-variable-const-fp
    • approx-const-fp-array-variable-cast-const-fp
    • approx-const-fp-array-variable-const-fp
    • approx-const-fp-array-variable-const-fp-with-null
    • approx-const-fp-array-variable-const-pointer-const-struct-non-const-fp
    • approx-const-fp-array-variable-const-struct-non-const-fp
    • approx-const-fp-array-variable-invalid-cast-const-fp
    • approx-const-fp-array-variable-struct-const-fp-with-zero
    • precise-array-calculation-const-fp
    • precise-array-literal-const-fp
    • precise-const-fp
    • precise-const-fp-array-const-variable-const-fp
    • precise-const-fp-array-literal-const-fp
    • precise-const-fp-array-literal-const-fp-run-time
    • precise-const-fp-array-literal-const-struct-non-const-fp
    • precise-const-fp-array-variable-const-pointer-const-struct-non-const-fp
    • precise-const-fp-const-fp
    • precise-const-fp-const-struct-const-array-literal-fp
    • precise-const-fp-const-struct-non-const-array-literal-fp
    • precise-const-fp-const-struct-non-const-fp
    • precise-const-fp-dereference-const-pointer-const-fp
    • precise-const-pointer-const-struct-fp
    • precise-const-struct-non-const-fp
    • precise-derefence
    • precise-derefence-const-pointer-const-fp
    • precise-dereference-address-pointer-const-fp
    • precise-dereference-const-struct-const-pointer-const-fp
    • precise-dereference-const-struct-const-pointer-const-struct-const-fp
    • precise-dereference-const-struct-pointer-const-fp

29 files changed

+29
-0
lines changed

regression/goto-analyzer/approx-array-variable-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed (long )*long int\)i\] == f8 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed (long )*long int\)i\] == f9 THEN GOTO [0-9]$
1616
^warning: ignoring
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-cast-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-const-fp-with-null/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-const-pointer-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-invalid-cast-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ main.c
1414
^\s*IF fp_tbl\[\(signed long int\)i\] == f7 THEN GOTO [0-9]$
1515
^\s*IF fp_tbl\[\(signed long int\)i\] == f8 THEN GOTO [0-9]$
1616
^\s*IF fp_tbl\[\(signed long int\)i\] == f9 THEN GOTO [0-9]$
17+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/approx-const-fp-array-variable-struct-const-fp-with-zero/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ main.c
1515
^\s*IF fp == f7 THEN GOTO [0-9]$
1616
^\s*IF fp == f8 THEN GOTO [0-9]$
1717
^\s*IF fp == f9 THEN GOTO [0-9]$
18+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-array-calculation-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-array-literal-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-array-const-variable-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-array-literal-const-fp-run-time/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ main.c
55
^\s*f3\(\);$
66
--
77
^warning: ignoring
8+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-array-literal-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-array-literal-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-array-variable-const-pointer-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-const-struct-const-array-literal-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-const-struct-non-const-array-literal-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp-dereference-const-pointer-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ main.c
55
^\s*f2\(\);
66
--
77
^warning: ignoring
8+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-pointer-const-struct-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-const-struct-non-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-derefence-const-pointer-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-derefence/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ main.c
55
^\s*f2\(\);
66
--
77
^warning: ignoring
8+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-dereference-address-pointer-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-dereference-const-struct-const-pointer-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-dereference-const-struct-const-pointer-const-struct-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

regression/goto-analyzer/precise-dereference-const-struct-pointer-const-fp/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ main.c
66
^SIGNAL=0$
77
--
88
^warning: ignoring
9+
function \w+: replacing function pointer by 9 possible targets

0 commit comments

Comments
 (0)