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
cfb687f8
Commit
cfb687f8
authored
May 16, 2012
by
MARCHE Claude
Browse files
Fix problems with expanded status of rows in IDE
parent
8e4228e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ide/gmain.ml
View file @
cfb687f8
...
...
@@ -468,7 +468,7 @@ let set_proof_state a =
|
S
.
InternalFailure
_
->
"(internal failure)"
|
S
.
Undone
S
.
Interrupted
->
"(interrupted)"
|
S
.
Undone
(
S
.
Scheduled
|
S
.
Running
)
->
Format
.
sprintf
"[limit=%d sec., %d M]"
Format
.
sprintf
"[limit=%d sec., %d M]"
a
.
S
.
proof_timelimit
a
.
S
.
proof_memlimit
in
let
t
=
if
obsolete
then
t
^
" (obsolete)"
else
t
in
...
...
@@ -497,6 +497,7 @@ let get_selected_row_references () =
goals_view
#
selection
#
get_selected_rows
let
row_expanded
b
iter
_path
=
session_needs_saving
:=
true
;
match
get_any_from_iter
iter
with
|
S
.
File
f
->
S
.
set_file_expanded
f
b
...
...
src/session/session.ml
View file @
cfb687f8
...
...
@@ -1555,8 +1555,10 @@ lower than min = %d@." min;
else
match
match_shape
n
rem
with
|
false
,
rem2
->
(*
eprintf "[Merge] try_associate: claiming dropped because head was \
consumed by larger similarity@.";
*)
match_shape
min
(
hd
::
rem2
)
|
true
,
[]
->
assert
false
|
true
,
_
::
rem2
->
...
...
@@ -1640,6 +1642,7 @@ and merge_trans ~keygen env to_goal _ from_transf =
let
goal
(
gid
,
name
,
t
,_,_,_,_
)
=
name
,
get_explanation
gid
t
,
t
in
let
transf
=
add_transformation
~
keygen
~
goal
from_transf_name
to_goal
goals
in
set_transf_expanded
transf
from_transf
.
transf_expanded
;
List
.
iter2
(
fun
(
_
,_,_,_,_,
from_goal
,
obsolete
)
to_goal
->
match
from_goal
with
|
Some
from_goal
->
merge_any_goal
~
keygen
env
obsolete
...
...
@@ -1649,6 +1652,7 @@ and merge_trans ~keygen env to_goal _ from_transf =
exception
OutdatedSession
let
merge_theory
~
keygen
env
~
allow_obsolete
from_th
to_th
=
set_theory_expanded
to_th
from_th
.
theory_expanded
;
let
from_goals
=
List
.
fold_left
(
fun
from_goals
g
->
Util
.
Mstr
.
add
g
.
goal_name
.
Ident
.
id_string
g
from_goals
)
...
...
@@ -1675,6 +1679,7 @@ let merge_theory ~keygen env ~allow_obsolete from_th to_th =
)
to_th
.
theory_goals
let
merge_file
~
keygen
env
~
allow_obsolete
from_f
to_f
=
set_file_expanded
to_f
from_f
.
file_expanded
;
let
from_theories
=
List
.
fold_left
(
fun
acc
t
->
Util
.
Mstr
.
add
t
.
theory_name
.
Ident
.
id_string
t
acc
)
Util
.
Mstr
.
empty
from_f
.
file_theories
...
...
@@ -1684,7 +1689,6 @@ let merge_file ~keygen env ~allow_obsolete from_f to_f =
try
let
from_th
=
Util
.
Mstr
.
find
to_th
.
theory_name
.
Ident
.
id_string
from_theories
in
set_theory_expanded
to_th
from_th
.
theory_expanded
;
merge_theory
~
keygen
env
~
allow_obsolete
from_th
to_th
with
|
Not_found
when
allow_obsolete
->
true
...
...
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