Skip to main content

cairo_program_runner_lib/hints/
vars.rs

1/// General program input.
2pub const PROGRAM_INPUT: &str = "program_input";
3
4/// General program object.
5pub const PROGRAM_OBJECT: &str = "program_object";
6
7/// Deserialized bootloader input.
8pub const BOOTLOADER_INPUT: &str = "bootloader_input";
9
10/// Saved state of the output builtin.
11pub const OUTPUT_BUILTIN_STATE: &str = "output_builtin_state";
12
13/// Saved state of the output builtin for an applicative bootloader run.
14pub const APPLICATIVE_OUTPUT_BUILTIN_STATE: &str = "applicative_output_builtin_state";
15
16/// Output builtin segment start.
17pub const OUTPUT_START: &str = "output_start";
18
19/// Deserialized simple bootloader input.
20pub const SIMPLE_BOOTLOADER_INPUT: &str = "simple_bootloader_input";
21
22/// Deserialized applicative bootloader input.
23pub const APPLICATIVE_BOOTLOADER_INPUT: &str = "applicative_bootloader_input";
24
25/// Packed outputs.
26pub const PACKED_OUTPUTS: &str = "packed_outputs";
27
28/// Packed output for the current task.
29pub const PACKED_OUTPUT: &str = "packed_output";
30
31/// Fact topologies.
32pub const FACT_TOPOLOGIES: &str = "fact_topologies";
33
34/// Aggregator fact topologies for an applicative bootloader run.
35pub const AGGREGATOR_FACT_TOPOLOGIES: &str = "aggregator_fact_topologies";
36
37/// Simple bootloader tasks.
38pub const TASKS: &str = "tasks";
39
40/// Current simple bootloader task.
41pub const TASK: &str = "task";
42
43pub const USE_PREV_HASH: &str = "use_prev_hash";
44/// Current simple bootloader program_hash_function.
45pub const PROGRAM_HASH_FUNCTION: &str = "program_hash_function";
46
47/// Program data segment. Used in `execute_task()`.
48pub const PROGRAM_DATA_BASE: &str = "program_data_base";
49
50/// Address of current program.
51pub const PROGRAM_ADDRESS: &str = "program_address";
52
53/// Output builtin additional data.
54pub const OUTPUT_RUNNER_DATA: &str = "output_runner_data";
55
56/// Number of builtins used by the program.
57pub const N_BUILTINS: &str = "n_builtins";
58
59/// Number of selected builtins for the current program.
60pub const N_SELECTED_BUILTINS: &str = "n_selected_builtins";
61
62/// "pre_execution_builtin_ptrs"
63pub const PRE_EXECUTION_BUILTIN_PTRS: &str = "pre_execution_builtin_ptrs";
64
65// component height const from the py file
66pub const COMPONENT_HEIGHT: u64 = 16;
67
68/// Simple output input.
69pub const SIMPLE_OUTPUT_INPUT: &str = "simple_output_input";
70
71/// Mock Cairo verifier input.
72pub const MOCK_CAIRO_VERIFIER_INPUT: &str = "mock_cairo_verifier_input";