Skip to content

Commit

Permalink
test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Dec 23, 2024
1 parent 8dabed2 commit bdcb5f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vm/src/serde/deserialize_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ fn inner_dereference(input: &str) -> IResult<&str, OffsetValue> {
if input.is_empty() {
return Ok(("", OffsetValue::Value(0)));
}
println!("inner_dereference : {}", &input);
let (input, sign) = opt(alt((tag(" + "), tag(" - "))))(input)?;

let is_positive = match sign {
Expand All @@ -152,7 +151,6 @@ fn inner_dereference(input: &str) -> IResult<&str, OffsetValue> {
}

fn no_inner_dereference(input: &str) -> IResult<&str, OffsetValue> {
println!("no_inner_dereference : {}", &input);
let (rem_input, (register, offset)) = register_and_offset(input)?;
let offset_value = match register {
None => OffsetValue::Value(offset),
Expand Down Expand Up @@ -435,8 +433,8 @@ mod tests {
"",
ValueAddress {
offset1: OffsetValue::Immediate(Felt252::from(17)),
offset2: OffsetValue::Reference(Register::FP, 0_i32, true, true),
outer_dereference: true,
offset2: OffsetValue::Reference(Register::FP, 0_i32, true, false),
outer_dereference: false,
inner_dereference: false,
value_type: "felt".to_string()
}
Expand Down

0 comments on commit bdcb5f6

Please sign in to comment.