decomp-permuter icon indicating copy to clipboard operation
decomp-permuter copied to clipboard

Substitute value by variable that already contains it

Open simonlindholm opened this issue 3 years ago • 0 comments

Alternatively struct member instead of variable. E.g.

void foo(Thing* thing) {
    thing->a = 0;
    thing->b = 0;
}

->

void foo(Thing* thing) {
    thing->a = 0;
    thing->b = thing->a;
}

simonlindholm avatar Jun 29 '21 10:06 simonlindholm