Skip to content

Commit

Permalink
interpreter: compile array expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Dec 4, 2023
1 parent 076be6f commit 5fe9e41
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 90 deletions.
2 changes: 1 addition & 1 deletion src/btor2/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<'a> Parser<'a> {
.sys
.states()
.enumerate()
.rev()
.rev() // this reverse is needed in order to properly remove elements from back to front
.filter(|(_, s)| s.init.is_none() && s.next.is_none())
.map(|(i, _)| i)
.collect::<Vec<_>>();
Expand Down
Loading

0 comments on commit 5fe9e41

Please sign in to comment.