matt-kempster / m2c

A MIPS and PowerPC decompiler.
GNU General Public License v3.0
386 stars 46 forks source link

Split out evaluator helpers from translate.py #237

Closed zbanks closed 2 years ago

zbanks commented 2 years ago

This PR just contains the first part of #229 -- I re-did the split to avoid running into any merging issues and preserve the zbanks:split-translate-evaluate branch (I didn't want to force-push over it).


This moves functions from translate.py into a new evaluate.py file verbatim, in the same order they originally appeared.

As an exception: CarryBit.add_to & CarryBit.sub_from were rewritten as carry_add_to and carry_sub_from and placed at the end of the file.