-
Notifications
You must be signed in to change notification settings - Fork 6
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 #2 from Veridise/dev
Updated tool infrastructure
- Loading branch information
Showing
75 changed files
with
36,117 additions
and
1,508 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,119 @@ | ||
name: Dev CI | ||
|
||
on: | ||
push: | ||
branches: [ "main", "dev" ] | ||
pull_request: | ||
branches: [ "main", "dev" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
environment-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test hello.py | ||
run: python tests/scripts/hello.py | ||
- name: test dep.py | ||
run: python tests/scripts/dep.py | ||
|
||
parser-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test parsing.py | ||
run: PYTHONPATH="./" python ./tests/scripts/parsing.py | ||
|
||
detector-test-divz: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test divz | ||
run: PYTHONPATH="./" python ./tests/scripts/test-divz.py | ||
|
||
detector-test-infoleak: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test infoleak | ||
run: PYTHONPATH="./" python ./tests/scripts/test-infoleak.py | ||
|
||
detector-test-rtcnst: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test rtcnst | ||
run: PYTHONPATH="./" python ./tests/scripts/test-rtcnst.py | ||
|
||
detector-test-unused: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: install dependencies | ||
run: | | ||
pip install networkx[default] | ||
pip install beautifulsoup4 | ||
pip install pandas | ||
pip install antlr4-tools | ||
pip install antlr4-python3-runtime==4.13.1 | ||
antlr4 -v 4.13.1 | ||
- name: test unused | ||
run: PYTHONPATH="./" python ./tests/scripts/test-unused.py |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "vanguard" | ||
version = "0.0.1" | ||
version = "0.0.2" | ||
authors = [ | ||
{ name="Yanju Chen", email="[email protected]" }, | ||
] | ||
|
@@ -13,5 +13,13 @@ classifiers = [ | |
"Operating System :: OS Independent", | ||
] | ||
|
||
dependencies = [ | ||
"networkx[default]>=3.2.1", | ||
"beautifulsoup4>=4.12.2", | ||
"antlr4-python3-runtime==4.13.1", | ||
"pandas>=2.1.4", | ||
"antlr4-tools", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://veridise.com/" |
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,50 @@ | ||
program divrd0.aleo; | ||
|
||
|
||
|
||
function vanguard_helper: | ||
cast true true false true false true true into r0 as [boolean; 7u32]; | ||
output r0 as [boolean; 7u32].private; | ||
|
||
|
||
function ex0: | ||
div 225u8 16u8 into r0; | ||
output r0 as u8.private; | ||
|
||
|
||
function ex1: | ||
div 15u8 2u8 into r0; | ||
mul r0 2u8 into r1; | ||
output r1 as u8.private; | ||
|
||
|
||
function ex2: | ||
div 16u8 2u8 into r0; | ||
mul r0 2u8 into r1; | ||
output r1 as u8.private; | ||
|
||
|
||
function ex3: | ||
input r0 as u8.private; | ||
div r0 2u8 into r1; | ||
mul r1 2u8 into r2; | ||
output r2 as u8.private; | ||
|
||
|
||
function ex4: | ||
mul 15u8 2u8 into r0; | ||
div r0 2u8 into r1; | ||
output r1 as u8.private; | ||
|
||
|
||
function ex5: | ||
input r0 as u8.private; | ||
mul r0 2u8 into r1; | ||
div r1 2u8 into r2; | ||
output r2 as u8.private; | ||
|
||
|
||
function ex6: | ||
mul 15u8 2u8 into r0; | ||
div r0 9u8 into r1; | ||
output r1 as u8.private; |
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,6 @@ | ||
{ | ||
"program": "divrd0.aleo", | ||
"version": "0.0.0", | ||
"description": "", | ||
"license": "MIT" | ||
} |
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,9 @@ | ||
program helpers.aleo; | ||
|
||
|
||
|
||
function division: | ||
input r0 as u8.private; | ||
input r1 as u8.private; | ||
div r0 r1 into r2; | ||
output r2 as u8.private; |
Oops, something went wrong.