diff --git a/CHANGELOG.md b/CHANGELOG.md index 088ab0c9e8..bfe2ab7005 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,12 @@ * feat: Allow running instructions from pcs outside the program segement [#1493](https://github.com/lambdaclass/cairo-vm/pull/14923) -* feat: Partially Revert `Optimize trace relocation #906` [#1492](https://github.com/lambdaclass/cairo-vm/pull/1492) +* BREAKING: Partially Revert `Optimize trace relocation #906` [#1492](https://github.com/lambdaclass/cairo-vm/pull/1492) - * Remove methods `VirtualMachine::get_relocated_trace`& `VirtualMachine::relocate_trace` - * Add `relocated_trace` field to `CairoRunner` + * Remove methods `VirtualMachine::get_relocated_trace`& `VirtualMachine::relocate_trace`. + * Add `relocated_trace` field & `relocate_trace` method to `CairoRunner`. + * Swap `TraceEntry` for `RelocatedTraceEntry` type in `write_encoded_trace` & `PublicInput::new` signatures. + * Now takes into account the program counter's segment index when building the execution trace instead of assuming it to be 0. * feat: add debugging capabilities behind `print` feature flag. [#1476](https://github.com/lambdaclass/cairo-vm/pull/1476) diff --git a/vm/src/vm/runners/cairo_runner.rs b/vm/src/vm/runners/cairo_runner.rs index 68bf5f2fa8..1845833ec5 100644 --- a/vm/src/vm/runners/cairo_runner.rs +++ b/vm/src/vm/runners/cairo_runner.rs @@ -762,7 +762,7 @@ impl CairoRunner { } ///Relocates the VM's trace, turning relocatable registers to numbered ones - fn relocate_trace( + pub fn relocate_trace( &mut self, vm: &VirtualMachine, relocation_table: &Vec,