@@ -474,10 +474,10 @@ impl Cairo1HintProcessor {
474474 remainder1 : & CellRef ,
475475 ) -> Result < ( ) , HintError > {
476476 let pow_2_128 = BigUint :: from ( u128:: MAX ) + 1u32 ;
477- let dividend0 = get_val ( vm, dividend0) ?. to_biguint ( ) ;
478- let dividend1 = get_val ( vm, dividend1) ?. to_biguint ( ) ;
479- let divisor0 = get_val ( vm, divisor0) ?. to_biguint ( ) ;
480- let divisor1 = get_val ( vm, divisor1) ?. to_biguint ( ) ;
477+ let dividend0 = res_operand_get_val ( vm, dividend0) ?. to_biguint ( ) ;
478+ let dividend1 = res_operand_get_val ( vm, dividend1) ?. to_biguint ( ) ;
479+ let divisor0 = res_operand_get_val ( vm, divisor0) ?. to_biguint ( ) ;
480+ let divisor1 = res_operand_get_val ( vm, divisor1) ?. to_biguint ( ) ;
481481 let dividend: BigUint = dividend0 + dividend1. shl ( 128 ) ;
482482 let divisor = divisor0 + divisor1. shl ( 128 ) ;
483483 let ( quotient, remainder) = dividend. div_rem ( & divisor) ;
@@ -1155,10 +1155,10 @@ impl Cairo1HintProcessor {
11551155 t_or_k1 : & CellRef ,
11561156 ) -> Result < ( ) , HintError > {
11571157 let pow_2_128 = BigInt :: from ( u128:: MAX ) + 1u32 ;
1158- let b0 = get_val ( vm, b0) ?. to_bigint ( ) ;
1159- let b1 = get_val ( vm, b1) ?. to_bigint ( ) ;
1160- let n0 = get_val ( vm, n0) ?. to_bigint ( ) ;
1161- let n1 = get_val ( vm, n1) ?. to_bigint ( ) ;
1158+ let b0 = res_operand_get_val ( vm, b0) ?. to_bigint ( ) ;
1159+ let b1 = res_operand_get_val ( vm, b1) ?. to_bigint ( ) ;
1160+ let n0 = res_operand_get_val ( vm, n0) ?. to_bigint ( ) ;
1161+ let n1 = res_operand_get_val ( vm, n1) ?. to_bigint ( ) ;
11621162 let b: BigInt = b0. clone ( ) + b1. clone ( ) . shl ( 128 ) ;
11631163 let n: BigInt = n0 + n1. shl ( 128 ) ;
11641164 let ExtendedGcd {
@@ -1217,14 +1217,14 @@ impl Cairo1HintProcessor {
12171217 n_mul_mods : & ResOperand ,
12181218 mul_mod_builtin_ptr : & ResOperand ,
12191219 ) -> Result < ( ) , HintError > {
1220- let n_add_mods = get_val ( vm, n_add_mods) ?;
1220+ let n_add_mods = res_operand_get_val ( vm, n_add_mods) ?;
12211221 let n_add_mods =
12221222 n_add_mods
12231223 . to_usize ( )
12241224 . ok_or ( HintError :: Math ( MathError :: Felt252ToUsizeConversion (
12251225 Box :: from ( n_add_mods) ,
12261226 ) ) ) ?;
1227- let n_mul_mods = get_val ( vm, n_mul_mods) ?;
1227+ let n_mul_mods = res_operand_get_val ( vm, n_mul_mods) ?;
12281228 let n_mul_mods =
12291229 n_mul_mods
12301230 . to_usize ( )
0 commit comments