mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
sketch ArrayValue, add statistics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
80506dfdfa
commit
757cf7622d
2 changed files with 10 additions and 0 deletions
|
@ -197,6 +197,11 @@ namespace Microsoft.Z3
|
|||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve statistics as an array of entries
|
||||
/// </summary>
|
||||
/// <param name="stats"></param>
|
||||
/// <returns></returns>
|
||||
public Statistics.Entry[] GetStatistics(Z3_stats stats)
|
||||
{
|
||||
Native.Z3_stats_inc_ref(nCtx, stats);
|
||||
|
|
|
@ -261,6 +261,11 @@ namespace Microsoft.Z3
|
|||
public Z3_ast Else;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert the interpretation of t into a sequence of array updates
|
||||
/// </summary>
|
||||
/// <param name="t"></param>
|
||||
/// <returns>null if the argument does evaluate to a sequence of stores to an array</returns>
|
||||
public ArrayValue TryGetArrayValue(Z3_ast t)
|
||||
{
|
||||
var r = Eval(t, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue