Skip to content

Conversation

Rog3rSm1th
Copy link
Member

This PR Fixes #107.

For example this program:

%builtins output

func sum2(x: felt, y: felt) -> felt {
    return x + y;
}

func main{output_ptr: felt*}() {
    let x = 1;
    let y = 2;
    let sum = sum2(x, y); 
    return ();
}

You can determine the values of x and y needed for the sum to be 10 with this command:

thoth local tests/json_files/cairo_0/cairo_felt_sum.json --symbolic -function __main__.sum2 -constraint v4==10 -solve v0_x v1_y

v0_x: 10
v1_y: 0

@Rog3rSm1th Rog3rSm1th merged commit 857ba6b into master Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solver does not report anything...
1 participant