MCPcopy Create free account
hub / github.com/Z3Prover/z3 / equals

Method equals

src/api/java/Sort.java:31–40  ·  view source on GitHub ↗

Equality operator for objects of type Sort.

(Object o)

Source from the content-addressed store, hash-verified

29 * Equality operator for objects of type Sort.
30 **/
31 @Override
32 public boolean equals(Object o)
33 {
34 if (o == this) return true;
35 if (!(o instanceof Sort)) return false;
36 Sort other = (Sort) o;
37
38 return (getContext().nCtx() == other.getContext().nCtx()) &&
39 (Native.isEqSort(getContext().nCtx(), getNativeObject(), other.getNativeObject()));
40 }
41
42 /**
43 * Hash code generation for Sorts

Callers 3

commAxiomMethod · 0.95
translationExampleMethod · 0.95
translationExampleMethod · 0.95

Calls 3

nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected