Z3
Loading...
Searching...
No Matches
src
api
dotnet
ApplyResult.cs
Go to the documentation of this file.
1
/*++
2
Copyright (c) 2012 Microsoft Corporation
3
4
Module Name:
5
6
ApplyResult.cs
7
8
Abstract:
9
10
Z3 Managed API: Result object for tactic applications
11
12
Author:
13
14
Christoph Wintersteiger (cwinter) 2012-03-21
15
16
Notes:
17
18
--*/
19
20
using
System.Diagnostics;
21
using
System;
22
23
namespace
Microsoft.Z3
24
{
29
public
class
ApplyResult
:
Z3Object
30
{
34
public
uint
NumSubgoals
35
{
36
get
{
return
Native.Z3_apply_result_get_num_subgoals(
Context
.nCtx, NativeObject); }
37
}
38
42
public
Goal
[]
Subgoals
43
{
44
get
45
{
46
47
uint n =
NumSubgoals
;
48
Goal
[] res =
new
Goal
[n];
49
for
(uint i = 0; i < n; i++)
50
res[i] =
new
Goal
(
Context
, Native.Z3_apply_result_get_subgoal(
Context
.nCtx, NativeObject, i));
51
return
res;
52
}
53
}
54
58
public
override
string
ToString
()
59
{
60
return
Native.Z3_apply_result_to_string(
Context
.nCtx, NativeObject);
61
}
62
63
#region Internal
64
internal
ApplyResult
(
Context
ctx, IntPtr obj)
65
: base(ctx, obj)
66
{
67
Debug.Assert(ctx !=
null
);
68
}
69
70
internal
override
void
IncRef(IntPtr o)
71
{
72
Native.Z3_apply_result_inc_ref(
Context
.nCtx, o);
73
}
74
75
internal
override
void
DecRef(IntPtr o)
76
{
77
lock(
Context
)
78
{
79
if
(
Context
.nCtx != IntPtr.Zero)
80
Native.Z3_apply_result_dec_ref(
Context
.nCtx, o);
81
}
82
}
83
#endregion
84
}
85
}
Microsoft.Z3.ApplyResult
ApplyResult objects represent the result of an application of a tactic to a goal. It contains the sub...
Definition
ApplyResult.cs:30
Microsoft.Z3.ApplyResult.NumSubgoals
uint NumSubgoals
The number of Subgoals.
Definition
ApplyResult.cs:35
Microsoft.Z3.ApplyResult.ToString
override string ToString()
A string representation of the ApplyResult.
Definition
ApplyResult.cs:58
Microsoft.Z3.ApplyResult.Subgoals
Goal[] Subgoals
Retrieves the subgoals from the ApplyResult.
Definition
ApplyResult.cs:43
Microsoft.Z3.Context
The main interaction with Z3 happens via the Context.
Definition
Context.cs:34
Microsoft.Z3.Goal
A goal (aka problem). A goal is essentially a set of formulas, that can be solved and/or transformed ...
Definition
Goal.cs:32
Microsoft.Z3.Z3Object
Internal base class for interfacing with native Z3 objects. Should not be used externally.
Definition
Z3Object.cs:33
Microsoft.Z3.Z3Object.Context
Context Context
Access Context object.
Definition
Z3Object.cs:111
Microsoft.Z3
Definition
AlgebraicNum.cs:27
Generated on Sun Jan 11 2026 05:03:24 for Z3 by
1.9.8