API reference

python:irx:irx.analysis.contract.SemanticContract

class SemanticContract

SemanticContract(stable_phases: tuple[SemanticPhase, ...], required_node_semantic_fields: tuple[str, ...], required_session_fields: tuple[str, ...], allowed_host_entrypoints: tuple[str, ...], allowed_host_inputs: tuple[str, ...], phase_error_boundaries: tuple[PhaseErrorBoundary, ...])

Source: packages/irx/src/irx/analysis/contract.py:74

Stable semantic contract exposed by IRx.

Collect the semantic phases, metadata requirements, host input constraints, and error boundaries that analysis guarantees to lowering and host compilers.

Attributes

Methods

Attributes

Search documentation

Type to search.