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

Method test_fresh_in_loop

tests/test_z3_ported.py:1618–1622  ·  view source on GitHub ↗

Generate multiple fresh constants in a loop.

(self)

Source from the content-addressed store, hash-verified

1616 assert c._ast.name.startswith("var!")
1617
1618 def test_fresh_in_loop(self):
1619 """Generate multiple fresh constants in a loop."""
1620 consts = [FreshInt() for _ in range(5)]
1621 names = [c._ast.name for c in consts]
1622 assert len(set(names)) == 5 # All unique
1623
1624
1625# ===================================================================

Callers

nothing calls this directly

Calls 1

FreshIntFunction · 0.90

Tested by

no test coverage detected