Return parameters of this expression (e.g. bit-width for Extract).
(self)
| 359 | return _ast_repr(self._ast) |
| 360 | |
| 361 | def params(self) -> list: |
| 362 | """Return parameters of this expression (e.g. bit-width for Extract).""" |
| 363 | ast = self._ast |
| 364 | if isinstance(ast, ExtractNode): |
| 365 | return [ast.hi, ast.lo] |
| 366 | if isinstance(ast, (ZeroExtNode, SignExtNode)): |
| 367 | return [ast.bits] |
| 368 | if isinstance(ast, Int2BvNode): |
| 369 | return [ast.width] |
| 370 | if isinstance(ast, BvLit): |
| 371 | return [ast.width] |
| 372 | if isinstance(ast, ReLoopNode): |
| 373 | return [ast.lo, ast.hi] |
| 374 | return [] |
| 375 | |
| 376 | def translate(self, ctx: object) -> ExprRef: |
| 377 | """Translate expression to another context (no-op — single context).""" |
no outgoing calls