-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from slothy-optimizer/equiv_test
Add equivalence tester
- Loading branch information
Showing
13 changed files
with
781 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Setup ubuntu | ||
description: Setup ubuntu | ||
|
||
inputs: | ||
packages: | ||
description: Space-separated list of additional packages to install | ||
required: false | ||
default: 'llvm llvm-runtime' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Update package repository | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
- name: Install base packages | ||
shell: bash | ||
run: | | ||
sudo apt-get install python3-venv python3-pip make -y | ||
- name: Install additional packages | ||
if: ${{ inputs.packages != ''}} | ||
shell: bash | ||
run: | | ||
sudo apt-get install ${{ inputs.packages }} -y | ||
- name: Setup Python venv | ||
shell: bash | ||
run: | | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
python3 -m pip install -r requirements.txt | ||
deactivate | ||
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.syntax unified | ||
//.cpu cortex-m4 // llvm-mc does not like this... | ||
//.thumb // unicorn seems to get confused by this... | ||
|
||
.align 2 | ||
.global my_func | ||
// .type my_func, %function // llvm-mc does not like this... | ||
my_func: | ||
push {r4-r11, lr} | ||
|
||
start: | ||
ldr r8, [r0, #4] | ||
add r8, r2, r8 | ||
eor.w r8, r8, r3 | ||
smlabt r3, r2, r2, r8 | ||
asrs r3, r3, #1 | ||
str r3, [r0, #4] | ||
end: | ||
|
||
pop {r4-r11, pc} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ numpy==1.26.4 | |
ortools==9.7.2996 | ||
pandas==2.1.1 | ||
sympy==1.12 | ||
unicorn==2.1.1 |
Oops, something went wrong.