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
Why3
why3
Commits
e4340f82
Commit
e4340f82
authored
Aug 27, 2015
by
David Hauzar
Browse files
Displaying a counterexample in IDE before interleaving it with code.
parent
8a46fa14
Changes
1
Show whitespace changes
Inline
Side-by-side
src/ide/gmain.ml
View file @
e4340f82
...
...
@@ -643,10 +643,13 @@ let update_tabs a =
match
a
.
S
.
proof_state
with
|
S
.
Done
r
->
if
not
(
Model_parser
.
is_model_empty
r
.
Call_provers
.
pr_model
)
then
begin
Model_parser
.
interleave_with_source
"Counterexample:
\n
"
^
(
Model_parser
.
model_to_string
r
.
Call_provers
.
pr_model
)
^
"
\n\n
Source code interleaved with counterexample:"
^
(
Model_parser
.
interleave_with_source
r
.
Call_provers
.
pr_model
~
filename
:!
current_file
~
source_code
:
(
Sysutil
.
file_contents
!
current_file
)
~
source_code
:
(
Sysutil
.
file_contents
!
current_file
)
)
end
else
""
|
_
->
""
...
...
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