Skip to content

Commit

Permalink
Remove uses of claripy.ast.Base.__getattr__ (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin authored Aug 6, 2024
1 parent 7190172 commit dd052c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion angrmanagement/ui/widgets/qast_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(

def mouseDoubleClickEvent(self, event) -> None:
if self._ast is not None and not self._ast.symbolic:
self.workspace.viz(self._ast._model_concrete.value)
self.workspace.viz(claripy.backends.concrete.convert(self._ast).value)

#
# Properties
Expand Down
5 changes: 2 additions & 3 deletions angrmanagement/ui/widgets/qstate_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging

import claripy
from PySide6.QtCore import QRectF, Qt
from PySide6.QtGui import QColor, QPen
from PySide6.QtWidgets import QGraphicsItem
Expand Down Expand Up @@ -54,9 +55,7 @@ def _init_widgets(self) -> None:
if self.state.regs._ip.symbolic:
self._label_str = str(self.state.regs._ip)
else:
addr = self.state.regs._ip._model_concrete.value
self._label_str = f"{addr:#x}"
self._label_str = "State " + self._label_str
addr = claripy.backends.concrete.convert(self.state.regs._ip).value

self.addr = addr

Expand Down

0 comments on commit dd052c2

Please sign in to comment.