Skip to content

Commit 29584b3

Browse files
authored
Merge pull request #6567 from tautschnig/contracts/four-colons
CONTRACTS: remove redundant "::" in generated symbol names
2 parents 169dc18 + 9ba013d commit 29584b3

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

regression/contracts/history-pointer-replace-01/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main.c
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
ASSERT \*\(address_of.*n.*\) > 0
8-
ASSUME \*\(address_of.*n.*\) = .*::tmp_cc[\$\d]? \+ 2
8+
ASSUME \*\(address_of.*n.*\) = tmp_cc[\$\d]? \+ 2
99
--
1010
--
1111
Verification:

regression/contracts/history-pointer-replace-02/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main.c
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
ASSERT \*\(address_of.*n.*\) = 0
8-
ASSUME \*\(address_of.*n.*\) ≥ .*::tmp_cc[\$\d]? \+ 2
8+
ASSUME \*\(address_of.*n.*\) ≥ tmp_cc[\$\d]? \+ 2
99
--
1010
--
1111
Verification:

src/goto-instrument/contracts/utils.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,7 @@ const symbolt &new_tmp_symbol(
151151
bool is_auxiliary)
152152
{
153153
symbolt &new_symbol = get_fresh_aux_symbol(
154-
type,
155-
id2string(location.get_function()) + "::",
156-
suffix,
157-
location,
158-
mode,
159-
symtab);
154+
type, id2string(location.get_function()), suffix, location, mode, symtab);
160155
new_symbol.is_auxiliary = is_auxiliary;
161156
return new_symbol;
162157
}

0 commit comments

Comments
 (0)