You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let runner_output_mul_op1 = run_qm31_operation_get_op1(is_mul=TRUE, dst=qm31_mul_dst, op0=qm31_op0);
46
+
assert runner_output_mul_op1 = qm31_op1;
47
+
let runner_output_add_op1 = run_qm31_operation_get_op1(is_mul=FALSE, dst=qm31_add_dst, op0=qm31_op0);
48
+
assert runner_output_add_op1 = qm31_op1;
49
+
50
+
let runner_output_mul_op0 = run_qm31_operation_get_op0(is_mul=TRUE, dst=qm31_mul_dst, op1=qm31_op1);
51
+
assert runner_output_mul_op0 = qm31_op0;
52
+
let runner_output_add_op0 = run_qm31_operation_get_op0(is_mul=FALSE, dst=qm31_add_dst, op1=qm31_op1);
53
+
assert runner_output_add_op0 = qm31_op0;
54
+
55
+
// let runner_output_mul_op0 = run_qm31_operation_get_op0(is_mul=TRUE, dst=qm31_mul_dst, op1=qm31_op1);
56
+
// //assert qm31_op1 = qm31_op0;
57
+
// assert runner_output_mul_op0 = qm31_op0;
58
+
// let runner_output_mul_op1 = run_qm31_operation_get_op1(is_mul=TRUE, dst=qm31_mul_dst, op0=qm31_op0);
59
+
// assert runner_output_mul_op1 = qm31_op1;
60
+
61
+
return ();
62
+
}
63
+
64
+
// missing_operand_index
65
+
funcrun_qm31_operation_get_dst(
66
+
is_mul: felt,
67
+
op0: felt,
68
+
op1: felt,
69
+
) -> felt {
70
+
//alloc_locals;
71
+
72
+
let offset0 = 2**15;
73
+
let offset1 = (2**15)-4;
74
+
let offset2 = (2**15)-3;
75
+
76
+
let flag_dst_base_fp = 0;
77
+
let flag_op0_base_fp = 1;
78
+
let flag_op1_imm = 0;
79
+
let flag_op1_base_fp = 1;
80
+
let flag_op1_base_ap = 0;
81
+
let flag_res_add = 0;
82
+
let flag_res_mul = is_mul; //
83
+
let flag_PC_update_jump = 0;
84
+
let flag_PC_update_jump_rel = 0;
85
+
let flag_PC_update_jnz = 0;
86
+
let flag_ap_update_add = 0;
87
+
let flag_ap_update_add_1 = 0;
88
+
let flag_opcode_call = 0;
89
+
let flag_opcode_ret = 0;
90
+
let flag_opcode_assert_eq = 1;
91
+
92
+
let flag_num_qm31_add = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+0*(2**6)+flag_opcode_assert_eq*(2**14);
93
+
let flag_num_qm31_mul = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+1*(2**6)+flag_opcode_assert_eq*(2**14);
let flag_num_qm31_add = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+0*(2**6)+flag_opcode_assert_eq*(2**14);
164
+
let flag_num_qm31_mul = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+1*(2**6)+flag_opcode_assert_eq*(2**14);
let flag_num_qm31_add = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+0*(2**6)+flag_opcode_assert_eq*(2**14);
234
+
let flag_num_qm31_mul = flag_dst_base_fp+flag_op0_base_fp*(2**1)+flag_op1_imm*(2**2)+flag_op1_base_fp*(2**3)+flag_op1_base_ap*(2**4)+1*(2**6)+flag_opcode_assert_eq*(2**14);
0 commit comments