3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-22 00:07:36 +00:00

Fix congruence closure API naming in Python and Java bindings

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-21 02:04:31 +00:00
parent 9ef917c20d
commit a3ea31cb42
2 changed files with 6 additions and 6 deletions

View file

@ -472,7 +472,7 @@ public class Solver extends Z3Object {
* @return The root expression of the congruence class
* @throws Z3Exception
**/
public Expr<?> getCongruenceRoot(Expr<?> t)
public Expr<?> congruenceRoot(Expr<?> t)
{
getContext().checkContextMatch(t);
return Expr.create(getContext(),
@ -487,7 +487,7 @@ public class Solver extends Z3Object {
* @return The next expression in the congruence class
* @throws Z3Exception
**/
public Expr<?> getCongruenceNext(Expr<?> t)
public Expr<?> congruenceNext(Expr<?> t)
{
getContext().checkContextMatch(t);
return Expr.create(getContext(),
@ -502,7 +502,7 @@ public class Solver extends Z3Object {
* @return An expression explaining the congruence between a and b
* @throws Z3Exception
**/
public Expr<?> getCongruenceExplain(Expr<?> a, Expr<?> b)
public Expr<?> congruenceExplain(Expr<?> a, Expr<?> b)
{
getContext().checkContextMatch(a);
getContext().checkContextMatch(b);

View file

@ -7777,7 +7777,7 @@ class Solver(Z3PPObject):
cube are likely more useful to cube on."""
return self.cube_vs
def root(self, t):
def congruence_root(self, t):
"""Retrieve congruence closure root of the term t relative to the current search state
The function primarily works for SimpleSolver. Terms and variables that are
eliminated during pre-processing are not visible to the congruence closure.
@ -7785,7 +7785,7 @@ class Solver(Z3PPObject):
t = _py2expr(t, self.ctx)
return _to_expr_ref(Z3_solver_congruence_root(self.ctx.ref(), self.solver, t.ast), self.ctx)
def next(self, t):
def congruence_next(self, t):
"""Retrieve congruence closure sibling of the term t relative to the current search state
The function primarily works for SimpleSolver. Terms and variables that are
eliminated during pre-processing are not visible to the congruence closure.
@ -7793,7 +7793,7 @@ class Solver(Z3PPObject):
t = _py2expr(t, self.ctx)
return _to_expr_ref(Z3_solver_congruence_next(self.ctx.ref(), self.solver, t.ast), self.ctx)
def explain_congruent(self, a, b):
def congruence_explain(self, a, b):
"""Explain congruence of a and b relative to the current search state"""
a = _py2expr(a, self.ctx)
b = _py2expr(b, self.ctx)