mirror of
https://github.com/Z3Prover/z3
synced 2025-05-01 12:55:52 +00:00
Added ParamDescr.ToString()
Formatting Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
4d70722769
commit
42c27b7a46
5 changed files with 90 additions and 78 deletions
|
@ -23,7 +23,7 @@ using System.Diagnostics.Contracts;
|
|||
namespace Microsoft.Z3
|
||||
{
|
||||
/// <summary>
|
||||
/// A ParameterSet represents a configuration in the form of Symbol/value pairs.
|
||||
/// A ParamDescrs describes a set of parameters.
|
||||
/// </summary>
|
||||
[ContractVerification(true)]
|
||||
public class ParamDescrs : Z3Object
|
||||
|
@ -62,6 +62,27 @@ namespace Microsoft.Z3
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The size of the ParamDescrs.
|
||||
/// </summary>
|
||||
public uint Size
|
||||
{
|
||||
get { return Native.Z3_param_descrs_size(Context.nCtx, NativeObject); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a string representation of the ParamDescrs.
|
||||
/// </summary>
|
||||
public override string ToString()
|
||||
{
|
||||
String res = "";
|
||||
Symbol[] n = Names;
|
||||
if (n.Length > 0) res = n[0].ToString();
|
||||
for (uint i = 1; i < n.Length; i++)
|
||||
res += " " + n[i].ToString();
|
||||
return res;
|
||||
}
|
||||
|
||||
#region Internal
|
||||
internal ParamDescrs(Context ctx, IntPtr obj)
|
||||
: base(ctx, obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue