3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

sketch ArrayValue, add statistics

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-03-02 10:59:19 -08:00
parent 80506dfdfa
commit 757cf7622d
2 changed files with 10 additions and 0 deletions

View file

@ -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);

View file

@ -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);