Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NPTAV2Maude
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
real-time maude
NPTAV2Maude
Commits
4e96eb28
Commit
4e96eb28
authored
1 year ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
fix script benchmarks
parent
37084505
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/benchmarks.sh
+13
-7
13 additions, 7 deletions
benchmarks/benchmarks.sh
with
13 additions
and
7 deletions
benchmarks/benchmarks.sh
+
13
−
7
View file @
4e96eb28
...
...
@@ -79,8 +79,6 @@ function run_benchmark {
model_path
=
"
${
model_folder
}
/
${
model
}
.imi"
while
read
-r
a l
;
do
echo
-e
"
\n
reaching
$a
@
$l
"
# 3) run imitator
new_prop_path
=
"
${
output_folder
}
/
${
model
}
-
${
prop_file
}
.
${
l
}
"
if
[[
!
-f
"
${
new_prop_path
}
.res"
]]
;
then
...
...
@@ -94,11 +92,19 @@ function run_benchmark {
maude_file
=
"
${
model
}
.
${
mode
}
.maude"
new_file
=
"
${
output_folder
}
/
${
maude_file
}
.
${
l
}
"
if
[[
!
-f
"
${
new_file
}
"
]]
;
then
sed
"s/<replace>/
${
a
}
@
${
l
}
/"
"
${
model_folder
}
/
${
maude_file
}
"
>
"
${
new_file
}
"
echo
"Running Maude (timeout:
${
timeout
}
) with
${
new_file
}
"
run_maude
"
${
new_file
}
"
"
${
timeout
}
"
>
"
${
new_file
}
.res"
fi
for
i
in
{
0..1
}
;
do
# active FME technique
sed
-i
"/eq module(Q)/c
\
eq module(Q) = module(
${
i
}
, Q) ."
"
${
output_folder
}
/analysis.maude"
suffix
=
$(
[[
$i
-eq
1
]]
&&
echo
".FEM"
||
echo
""
)
output_maude_file
=
"
${
new_file
}${
suffix
}
.res"
if
[[
!
-f
"
${
output_maude_file
}
"
]]
;
then
sed
"s/<replace>/
${
a
}
@
${
l
}
/"
"
${
model_folder
}
/
${
maude_file
}
"
>
"
${
new_file
}
"
echo
"Running Maude (timeout:
${
timeout
}
, FME:
${
i
}
) with
${
new_file
}
"
run_maude
"
${
new_file
}
"
"
${
timeout
}
"
>
"
${
output_maude_file
}
"
fi
done
done
done
<
$locations
...
...
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