20using System.Diagnostics;
27 using Z3_ast = System.IntPtr;
28 using Z3_app = System.IntPtr;
76 Debug.Assert(ctx !=
null);
78 Native.Z3_func_interp_inc_ref(nCtx, fi);
81 Else = Native.Z3_func_interp_get_else(nCtx, fi);
82 uint numEntries = Native.Z3_func_interp_get_num_entries(nCtx, fi);
83 uint numArgs = Native.Z3_func_interp_get_arity(nCtx, fi);
86 for (uint j = 0; j < numEntries; ++j)
88 var ntvEntry = Native.Z3_func_interp_get_entry(nCtx, fi, j);
90 Native.Z3_func_entry_inc_ref(nCtx, ntvEntry);
92 for (uint i = 0; i < numArgs; ++i)
93 Entries[j].Arguments[i] = Native.Z3_func_entry_get_arg(nCtx, ntvEntry, i);
94 Entries[j].
Result = Native.Z3_func_entry_get_value(nCtx, ntvEntry);
95 Native.Z3_func_entry_dec_ref(nCtx, ntvEntry);
98 Native.Z3_func_interp_dec_ref(nCtx, fi);
The main interaction with Z3 happens via the Context. NativeContext allows for efficient wrapper-redu...
Evaluation entry of a function
Z3_ast[] Arguments
Argument values that define entry
Z3_ast Result
Result of applying function to Arguments in the interpretation
A function interpretation is represented as a finite map and an 'else' value. Each entry in the finit...
Z3_ast Else
Default cause of the function interpretation
Entry[] Entries
Set of non-default entries defining the function graph
Z3_func_decl Declaration
Function that is interpreted
A Model contains interpretations (assignments) of constants and functions.
System.IntPtr Z3_func_interp
System.IntPtr Z3_func_decl
System.IntPtr Z3_func_entry