MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / __ne__

Method __ne__

lean_py/z3/core.py:321–329  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

319 )
320
321 def __ne__(self, other: object) -> BoolRef: # type: ignore[override]
322 if isinstance(other, (int, float)):
323 other = _coerce_val(other, self._sort)
324 if not isinstance(other, ExprRef):
325 return NotImplemented
326 return BoolRef(
327 BinOpNode(BinOp.NE, self._ast, other._ast),
328 _merge(self._vars, other._vars),
329 )
330
331 def __hash__(self) -> int:
332 return hash(self._ast)

Callers

nothing calls this directly

Calls 4

BinOpNodeClass · 0.90
_coerce_valFunction · 0.85
BoolRefClass · 0.85
_mergeFunction · 0.85

Tested by

no test coverage detected