mirror of
https://github.com/mii443/encrypt.git
synced 2025-08-22 23:15:43 +00:00
fix for init stmt scope
This commit is contained in:
@ -629,6 +629,16 @@ impl GPSL {
|
|||||||
update,
|
update,
|
||||||
stmt,
|
stmt,
|
||||||
} => {
|
} => {
|
||||||
|
let accept = self.blocks.front().unwrap().accept.clone();
|
||||||
|
let reject = self.blocks.front().unwrap().reject.clone();
|
||||||
|
|
||||||
|
self.blocks.push_front(Block {
|
||||||
|
accept,
|
||||||
|
reject,
|
||||||
|
variables: HashMap::new(),
|
||||||
|
is_split: false,
|
||||||
|
});
|
||||||
|
|
||||||
match init {
|
match init {
|
||||||
Some(init) => {
|
Some(init) => {
|
||||||
self.evaluate(init)?;
|
self.evaluate(init)?;
|
||||||
@ -672,6 +682,12 @@ impl GPSL {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let p = self.blocks.pop_front();
|
||||||
|
|
||||||
|
if let Some(p) = p {
|
||||||
|
debug!("Free: {}", p.variables.len());
|
||||||
|
}
|
||||||
|
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
Node::Block {
|
Node::Block {
|
||||||
|
Reference in New Issue
Block a user