2 .\" cccheck manual page.
3 .\" Copyright (C) 2011 Alexander Chebaturkin
5 .\" Alexander Chebaturkin (chebaturkin@gmail.com)
9 cccheck \- Perform static code contracts verification for CLR assemblies.
12 .B cccheck --assembly=<assembly> [options]
14 Perform static code contracts verification to find bugs and inconsistencies
15 between code and specification. This includes non-null, integer analyses.
17 The assembly must have been built with the symbol CONTRACTS_FULL defined,
18 otherwise the calls to the contract methods will have been removed
21 Currently only Contract.Assume() and Contract.Assert() methods are
22 supported. Only non-null analysis is supported, the consecutive analyses are
23 in development. An error message will be shown if cccheck is unable to process
24 all or some of the methods of specified assembly.
25 .SH CONFIGURATION OPTIONS
27 .I "--assembly <assembly-name>"
28 The assembly to perform static verification.
31 Shows debug information about process of proving the assertions. It shows
32 four layers of abstraction, raw layer, stack layer, heap layer,
33 and substituted expression level.
35 .I "--method=<method-name-substring>"
36 String for finding method. It filters all methods in assembly where method
37 name has this parameter as a substring.
40 Show help for cccheck, listing configuration options.
44 Suppose you have a method:
53 Contract.Assert(x != null);
56 After the verification the tool will have results in following format:
57 "Assertion at : [Subroutine: <id> Block <blockId> PC <id>] :
58 is (true|false|unproven|unreachable)".
59 (PC is a program counter)
62 Written by Alexander Chebaturkin
64 Copyright 2011 Alexander Chebaturkin.
65 Released under MIT license.
67 Visit http://www.mono-project.com for details