-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add proof_mode flag to cairo1-run * Add Changelog entry * Clippy * clippy * Add `air_public_input` flag * Progress * Update builtins stop ptrs when running cairo 1 * Change visibility * Change visibility * Fix * Fix trace not enables * Build execution public memory * Handle EcOp case * Fix typo * Use cleaner solution * Fix * Improve comments * Add changelog entry * Add args flag * Handle arguments * Handle arg size & add tests * Parse array arguments * Fix language * reorder * Add changelog entry * Move programs with args to an inner folder * Fix README example * Apply input arguments fix from cairo_lang * Add test * Fix tests
- Loading branch information
Showing
7 changed files
with
225 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
cairo_programs/cairo-1-programs/with_input/array_input_sum.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use array::ArrayTrait; | ||
|
||
fn main(index_a: u32, array_a: Array<u32>, index_b: u32, array_b: Array<u32>) -> u32 { | ||
*array_a.at(index_a) + *array_b.at(index_b) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fn main(argc: u32) -> u8 { | ||
if argc == 0 { | ||
1_u8 | ||
} else { | ||
0_u8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[derive(Copy, Drop)] | ||
struct Tensor { | ||
shape: Span<u32>, | ||
data: Span<u32> | ||
} | ||
|
||
fn main(tensor: Tensor) -> u32 { | ||
*tensor.data.at(0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters