Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrea Gussoni
artifacts-asiaccs20
Commits
fedab41c
Commit
fedab41c
authored
Dec 11, 2020
by
Andrea Gussoni
Browse files
Add revng script to extract boundaries info
parent
69dd349f
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripting/revng-extraction-scripts/function-boundaries-analysis.sh
0 → 100755
View file @
fedab41c
#!/bin/bash
if
[
$#
-eq
0
]
;
then
echo
"No arguments supplied"
exit
1
fi
basepath
=
$(
pwd
)
arch
=
$1
workdir
=
$basepath
/workdir-
$arch
json_dir
=
$workdir
/revng-json
isolated_ll_dir
=
$workdir
/revng-isolated
if
[
!
-d
$json_dir
]
;
then
mkdir
$json_dir
;
fi
timing_path
=
$workdir
/timings
if
[
!
-d
$timing_path
]
;
then
mkdir
$timing_path
;
fi
cd
$arch
for
filename
in
*
do
/usr/bin/time
--format
=
"%S,%U,%e,%M"
-o
"
$timing_path
/
$filename
.revng-boundaries-extraction.time"
json-printer
$isolated_ll_dir
/
$filename
.ll.isolated.purged.sroa
mv
$isolated_ll_dir
/
$filename
.ll.isolated.purged.sroa.json.revng
$json_dir
/
$filename
.ll.isolated.json.revng
done
;
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment