File: test.desc

package info (click to toggle)
cbmc 6.6.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 153,852 kB
  • sloc: cpp: 386,459; ansic: 114,466; java: 28,405; python: 6,003; yacc: 4,552; makefile: 4,041; lex: 2,487; xml: 2,388; sh: 2,050; perl: 557; pascal: 184; javascript: 163; ada: 36
file content (27 lines) | stat: -rw-r--r-- 1,238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CORE dfcc-only
main.c
--dfcc main
CALL __CPROVER_object_whole
CALL __CPROVER_object_upto
CALL __CPROVER_object_from
CALL __CPROVER_assignable
^\[__CPROVER_assignable.assertion.\d+\].*undefined function should be unreachable: FAILURE$
^\[__CPROVER_object_from.assertion.\d+\].*undefined function should be unreachable: FAILURE$
^\[__CPROVER_object_upto.assertion.\d+\].*undefined function should be unreachable: FAILURE$
^\[__CPROVER_object_whole.assertion.\d+\].*undefined function should be unreachable: FAILURE$
^\[my_write_set.assertion.\d+\] .* target null or writable: SUCCESS$
^EXIT=10$
^SIGNAL=0$
^VERIFICATION FAILED$
--
CALL __CPROVER_typed_target
--
This test checks that:
- built-in __CPROVER_assignable, __CPROVER_object_from, __CPROVER_object_upto,
  __CPROVER_object_whole functions are supported in the front-end;
- GOTO conversion preserves calls to __CPROVER_object_whole,
  __CPROVER_object_upto, __CPROVER_object_from;
- reachability assertions are inserted in front-end functions and allow to
  detect when front-end functions are used outside of contracts clauses;
- GOTO conversion translates __CPROVER_typed_target to __CPROVER_assignable;
- user-defined checks embedded in `my_write_set` persist after conversion.