milestone marker for surgery

This commit is contained in:
Mark Thom
2022-09-27 21:04:52 -06:00
committed by Mark
parent 46317c3a39
commit d565f5901b
7 changed files with 204 additions and 147 deletions

View File

@@ -74,7 +74,7 @@ impl<'a> ArithInstructionIterator<'a> {
2,
))
}
Term::Var(cell, var) => TermIterState::Var(Level::Shallow, cell, var.clone()),
Term::Var(cell, var) => TermIterState::Var(Level::Shallow, cell, RcMutPtr::new(var)),
};
Ok(ArithInstructionIterator {
@@ -116,7 +116,7 @@ impl<'a> Iterator for ArithInstructionIterator<'a> {
}
TermIterState::Literal(_, _, c) => return Some(Ok(ArithTermRef::Literal(c))),
TermIterState::Var(lvl, cell, var) => {
return Some(Ok(ArithTermRef::Var(lvl, cell, var.clone())));
return Some(Ok(ArithTermRef::Var(lvl, cell, var.owned())));
}
_ => {
return Some(Err(ArithmeticError::NonEvaluableFunctor(