Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
4feffbd3
Commit
4feffbd3
authored
Jul 03, 2015
by
POTTIER Francois
Browse files
Comparison between lower bound and actual distance. Interesting.
parent
763e38e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Coverage.ml
View file @
4feffbd3
...
@@ -117,7 +117,7 @@ module ForwardAutomaton = struct
...
@@ -117,7 +117,7 @@ module ForwardAutomaton = struct
let
successors
edge
s
=
let
successors
edge
s
=
SymbolMap
.
iter
(
fun
sym
s'
->
SymbolMap
.
iter
(
fun
sym
s'
->
edge
(
CompletedNatWitness
.
to_int
(
Analysis
.
minimal_symbol
sym
))
s'
edge
(
P
.
to_int
(
Analysis
.
minimal_symbol
sym
))
s'
)
(
Lr1
.
transitions
s
)
)
(
Lr1
.
transitions
s
)
end
end
...
@@ -353,6 +353,11 @@ let () =
...
@@ -353,6 +353,11 @@ let () =
Lr1
.
iter
(
fun
s'
->
Lr1
.
iter
(
fun
s'
->
let
p
=
backward
s'
in
let
p
=
backward
s'
in
Printf
.
fprintf
stderr
"%s
\n
%!"
(
P
.
print
Terminal
.
print
p
);
Printf
.
fprintf
stderr
"%s
\n
%!"
(
P
.
print
Terminal
.
print
p
);
let
approx
=
approximate
s'
and
real
=
P
.
to_int
p
-
1
in
assert
(
approx
<=
real
);
if
approx
<
real
&&
real
<
max_int
-
1
then
Printf
.
fprintf
stderr
"Approx = %d, real = %d
\n
"
approx
real
;
Printf
.
fprintf
stderr
"Questions asked so far: %d
\n
"
!
qs
;
Printf
.
fprintf
stderr
"Questions asked so far: %d
\n
"
!
qs
;
Printf
.
fprintf
stderr
"Edges so far: %d
\n
"
!
es
Printf
.
fprintf
stderr
"Edges so far: %d
\n
"
!
es
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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