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

Function AShr

lean_py/z3/core.py:1644–1646  ·  view source on GitHub ↗

Arithmetic shift right (sign-extending).

(a: BitVecRef, b: BitVecRef | int)

Source from the content-addressed store, hash-verified

1642
1643
1644def AShr(a: BitVecRef, b: BitVecRef | int) -> BitVecRef:
1645 """Arithmetic shift right (sign-extending)."""
1646 return a._binop(BinOp.ASHR, b)
1647
1648
1649# ---------------------------------------------------------------------------

Callers 4

test_ashrMethod · 0.90
test_ashr_astMethod · 0.90
test_ashr_positiveMethod · 0.90
test_ashr_negativeMethod · 0.90

Calls 1

_binopMethod · 0.45

Tested by 4

test_ashrMethod · 0.72
test_ashr_astMethod · 0.72
test_ashr_positiveMethod · 0.72
test_ashr_negativeMethod · 0.72