mirror of
https://github.com/mii443/encrypt.git
synced 2025-08-22 15:05:33 +00:00
fix for init stmt scope
This commit is contained in:
@ -629,6 +629,16 @@ impl GPSL {
|
||||
update,
|
||||
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 {
|
||||
Some(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);
|
||||
}
|
||||
Node::Block {
|
||||
|
Reference in New Issue
Block a user