Expand description
Feature-specific code generation for all 50 verification features. Feature-specific Rust code generation for Assura’s 50 verification features.
Each feature maps to a codegen strategy:
- debug_assert!: Runtime checks from contract clauses
- Newtype wrappers: Type-safe wrappers (region, taint)
- Rust attributes: cfg, unsafe, visibility markers
- Documentation: Contract metadata as doc comments
The coverage script greps for feature-specific identifiers in this crate. Each function here uses the canonical identifier for its feature.
Functions§
- compile_
time_ allocator - compile_
time_ axiom - CORE.4: Axiomatic definition compile_error!.
- compile_
time_ behavioral_ equiv - compile_
time_ binary_ format - compile_
time_ bit_ level - FMT.2: Bit-level width sum const assert.
- compile_
time_ checksum - compile_
time_ circular - MEM.4: Circular buffer power-of-two const assert.
- compile_
time_ codec_ registry - compile_
time_ complexity_ bound - compile_
time_ constant_ time - SEC.3: Constant-time compile_error!.
- compile_
time_ crash_ recovery - compile_
time_ crypto - SEC.5: Crypto conformance compile_error!.
- compile_
time_ deadline - compile_
time_ dependent_ types - SEC.5: Dependent type / information-flow label enforcement.
- compile_
time_ determinism - CONC.3: Determinism compile_error!.
- compile_
time_ error_ propagation - compile_
time_ feature_ flag - compile_
time_ fixed_ width - compile_
time_ frame - CORE.3: Frame conditions.
- compile_
time_ ghost_ erasure - CORE.1: Ghost code erasure.
- compile_
time_ incremental - compile_
time_ interface - compile_
time_ lemma - CORE.2: Lemma erasure compile_error!.
- compile_
time_ liveness - compile_
time_ lock_ order - compile_
time_ monotonic - STOR.5: Monotonic wrapper type.
- compile_
time_ multi_ pass - compile_
time_ mvcc - compile_
time_ numerical_ precision - compile_
time_ opaque - compile_
time_ page_ cache - STOR.2: Page cache alignment const assert.
- compile_
time_ platform - PLAT.1: Platform abstraction cfg gate.
- compile_
time_ precomputed_ table - compile_
time_ prophecy - compile_
time_ protocol_ grammar - compile_
time_ reentrancy - compile_
time_ region - compile_
time_ resource_ limit - compile_
time_ rollback - STOR.4: Rollback #[must_use] handle.
- compile_
time_ scoped_ invariant - compile_
time_ shared_ memory - compile_
time_ storage_ failure - STOR.6: Storage failure #[must_use].
- compile_
time_ string_ encoding - FMT.3: String encoding compile_error!.
- compile_
time_ structural - compile_
time_ taint - SEC.1: Taint tracking compile_error!.
- compile_
time_ test_ gen - compile_
time_ trigger - compile_
time_ trigger_ pattern - CORE.5: Trigger pattern validation.
- compile_
time_ unsafe_ escape - compile_
time_ weak_ memory - compile_
time_ zeroize - SEC.4: Secure erasure compile_error!.
- generate_
all_ feature_ clauses - Generate all feature-specific annotations for a set of clauses. Called from contract and function codegen paths.
- generate_
allocator_ check - generate_
axiomatic_ definition - generate_
behavioral_ equiv_ test - TEST.2: Generate behavioral_equivalence test skeleton.
- generate_
binary_ format_ check - generate_
bit_ level_ check - generate_
callback_ reentrancy_ guard - CONC.2: Generate callback re-entrancy guard (custom, not a simple assert).
- generate_
checksum_ check - generate_
circular_ buffer_ check - generate_
complexity_ bound - PERF.2: Complexity bound annotation.
- generate_
constant_ time_ annotation - SEC.3: Generate constant-time execution annotation.
- generate_
crash_ recovery_ check - generate_
crypto_ conformance_ check - generate_
deadline_ check - CONC.5: Temporal deadline annotation.
- generate_
deterministic_ annotation - generate_
error_ propagation_ check - generate_
feature_ clause - Generate feature-specific codegen for a single clause.
- generate_
feature_ flag - PLAT.2: Feature flag annotation.
- generate_
ghost_ compile_ check - CORE.1: Generate compile-time ghost erasure check.
- generate_
incremental_ contract - MISC.1: Generate incremental_contract version annotation.
- generate_
liveness_ check - CORE.8: Generate liveness contract check.
- generate_
lock_ order_ annotation - CONC.4: Lock ordering annotation.
- generate_
monotonic_ check - generate_
multi_ pass_ refinement - TEST.3: Generate multi_pass_refinement check.
- generate_
mvcc_ check - generate_
numerical_ precision_ check - generate_
opaque_ function - generate_
page_ cache_ check - generate_
platform_ abstraction - PLAT.1: Platform abstraction annotation.
- generate_
precomputed_ table_ check - generate_
protocol_ grammar_ check - generate_
region_ annotation - generate_
resource_ limit_ check - generate_
rollback_ check - generate_
scoped_ invariant - MISC.2: Generate scoped_invariant suspension marker.
- generate_
storage_ failure_ check - generate_
string_ encoding_ check - generate_
structural_ invariant - generate_
unsafe_ escape - PERF.1: Unsafe escape annotation.