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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
//! Contracts & Flow commands for TLDR CLI
//!
//! This module provides commands for contract inference, behavioral specification
//! extraction, and program flow analysis. These commands help users understand
//! function contracts, invariants, and data flow paths through their code.
//!
//! # Commands
//!
//! - `contracts`: Infer pre/postconditions from guard clauses, assertions, isinstance checks
//! - `invariants`: Daikon-lite inference from test execution traces
//! - `specs`: Extract behavioral specifications from pytest test files
//! - `verify`: Aggregated verification dashboard combining multiple analyses
//! - `dead-stores`: SSA-based dead store detection
//! - `bounds`: Interval analysis tracking numeric value ranges
//! - `chop`: Program slice intersection (forward AND backward)
//!
//! # Module Structure
//!
//! ```text
//! contracts/
//! ├── mod.rs # Module exports and re-exports (this file)
//! ├── types.rs # Shared data types across all commands
//! ├── error.rs # ContractsError enum and Result type
//! ├── contracts.rs # contracts command implementation
//! ├── invariants.rs # invariants command implementation
//! ├── specs.rs # specs command implementation
//! ├── verify.rs # verify command implementation
//! ├── dead_stores.rs # dead-stores command implementation
//! ├── bounds.rs # bounds command implementation
//! └── chop.rs # chop command implementation
//! ```
//!
//! # Schema Version
//!
//! All JSON output includes a schema version for forward compatibility.
//! Current schema version: 1.0
// Phase 3: contracts command implementation
pub use contracts_cmd as contracts;
// bounds: archived (T5 deep analysis)
// Phase 5: dead-stores command implementation
// Phase 6: chop command implementation
// Phase 7: specs command implementation
// Phase 8: invariants command implementation (Daikon-lite)
// Phase 9: verify command implementation
// Re-export core types for convenience
pub use ;
pub use ;
// Phase 3: Re-export ContractsArgs for CLI integration
pub use ContractsArgs;
// BoundsArgs: archived (T5 deep analysis)
// Phase 5: Re-export DeadStoresArgs for CLI integration
pub use DeadStoresArgs;
// Phase 6: Re-export ChopArgs for CLI integration
pub use ChopArgs;
// Phase 7: Re-export SpecsArgs for CLI integration
pub use SpecsArgs;
// Phase 8: Re-export InvariantsArgs for CLI integration
pub use InvariantsArgs;
// Phase 9: Re-export VerifyArgs for CLI integration
pub use VerifyArgs;
// Re-export validation utilities and constants
pub use ;
/// Schema version for JSON output format.
/// Increment when output schema changes in incompatible ways.
pub const SCHEMA_VERSION: &str = "1.0";