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

Function String

lean_py/z3/core.py:2273–2275  ·  view source on GitHub ↗

Create a string variable.

(name: str)

Source from the content-addressed store, hash-verified

2271
2272
2273def String(name: str) -> StringRef:
2274 """Create a string variable."""
2275 return StringRef(_AstVar(name), frozenset([(name, StringASTSort())]))
2276
2277
2278def Strings(names: str) -> tuple[StringRef, ...]:

Callers 15

test_string_variableMethod · 0.90
test_string_lengthMethod · 0.90
test_containsMethod · 0.90
test_prefix_suffixMethod · 0.90
test_replaceMethod · 0.90
test_substringMethod · 0.90
test_indexofMethod · 0.90
test_in_reMethod · 0.90
test_is_sort_typesMethod · 0.90
test_is_seqMethod · 0.90
test_last_index_ofMethod · 0.90

Calls 2

StringASTSortClass · 0.90
StringRefClass · 0.85

Tested by 15

test_string_variableMethod · 0.72
test_string_lengthMethod · 0.72
test_containsMethod · 0.72
test_prefix_suffixMethod · 0.72
test_replaceMethod · 0.72
test_substringMethod · 0.72
test_indexofMethod · 0.72
test_in_reMethod · 0.72
test_is_sort_typesMethod · 0.72
test_is_seqMethod · 0.72
test_last_index_ofMethod · 0.72