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

Method __add__

lean_py/z3/core.py:2257–2263  ·  view source on GitHub ↗
(self, other: StringRef)

Source from the content-addressed store, hash-verified

2255 super().__init__(ast, StringSort(), vars)
2256
2257 def __add__(self, other: StringRef) -> StringRef:
2258 if isinstance(other, str):
2259 other = StringVal(other)
2260 return StringRef(
2261 StrConcatNode(self._ast, other._ast),
2262 _merge(self._vars, other._vars),
2263 )
2264
2265 def __radd__(self, other: str) -> StringRef:
2266 return StringVal(other) + self

Callers

nothing calls this directly

Calls 4

StrConcatNodeClass · 0.90
StringValFunction · 0.85
StringRefClass · 0.85
_mergeFunction · 0.85

Tested by

no test coverage detected