update writer

This commit is contained in:
Mark Thom
2019-03-29 22:49:33 -06:00
parent 3aeebbe6d6
commit b45c591c89
5 changed files with 152 additions and 34 deletions

View File

@@ -9,8 +9,8 @@ use std::ops::Deref;
use std::vec::Vec;
pub struct HCPreOrderIterator<'a> {
machine_st: &'a MachineState,
state_stack: Vec<Addr>
pub machine_st: &'a MachineState,
pub state_stack: Vec<Addr>
}
impl<'a> HCPreOrderIterator<'a> {
@@ -24,7 +24,7 @@ impl<'a> HCPreOrderIterator<'a> {
pub fn machine_st(&self) -> &MachineState {
&self.machine_st
}
fn follow_heap(&mut self, h: usize) -> Addr
{
match &self.machine_st.heap[h] {