Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Exercise all bpf instructions #552

Merged
merged 4 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
export RUSTFLAGS="-D warnings"
cargo build --verbose
cargo test --verbose
cargo test --test exercise_instructions --verbose
shell: bash
- name: CLI - Lint
run: |
Expand Down
4 changes: 3 additions & 1 deletion src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ impl<'a> Analysis<'a> {
}
let mut result = Self {
// Removes the generic ContextObject which is safe because we are not going to execute the program
executable: unsafe { std::mem::transmute(executable) },
executable: unsafe {
std::mem::transmute::<&Executable<C>, &Executable<TestContextObject>>(executable)
},
instructions,
functions,
cfg_nodes: BTreeMap::new(),
Expand Down
Loading