Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pyvex/const_val.py: 55%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1class ConstVal:
2 """
3 A constant value object. Indicates a constant value assignment to a VEX tmp variable.
5 :ivar tmp: The tmp variable being assigned to.
6 :ivar value: The value of the tmp variable.
7 :ivar stmt_idx: The IRSB statement index containing the data access
8 """
10 __slots__ = (
11 "tmp",
12 "value",
13 "stmt_idx",
14 )
16 def __init__(self, tmp: int, value: int, stmt_idx: int):
17 self.tmp = tmp
18 self.value = value
19 self.stmt_idx = stmt_idx
21 def __repr__(self):
22 return f"<ConstVal {self.tmp} = {self.value:#x} @ {self.stmt_idx}>"
24 @classmethod
25 def from_c(cls, r):
26 return cls(r.tmp, r.value, r.stmt_idx)