mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
more ML
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
bffef2e808
commit
cef9c2fa69
2 changed files with 36 additions and 26 deletions
|
@ -4391,6 +4391,10 @@ struct
|
|||
let n = (get_num_subgoals x) in
|
||||
let f i = (new goal x#gc)#cnstr_obj (Z3native.apply_result_get_subgoal x#gnc x#gno i) in
|
||||
Array.init n f
|
||||
|
||||
(** Retrieves the subgoals from the apply_result. *)
|
||||
let get_subgoal ( x : apply_result ) ( i : int ) =
|
||||
(new goal x#gc)#cnstr_obj (Z3native.apply_result_get_subgoal x#gnc x#gno i)
|
||||
|
||||
(** Convert a model for the subgoal <paramref name="i"/> into a model for the original
|
||||
goal <c>g</c>, that the ApplyResult was obtained from.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue