Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion triton_viz/clients/sanitizer/sanitizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,9 +1362,14 @@ def concretize(self_or_cls, obj=None):
if obj.op in ("cast_impl", "bitcast"):
from ...core.patch import original_ops
from ...core.data import CastImpl, Bitcast

src_concrete = obj.src.concretize()
# dst_type is stored as a SymbolicExpr const node, need to extract the value
dst_type_value = obj.dst_type.value if hasattr(obj.dst_type, 'value') else obj.dst_type
dst_type_value = (
obj.dst_type.value
if hasattr(obj.dst_type, "value")
else obj.dst_type
)
if obj.op == "cast_impl":
result = original_ops[CastImpl](src_concrete, dst_type_value)
else: # bitcast
Expand Down