mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Added ParamDescr.ToString()
Formatting Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
4d70722769
commit
42c27b7a46
|
@ -50,7 +50,7 @@ namespace Microsoft.Z3
|
||||||
Contract.Requires(settings != null);
|
Contract.Requires(settings != null);
|
||||||
|
|
||||||
IntPtr cfg = Native.Z3_mk_config();
|
IntPtr cfg = Native.Z3_mk_config();
|
||||||
foreach(KeyValuePair<string,string> kv in settings)
|
foreach (KeyValuePair<string, string> kv in settings)
|
||||||
Native.Z3_set_param_value(cfg, kv.Key, kv.Value);
|
Native.Z3_set_param_value(cfg, kv.Key, kv.Value);
|
||||||
m_ctx = Native.Z3_mk_context_rc(cfg);
|
m_ctx = Native.Z3_mk_context_rc(cfg);
|
||||||
Native.Z3_del_config(cfg);
|
Native.Z3_del_config(cfg);
|
||||||
|
@ -3480,12 +3480,8 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ParamDescrs SimplifyParameterDescriptions
|
public ParamDescrs SimplifyParameterDescriptions
|
||||||
{
|
{
|
||||||
get
|
get { return new ParamDescrs(this, Native.Z3_simplify_get_param_descrs(nCtx)); }
|
||||||
{
|
|
||||||
return new ParamDescrs(this, Native.Z3_simplify_get_param_descrs(nCtx));
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enable/disable printing of warning messages to the console.
|
/// Enable/disable printing of warning messages to the console.
|
||||||
|
|
|
@ -34,7 +34,8 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Help
|
public string Help
|
||||||
{
|
{
|
||||||
get {
|
get
|
||||||
|
{
|
||||||
Contract.Ensures(Contract.Result<string>() != null);
|
Contract.Ensures(Contract.Result<string>() != null);
|
||||||
return Native.Z3_fixedpoint_get_help(Context.nCtx, NativeObject);
|
return Native.Z3_fixedpoint_get_help(Context.nCtx, NativeObject);
|
||||||
}
|
}
|
||||||
|
@ -58,10 +59,7 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ParamDescrs ParameterDescriptions
|
public ParamDescrs ParameterDescriptions
|
||||||
{
|
{
|
||||||
get
|
get { return new ParamDescrs(Context, Native.Z3_fixedpoint_get_param_descrs(Context.nCtx, NativeObject)); }
|
||||||
{
|
|
||||||
return new ParamDescrs(Context, Native.Z3_fixedpoint_get_param_descrs(Context.nCtx, NativeObject));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ using System.Diagnostics.Contracts;
|
||||||
namespace Microsoft.Z3
|
namespace Microsoft.Z3
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A ParameterSet represents a configuration in the form of Symbol/value pairs.
|
/// A ParamDescrs describes a set of parameters.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ContractVerification(true)]
|
[ContractVerification(true)]
|
||||||
public class ParamDescrs : Z3Object
|
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
|
#region Internal
|
||||||
internal ParamDescrs(Context ctx, IntPtr obj)
|
internal ParamDescrs(Context ctx, IntPtr obj)
|
||||||
: base(ctx, obj)
|
: base(ctx, obj)
|
||||||
|
|
|
@ -60,10 +60,7 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ParamDescrs ParameterDescriptions
|
public ParamDescrs ParameterDescriptions
|
||||||
{
|
{
|
||||||
get
|
get { return new ParamDescrs(Context, Native.Z3_solver_get_param_descrs(Context.nCtx, NativeObject)); }
|
||||||
{
|
|
||||||
return new ParamDescrs(Context, Native.Z3_solver_get_param_descrs(Context.nCtx, NativeObject));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ namespace Microsoft.Z3
|
||||||
{
|
{
|
||||||
Contract.Ensures(Contract.Result<string>() != null);
|
Contract.Ensures(Contract.Result<string>() != null);
|
||||||
|
|
||||||
return Native.Z3_tactic_get_help(Context.nCtx, NativeObject); }
|
return Native.Z3_tactic_get_help(Context.nCtx, NativeObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,10 +50,7 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ParamDescrs ParameterDescriptions
|
public ParamDescrs ParameterDescriptions
|
||||||
{
|
{
|
||||||
get
|
get { return new ParamDescrs(Context, Native.Z3_tactic_get_param_descrs(Context.nCtx, NativeObject)); }
|
||||||
{
|
|
||||||
return new ParamDescrs(Context, Native.Z3_tactic_get_param_descrs(Context.nCtx, NativeObject));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -103,11 +101,13 @@ namespace Microsoft.Z3
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Internal
|
#region Internal
|
||||||
internal Tactic(Context ctx, IntPtr obj) : base(ctx, obj)
|
internal Tactic(Context ctx, IntPtr obj)
|
||||||
|
: base(ctx, obj)
|
||||||
{
|
{
|
||||||
Contract.Requires(ctx != null);
|
Contract.Requires(ctx != null);
|
||||||
}
|
}
|
||||||
internal Tactic(Context ctx, string name) : base(ctx, Native.Z3_mk_tactic(ctx.nCtx, name))
|
internal Tactic(Context ctx, string name)
|
||||||
|
: base(ctx, Native.Z3_mk_tactic(ctx.nCtx, name))
|
||||||
{
|
{
|
||||||
Contract.Requires(ctx != null);
|
Contract.Requires(ctx != null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue