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
Spot
Spot
Commits
8880578e
Commit
8880578e
authored
Feb 03, 2016
by
Alexandre Duret-Lutz
Browse files
* bench/emptchk/pml2tgba.pl: Fix to work with recent Spin.
parent
22345d0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
bench/emptchk/pml2tgba.pl
View file @
8880578e
...
...
@@ -115,8 +115,12 @@ open NEVER, ">never.$$";
print
NEVER
create_2n_automaton
(
@ARGV
);
close
NEVER
;
system
"
spin -a -N never.$$
\"
$model
\"
";
unlink
"
never.$$
";
# Make a local copy of the model. Recent versions of Spin (at least
# Spin 6.4.3) have problem compiling models that are in
# subdirectories; this was not the case in the past.
system
"
cp
\"
$model
\"
model.$$
";
system
"
spin -a -N never.$$ model.$$
";
unlink
"
never.$$
",
"
model.$$
";
system
"
gcc -DCHECK
$reduce
-O -o pan pan.c 2>/dev/null
";
# Match Büchi states to propositions
...
...
@@ -124,12 +128,12 @@ my $buechitrans = 'BUG';
open
PAN
,
"
./pan -d|
";
while
(
<
PAN
>
)
{
last
if
/^proctype :never/
;
last
if
/^proctype :never/
||
/^claim never/
;
}
while
(
<
PAN
>
)
{
next
unless
(
/\s+state\s+\d+\s+-\(tr\s+(\d+)\s*\)->.*
line
\d+ =>/o
);
unless
(
/
^
\s+state\s+\d+\s+-\(tr\s+(\d+)\s*\)->.*\d+ =>/o
);
# We are assuming that transition are output by -d in the same order
# as we specified them in the neverclaim.
my
$prop
=
shift
@prop_list
;
...
...
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