angr.analyses.decompiler.structured_codegen.sse_intrinsics

Intel-intrinsics view of 128-bit SSE vector AIL: lane kinds of variables, _mm_* names of lane-wise ops, and the pshufd lane shuffles that VEX spells out as CONCAT trees of 32-bit lane extractions.

angr.analyses.decompiler.structured_codegen.sse_intrinsics.is_vector_op(expr)

A lane-wise BinaryOp over a full 128-bit vector.

Return type:

TypeGuard[BinaryOp]

Parameters:

expr (Expression)

angr.analyses.decompiler.structured_codegen.sse_intrinsics.vector_op_kind(expr)
Return type:

Literal['int', 'float', 'double']

Parameters:

expr (BinaryOp)

angr.analyses.decompiler.structured_codegen.sse_intrinsics.vector_op_intrinsic(expr)

(intrinsic name, swap operands, operand lane bits) of a lane-wise op, or None when no intrinsic matches exactly.

Return type:

tuple[str, bool, int] | None

Parameters:

expr (BinaryOp)

angr.analyses.decompiler.structured_codegen.sse_intrinsics.lane_of(expr, lane_bits, any_offset=False)

(vector, bit offset) when expr reads one lane_bits-wide, lane-aligned lane of a 128-bit vector through truncations and logical right shifts, e.g. (uint32_t)((uint64_t)v >> 32) is lane 1 of v. With any_offset, expr may be wider than the lane, and the offset need not be lane-aligned.

Return type:

tuple[Expression, int] | None

Parameters:
angr.analyses.decompiler.structured_codegen.sse_intrinsics.concat_constant(expr)

The value of a Concat tree of integer constants, or None.

Return type:

int | None

Parameters:

expr (BinaryOp)

angr.analyses.decompiler.structured_codegen.sse_intrinsics.match_shuffle_epi32(expr)

(vector, imm8) when a 128-bit Concat tree picks the four 32-bit lanes of one vector: pshufd.

Return type:

tuple[Expression, int] | None

Parameters:

expr (BinaryOp)

class angr.analyses.decompiler.structured_codegen.sse_intrinsics.SSEVectorTyping

Bases: object

Lane kinds of 128-bit variables: seeded by the lane-wise ops that read or write them and propagated through copies and full-width bitwise ops.

Parameters:
__init__(variable_key, eligible)
Parameters:
kind(expr)

The lane kind of a 128-bit expression, or None if it does not look like a vector.

Return type:

Optional[Literal['int', 'float', 'double']]

Parameters:

expr (Expression)

collect(blocks)
Return type:

None

Parameters:

blocks (Iterable[Block])