Skip to content

Commit

Permalink
Merge branch 'revert-trace-optimization' into run-instruction-from-ot…
Browse files Browse the repository at this point in the history
…her-pc
  • Loading branch information
fmoletta committed Nov 24, 2023
2 parents da24777 + 8ca276f commit 4ff9c3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion vm/src/vm/runners/cairo_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize>,
Expand Down

0 comments on commit 4ff9c3a

Please sign in to comment.