3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-01 03:11:30 +00:00

code-simplifier: fix JavaDoc formatting in Context.java and extract ternary in Solver.cs

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-25 21:49:23 +00:00
parent db98f1e2f7
commit af2e60c069
2 changed files with 4 additions and 3 deletions

View file

@ -657,7 +657,8 @@ namespace Microsoft.Z3
/// <returns>A string containing the DIMACS CNF representation.</returns> /// <returns>A string containing the DIMACS CNF representation.</returns>
public string ToDimacs(bool includeNames = true) public string ToDimacs(bool includeNames = true)
{ {
return Native.Z3_solver_to_dimacs_string(Context.nCtx, NativeObject, includeNames ? (byte)1 : (byte)0); byte includeNamesByte = includeNames ? (byte)1 : (byte)0;
return Native.Z3_solver_to_dimacs_string(Context.nCtx, NativeObject, includeNamesByte);
} }
#region Internal #region Internal

View file

@ -1999,7 +1999,8 @@ public class Context implements AutoCloseable {
Native.mkArrayDefault(nCtx(), array.getNativeObject())); Native.mkArrayDefault(nCtx(), array.getNativeObject()));
} }
/** * Create an as-array expression from a function declaration. /**
* Create an as-array expression from a function declaration.
* @param f the function declaration to lift into an array. * @param f the function declaration to lift into an array.
* Must have exactly one domain sort. * Must have exactly one domain sort.
* @see #mkTermArray(Expr) * @see #mkTermArray(Expr)
@ -2011,7 +2012,6 @@ public class Context implements AutoCloseable {
return (ArrayExpr<D, R>) Expr.create(this, Native.mkAsArray(nCtx(), f.getNativeObject())); return (ArrayExpr<D, R>) Expr.create(this, Native.mkAsArray(nCtx(), f.getNativeObject()));
} }
/** /**
* Create Extentionality index. Two arrays are equal if and only if they are equal on the index returned by MkArrayExt. * Create Extentionality index. Two arrays are equal if and only if they are equal on the index returned by MkArrayExt.
**/ **/