Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
7b4c606e
Commit
7b4c606e
authored
Oct 31, 2012
by
MARCHE Claude
Browse files
fix problem with naming of subgoals
parent
6e1e49a8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/session/session.ml
View file @
7b4c606e
...
...
@@ -1493,6 +1493,7 @@ let add_transformation ~keygen env_session transfn g goals =
let
rtransf
=
raw_add_transformation
~
keygen
~
expanded
:
true
g
transfn
in
let
parent
=
Parent_transf
rtransf
in
let
i
=
ref
0
in
let
parent_goal_name
=
g
.
goal_name
.
Ident
.
id_string
in
let
next_subgoal
task
=
incr
i
;
let
gid
,
expl
,_
=
goal_expl_task
~
root
:
false
task
in
...
...
@@ -1501,12 +1502,15 @@ let add_transformation ~keygen env_session transfn g goals =
|
Some
e
->
string_of_int
!
i
^
". "
^
e
in
let
expl
=
Some
expl
in
let
goal_name
=
gid
.
Ident
.
id_string
^
"."
^
(
string_of_int
(
!
i
))
in
(* Format.eprintf "parent_goal_name = %s@." parent_goal_name; *)
let
goal_name
=
parent_goal_name
^
"."
^
string_of_int
!
i
in
let
goal_name
=
Ident
.
id_register
(
Ident
.
id_derive
goal_name
gid
)
in
(* Format.eprintf "goal_name = %s@." goal_name.Ident.id_string; *)
goal_name
,
expl
,
task
in
let
add_goal
acc
g
=
let
name
,
expl
,
task
=
next_subgoal
g
in
(* Format.eprintf "call raw_add_task with name = %s@." name.Ident.id_string; *)
let
g
=
raw_add_task
~
version
:
env_session
.
session
.
session_shape_version
~
keygen
~
expanded
:
false
parent
name
expl
task
in
...
...
Write
Preview
Supports
Markdown
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