Module compiler

Source

Structs§

CairoProgram
The casm program representation.
CairoProgramDebugInfo
The debug information of a compilation from Sierra to casm.
ConstSegment
The data for a single segment.
ConstsInfo
The information about the constants used in the program.
InvokeStatementDebugInfo
Additional debug information for an invoke Sierra statement.
ReturnStatementDebugInfo
Additional debug information for a return Sierra statement.
SierraStatementDebugInfo
The debug information of a compilation from Sierra to casm.
SierraToCasmConfig
Configuration for the Sierra to CASM compilation.

Enums§

CompilationError
StatementKindDebugInfo
Additional debug information for a Sierra statement, depending on its kind (invoke/return/dummy).

Functions§

check_basic_structure
Ensure the basic structure of the invocation is the same as the library function.
compile
Compiles program from Sierra to CASM using metadata for information regarding AP changes and gas usage, and config additional compilation flavours.
validate_metadata
Runs basic validations on the given metadata.