File tree 15 files changed +20
-25
lines changed
15 files changed +20
-25
lines changed Original file line number Diff line number Diff line change 1
1
DIRS = ansi-c \
2
2
cbmc \
3
- cpp \
3
+ cbmc-cover \
4
4
cbmc-java \
5
5
cbmc-java-inheritance \
6
- cbmc-cover \
6
+ cpp \
7
7
goto-analyzer \
8
8
goto-diff \
9
9
goto-gcc \
Original file line number Diff line number Diff line change 9
9
^\[main.assertion.5\] NotForall-Forall: successful: SUCCESS$
10
10
^\[main.assertion.6\] NotForall-NotForall: successful: SUCCESS$
11
11
^\*\* 2 of 6 failed \(2 iterations\)$
12
- ^\ VERIFICATION FAILED$
12
+ ^VERIFICATION FAILED$
Original file line number Diff line number Diff line change 7
7
^\[main.assertion.3\] assertion z1: SUCCESS$
8
8
^\[main.assertion.4\] assertion z2: SUCCESS$
9
9
^\*\* 1 of 4 failed \(2 iterations\)$
10
- ^\ VERIFICATION FAILED$
10
+ ^VERIFICATION FAILED$
Original file line number Diff line number Diff line change 8
8
^\[main.assertion.4\] failure 3: FAILURE$
9
9
^\[main.assertion.5\] success 2: SUCCESS$
10
10
^\*\* 3 of 5 failed \(2 iterations\)$
11
- ^\ VERIFICATION FAILED$
11
+ ^VERIFICATION FAILED$
Original file line number Diff line number Diff line change 9
9
^\[main.assertion.5\] assertion tmp_if_expr\$12: SUCCESS$
10
10
^\[main.assertion.6\] assertion tmp_if_expr\$15: SUCCESS$
11
11
^\*\* 0 of 6 failed \(1 iteration\)$
12
- ^\ VERIFICATION SUCCESSFUL$
12
+ ^VERIFICATION SUCCESSFUL$
Original file line number Diff line number Diff line change 8
8
^\[main.assertion.4\] success 3: SUCCESS$
9
9
^\[main.assertion.5\] failure 2: FAILURE$
10
10
^\*\* 2 of 5 failed \(2 iterations\)$
11
- ^\ VERIFICATION FAILED$
11
+ ^VERIFICATION FAILED$
Original file line number Diff line number Diff line change 5
5
^\[main.assertion.1\] assertion tmp_if_expr\$1: FAILURE$
6
6
^\[main.assertion.2\] assertion tmp_if_expr\$2: SUCCESS$
7
7
^\*\* 1 of 2 failed \(2 iterations\)$
8
- ^\ VERIFICATION FAILED$
8
+ ^VERIFICATION FAILED$
Original file line number Diff line number Diff line change @@ -1482,13 +1482,16 @@ void goto_instrument_parse_optionst::help()
1482
1482
" --show-symbol-table show symbol table\n "
1483
1483
" --list-symbols list symbols with type information\n "
1484
1484
HELP_SHOW_GOTO_FUNCTIONS
1485
+ " --drop-unused-functions drop functions trivially unreachable from main function\n " // NOLINT(*)
1485
1486
" --print-internal-representation\n " // NOLINTNEXTLINE(*)
1486
1487
" show verbose internal representation of the program\n "
1487
1488
" --list-undefined-functions list functions without body\n "
1488
1489
" --show-struct-alignment show struct members that might be concurrently accessed\n " // NOLINT(*)
1489
1490
" --show-natural-loops show natural loop heads\n "
1490
1491
// NOLINTNEXTLINE(whitespace/line_length)
1491
1492
" --list-calls-args list all function calls with their arguments\n "
1493
+ // NOLINTNEXTLINE(whitespace/line_length)
1494
+ " --print-path-lengths print statistics about control-flow graph paths\n "
1492
1495
" \n "
1493
1496
" Safety checks:\n "
1494
1497
" --no-assertions ignore user assertions\n "
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ static goto_programt::targett insert_nondet_init_code(
67
67
}
68
68
69
69
// Although, if the type is a ptr-to-void then we also want to bail
70
- if (lhs.type ().subtype ().id ()==ID_empty)
70
+ if (lhs.type ().subtype ().id ()==ID_empty ||
71
+ lhs.type ().subtype ().id ()==ID_code)
71
72
{
72
73
return next_instr;
73
74
}
Original file line number Diff line number Diff line change @@ -530,11 +530,6 @@ class goto_convertt:public messaget
530
530
const exprt &rhs,
531
531
const exprt::operandst &arguments,
532
532
goto_programt &dest);
533
- void do_array_set (
534
- const exprt &lhs,
535
- const exprt &rhs,
536
- const exprt::operandst &arguments,
537
- goto_programt &dest);
538
533
void do_array_equal (
539
534
const exprt &lhs,
540
535
const exprt &rhs,
@@ -543,7 +538,7 @@ class goto_convertt:public messaget
543
538
void do_array_op (
544
539
const irep_idt &id,
545
540
const exprt &lhs,
546
- const exprt &rhs ,
541
+ const exprt &function ,
547
542
const exprt::operandst &arguments,
548
543
goto_programt &dest);
549
544
void do_printf (
Original file line number Diff line number Diff line change @@ -251,4 +251,3 @@ void replace_java_nondet(goto_modelt &goto_model)
251
251
{
252
252
replace_java_nondet (goto_model.goto_functions );
253
253
}
254
-
Original file line number Diff line number Diff line change 17
17
#include < util/std_types.h>
18
18
#include < util/string_utils.h>
19
19
20
+ #include < set>
21
+
20
22
bool java_is_array_type (const typet &type)
21
23
{
22
24
if (type.id ()!=ID_struct)
Original file line number Diff line number Diff line change 6
6
7
7
\*******************************************************************/
8
8
9
- #include < util/symbol_table.h>
10
- #include < util/message.h>
11
- #include < util/std_expr.h>
12
-
13
- #include " java_bytecode_parse_tree.h"
14
9
#ifndef CPROVER_JAVA_BYTECODE_JAVA_UTILS_H
15
10
#define CPROVER_JAVA_BYTECODE_JAVA_UTILS_H
16
11
17
- #include < util/type.h>
12
+ #include < util/message.h>
13
+ #include < util/std_expr.h>
14
+ #include < util/symbol_table.h>
18
15
19
16
bool java_is_array_type (const typet &type);
20
17
Original file line number Diff line number Diff line change 18
18
19
19
class namespacet ;
20
20
21
- class namespacet ;
22
-
23
21
class pointer_logict
24
22
{
25
23
public:
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ exprt bdd_exprt::as_expr(const mini_bddt &r) const
122
122
}
123
123
else if (r.high ().is_false ())
124
124
{
125
- if (r.high ().is_true ())
125
+ if (r.low ().is_true ())
126
126
return not_exprt (n_expr);
127
127
else
128
128
return and_exprt (not_exprt (n_expr), as_expr (r.low ()));
You can’t perform that action at this time.
0 commit comments