File: test-enforce.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 (16 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CORE dfcc-only
main.c
--no-malloc-may-fail --dfcc main --enforce-contract foo
^\[foo.assigns.\d+\].*Check that \*out_ptr1 is assignable: SUCCESS$
^\[foo.assigns.\d+\].*Check that \*out_ptr2 is assignable: SUCCESS$
^\[foo.postcondition.\d+\].*Check ensures clause of contract contract::foo for function foo: SUCCESS$
^\[main.assertion.\d+\].*out1 is rw_ok: SUCCESS$
^\[main.assertion.\d+\].*out2 is rw_ok: SUCCESS$
^\[main.assertion.\d+\].*out1 and out2 are not aliased: SUCCESS$
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
--
--
This test checks that foo satisfies its contract and serves as a baseline for
test-replace.desc.