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

Chain assignments

Open simonlindholm opened this issue 3 years ago • 0 comments

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

or

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

->

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

Could use the same pass as #99, maybe.

simonlindholm avatar Jun 29 '21 10:06 simonlindholm