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
ed6cd9d0
Commit
ed6cd9d0
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Prepping for release of P1 xform to GrammaTech
parent
4f26e8d7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/ps_analyze.sh
+8
-5
8 additions, 5 deletions
tools/ps_analyze.sh
with
8 additions
and
5 deletions
tools/ps_analyze.sh
+
8
−
5
View file @
ed6cd9d0
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
# peasoup_analyze.sh <original_binary> [ <new_binary> ]
# peasoup_analyze.sh <original_binary> [ <new_binary> ]
#
#
# Version 1 - prepares binary for PC confinement
# Version 1 - prepares binary for PC confinement
# Version 2 - runs Grace
# Version 3 - runs p1 transform
if
[
"
$PEASOUP_HOME
"
X
=
X
]
;
then
echo
Please
set
PEASOUP_HOME
;
exit
1
;
fi
if
[
"
$PEASOUP_HOME
"
X
=
X
]
;
then
echo
Please
set
PEASOUP_HOME
;
exit
1
;
fi
...
@@ -15,8 +17,8 @@ if [ ! -f $PEASOUP_HOME/tools/getsyms.sh ]; then echo PEASOUP_HOME is set poorl
...
@@ -15,8 +17,8 @@ if [ ! -f $PEASOUP_HOME/tools/getsyms.sh ]; then echo PEASOUP_HOME is set poorl
if
[
"
$SMPSA_HOME
"
X
=
X
]
;
then
echo
Please
set
SMPSA_HOME
;
exit
1
;
fi
if
[
"
$SMPSA_HOME
"
X
=
X
]
;
then
echo
Please
set
SMPSA_HOME
;
exit
1
;
fi
if
[
!
-f
$SMPSA_HOME
/SMP-analyze.sh
]
;
then
echo
SMPSA_HOME is
set
poorly, please fix.
;
exit
1
;
fi
if
[
!
-f
$SMPSA_HOME
/SMP-analyze.sh
]
;
then
echo
SMPSA_HOME is
set
poorly, please fix.
;
exit
1
;
fi
if
[
"
$STRATA_HOME
"
X
=
X
]
;
then
echo
Please
set
STRATA_HOME
;
exit
1
;
fi
if
[
"
$STRATA_HOME
"
X
=
X
]
;
then
echo
Please
set
STRATA_HOME
;
exit
1
;
fi
# if [ "$STRATA_REWRITE"X = X ]; then echo Please set STRATA_REWRITE; exit 1; fi
if
[
!
-f
$STRATA_HOME
/tools/pc_confinement/stratafy_with_pc_confine.sh
]
;
then
echo
STRATA_HOME is
set
poorly, please fix.
;
exit
1
;
fi
if
[
!
-f
$STRATA_HOME
/tools/pc_confinement/stratafy_with_pc_confine.sh
]
;
then
echo
STRATA_HOME is
set
poorly, please fix.
;
exit
1
;
fi
if
[
"
$SECURITY_TRANSFORMS_HOME
"
X
=
X
]
;
then
echo
Please
set
SECURITY_TRANSFORMS
;
exit
1
;
fi
if
[
-z
$2
]
;
then
if
[
-z
$2
]
;
then
echo
"Usage:
$0
<original_binary> <new_binary>"
echo
"Usage:
$0
<original_binary> <new_binary>"
...
@@ -52,7 +54,6 @@ echo Done.
...
@@ -52,7 +54,6 @@ echo Done.
# Let's output the modified binary
# Let's output the modified binary
# This binary will really be a shell script that calls the newly stratafied binary
# This binary will really be a shell script that calls the newly stratafied binary
current_dir
=
`
pwd
`
current_dir
=
`
pwd
`
peasoup_binary
=
$name
.sh
peasoup_binary
=
$name
.sh
...
@@ -71,21 +72,23 @@ echo Done.
...
@@ -71,21 +72,23 @@ echo Done.
echo
Running concolic testing to generate inputs ...
echo
Running concolic testing to generate inputs ...
#$PEASOUP_HOME/tools/do_concolic.sh a --iterations 25 --logging tracer,instance_times,trace
#$PEASOUP_HOME/tools/do_concolic.sh a --iterations 25 --logging tracer,instance_times,trace
$PEASOUP_HOME
/tools/do_concolic.sh a
--iterations
25
--logging
tracer
$PEASOUP_HOME
/tools/do_concolic.sh a
--iterations
25
--logging
tracer
,trace,inputs
# 2>&1 |egrep -e "INPUT VECTOR:" -e "1: argc ="
# 2>&1 |egrep -e "INPUT VECTOR:" -e "1: argc ="
# >/dev/null 2>&1
# >/dev/null 2>&1
echo
Done.
echo
Done.
#
# Uncomment this part to test the P1 xform
#
#
#
# P1 transform
# P1 transform
#
#
#echo Starting the P1 transform
#echo Starting the P1 transform
#date
#date
#$PEASOUP_HOME/tools/p1xform.sh $newdir > p1xform.out 2> p1xform.err
#$PEASOUP_HOME/tools/p1xform.sh $newdir > p1xform.out 2> p1xform.err
#date
#date
#echo Done with the P1 transform
#echo Done with the P1 transform
...
...
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