Returns the concrete type of a bounded int type with a given min and max.
Generates a ConcreteEnumId instance for bool.
The function downcast from the integer submodule.
Returns a submodule of the corelib named submodule_name.
If no such submodule exists, panics.
The gas withdrawal functions from the gas submodule.
Gets a semantic expression of the literal false. Uses the given stable_ptr in the returned
semantic expression.
Generates a ConcreteVariant instance for false.
Returns the name of the libfunc that creates a constant of type ty;
Returns
FunctionId of the libfunc that converts type of
ty to felt252.
Gets a
ConcreteVariant instance for an enum variant from the core module, by name.
Assumes the variant exists.
Given a core library function name and its generic arguments, returns
FunctionId.
Given a core library trait name, returns
TraitId.
Gets a
ConcreteVariant instance for an enum variant, by module and name.
Assumes the variant exists.
Given a module, a library function name and its generic arguments, returns
FunctionId.
Returns the submodule of base_module, named submodule_name, if exists.
Generates a ConcreteVariant instance for IsZeroResult::<felt252>::NonZero.
Generates a ConcreteVariant instance for IsZeroResult::<felt252>::Zero.
Gets the never type ().
Generates a ConcreteVariant instance for Option::None.
Generates a ConcreteVariant instance for Option::Some.
Gets a semantic expression of the literal true. Uses the given stable_ptr in the returned
semantic expression.
Generates a ConcreteVariant instance for true.
builds a semantic unit expression. This is not necessarily located in the AST, so it is received
as a param.
Gets the unit type ().
Attempts to unwrap error propagation types (Option, Result).
Returns None if not one of these types.
Validates that a given type is valid for a literal and that the value fits the range of the
specific type.