File tree Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ add_test_pl_tests(
4
4
)
5
5
else ()
6
6
add_test_pl_tests (
7
- "$<TARGET_FILE:cbmc>"
7
+ "$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation "
8
8
)
9
9
endif ()
Original file line number Diff line number Diff line change 10
10
endif
11
11
12
12
test :
13
- @../test.pl -e -p -c ../../../src/cbmc/cbmc $(gcc_only )
13
+ @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation " $(gcc_only )
14
14
15
15
tests.log : ../test.pl
16
- @../test.pl -e -p -c ../../../src/cbmc/cbmc $(gcc_only )
16
+ @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation " $(gcc_only )
17
17
18
18
show :
19
19
@for dir in * ; do \
Original file line number Diff line number Diff line change 1
1
add_test_pl_tests (
2
- "$<TARGET_FILE:cbmc>"
2
+ "$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation "
3
3
)
Original file line number Diff line number Diff line change 1
1
default : tests.log
2
2
3
3
test :
4
- @../test.pl -e -p -c ../../../src/cbmc/cbmc
4
+ @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation "
5
5
6
6
tests.log : ../test.pl
7
- @../test.pl -e -p -c ../../../src/cbmc/cbmc
7
+ @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation "
8
8
9
9
show :
10
10
@for dir in * ; do \
Original file line number Diff line number Diff line change @@ -470,6 +470,13 @@ symbolt &cpp_declarator_convertert::convert_new_symbol(
470
470
471
471
if (member_spec.is_inline ())
472
472
to_code_type (symbol.type ).set_inlined (true );
473
+
474
+ if (symbol.value .is_nil ())
475
+ {
476
+ // we don't need the identifiers
477
+ for (auto ¶meter : to_code_type (symbol.type ).parameters ())
478
+ parameter.set_identifier (irep_idt ());
479
+ }
473
480
}
474
481
else
475
482
{
Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ bool symbolt::is_well_formed() const
142
142
// Exception: Java symbols' base names do not have type signatures
143
143
// (for example, they can have name "someclass.method:(II)V" and base name
144
144
// "method")
145
- if (!has_suffix (id2string (name), id2string (base_name)) && mode != ID_java)
145
+ if (
146
+ !has_suffix (id2string (name), id2string (base_name)) && mode != ID_java &&
147
+ mode != ID_cpp)
146
148
{
147
149
bool criterion_must_hold = true ;
148
150
You can’t perform that action at this time.
0 commit comments