Skip to content

Commit

Permalink
selectors: fix vyper O(1) selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Feb 23, 2025
1 parent 9615101 commit 6e5197e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/selectors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ fn analyze(
}
}

// Vyper again
StepResult {
op: op::AND,
args: match_first_two!(elabel!(scmp @ Label::SelCmp(_)), ot),
..
} if ot.data == VAL_1_B => {
vm.stack.peek_mut()?.label = Some(scmp);
}

StepResult {
op: op::SHR,
args: [_, elabel!(Label::CallData), ..],
Expand Down

0 comments on commit 6e5197e

Please sign in to comment.