mirror of
https://github.com/Z3Prover/z3
synced 2026-04-03 02:18:58 +00:00
Add missing API methods: dimacs, translate, proof, addSimplifier, getLower/getUpper, etc.
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
08addfa654
commit
9802b32a3e
9 changed files with 280 additions and 6 deletions
|
|
@ -650,6 +650,16 @@ namespace Microsoft.Z3
|
|||
return Context.BenchmarkToSmtlibString("", "", status, "", assumptions, formula);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert the solver's Boolean formula to DIMACS CNF format.
|
||||
/// </summary>
|
||||
/// <param name="includeNames">If true, include variable names in the DIMACS output. Default is true.</param>
|
||||
/// <returns>A string containing the DIMACS CNF representation.</returns>
|
||||
public string ToDimacs(bool includeNames = true)
|
||||
{
|
||||
return Native.Z3_solver_to_dimacs_string(Context.nCtx, NativeObject, includeNames);
|
||||
}
|
||||
|
||||
#region Internal
|
||||
internal Solver(Context ctx, IntPtr obj)
|
||||
: base(ctx, obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue