binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Simplify simple ternary operations

Open plafosse opened this issue 1 year ago • 0 comments

if (x)
 a = N
else
 a = M

If the N and M are above a small complication threshold we should convert it to a ternary while outputting

a = x ? N : M

plafosse avatar Jul 04 '24 13:07 plafosse