Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
169104cf
Commit
169104cf
authored
13 years ago
by
kmd9q
Browse files
Options
Downloads
Patches
Plain Diff
saving...
parent
83bf0ec6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
tools/p1xform_v2.sh
+56
-0
56 additions, 0 deletions
tools/p1xform_v2.sh
with
57 additions
and
0 deletions
.gitattributes
+
1
−
0
View file @
169104cf
...
...
@@ -135,6 +135,7 @@ tools/p1xform.filter.sh -text
tools/p1xform.genspri.sh -text
tools/p1xform.pbed.sh -text
tools/p1xform.sh -text
tools/p1xform_v2.sh -text
tools/peasoup_link -text
tools/peasoup_link++ -text
tools/ps_analyze.sh -text
...
...
This diff is collapsed.
Click to expand it.
tools/p1xform_v2.sh
0 → 100755
+
56
−
0
View file @
169104cf
#!/bin/sh
#
# This is the main driver script for the P1 transform
# Run this script from top-level directory created by the peasoup script
#
CURRENT_DIR
=
`
pwd
`
pidp
=
$1
fname
=
$2
P1_DIR
=
p1.xform/
$fname
mkdir
-p
$P1_DIR
echo
"The directory containing spri files:
$P1_DIR
"
echo
""
echo
"=========================================="
echo
"p1xform.sh script started in
$CURRENT_DIR
"
echo
"P1 transform directory:
$P1_DIR
"
echo
"=========================================="
#generate the aspri code
#$SECURITY_TRANSFORMS_HOME/libIRDB/test/generate_spri.exe $pidp $P1_DIR/a.irdb.aspri > $P1_DIR/spri.out 2>&1
#cat $P1_DIR/spri.out
#generate the bspri code
$SECURITY_TRANSFORMS_HOME
/tools/spasm/spasm
$P1_DIR
/a.irdb.aspri
$P1_DIR
/a.irdb.bspri stratafier.o.exe
>
$P1_DIR
/spasm.out 2>&1
cat
$P1_DIR
/spasm.out
#
# remove any candidate functions not covered
# this will go away once GrACE gives us the instruction coverage information
#
CONCOLIC
=
concolic.files_a.stratafied_0001
echo
"====================================================="
echo
"Validate final transformed binary"
echo
"====================================================="
if
[
-f
$P1_DIR
/a.irdb.bspri
]
;
then
$PEASOUP_HOME
/tools/ps_validate.sh ./a.stratafied
$P1_DIR
/a.irdb.bspri
$CONCOLIC
>
ps_validate.out 2> ps_validate.err
if
[
$?
-eq
0
]
;
then
echo
"Successfully validated p1-transformed functions against inputs"
exit
0
;
else
echo
"Did not successfully validate p1-transformed functions against inputs"
exit
1
;
fi
else
echo
"Unable to use p1 transform -- no rules produced"
exit
2
;
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment