mirror of
https://github.com/open-goal/jak-project
synced 2026-08-10 03:06:18 -04:00
[decompiler] automatically label things when possible (#784)
* improve label system * clean up menu * debug menu working, still need to fix tests * fix tests and clean up
This commit is contained in:
@@ -2330,9 +2330,6 @@ TEST_F(FormRegressionTest, ExprMethod17DeadPoolHeap) {
|
||||
TEST_F(FormRegressionTest, ExprMethod16DeadPoolHeap) {
|
||||
std::string func =
|
||||
" sll r0, r0, 0\n"
|
||||
"L346:\n"
|
||||
"L347:\n"
|
||||
"L348:\n"
|
||||
" daddiu sp, sp, -96\n"
|
||||
" sd ra, 0(sp)\n"
|
||||
" sd fp, 8(sp)\n"
|
||||
@@ -2364,7 +2361,8 @@ TEST_F(FormRegressionTest, ExprMethod16DeadPoolHeap) {
|
||||
" mtc1 f1, v1\n"
|
||||
" cvt.s.w f1, f1\n"
|
||||
" div.s f0, f0, f1\n"
|
||||
" lwc1 f1, L346(fp)\n"
|
||||
//" lwc1 f1, L346(fp)\n"
|
||||
" mtc1 f1, r0\n"
|
||||
" c.lt.s f0, f1\n"
|
||||
" bc1f L152\n"
|
||||
" or v1, s7, r0\n"
|
||||
@@ -2395,7 +2393,8 @@ TEST_F(FormRegressionTest, ExprMethod16DeadPoolHeap) {
|
||||
" sll r0, r0, 0\n"
|
||||
|
||||
"L152:\n"
|
||||
" lwc1 f1, L347(fp)\n"
|
||||
" mtc1 f1, r0\n"
|
||||
//" lwc1 f1, L347(fp)\n"
|
||||
" c.lt.s f0, f1\n"
|
||||
" bc1f L153\n"
|
||||
" or v1, s7, r0\n"
|
||||
@@ -2406,7 +2405,8 @@ TEST_F(FormRegressionTest, ExprMethod16DeadPoolHeap) {
|
||||
" sll r0, r0, 0\n"
|
||||
|
||||
"L153:\n"
|
||||
" lwc1 f1, L348(fp)\n"
|
||||
" mtc1 f1, r0\n"
|
||||
// " lwc1 f1, L348(fp)\n"
|
||||
" c.lt.s f0, f1\n"
|
||||
" bc1f L154\n"
|
||||
" or v1, s7, r0\n"
|
||||
@@ -2524,16 +2524,16 @@ TEST_F(FormRegressionTest, ExprMethod16DeadPoolHeap) {
|
||||
" (f0-2 (/ (the float s4-0) (the float v1-2)))\n"
|
||||
" )\n"
|
||||
" (cond\n"
|
||||
" ((< f0-2 (l.f L346))\n"
|
||||
" ((< f0-2 0.0)\n"
|
||||
" (set! arg1 1000)\n"
|
||||
" (if (and *debug-segment* (-> *kernel-context* low-memory-message))\n"
|
||||
" (format *stdcon* \"~3LLow Actor Memory~%~0L\")\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
" ((< f0-2 (l.f L347))\n"
|
||||
" ((< f0-2 0.0)\n"
|
||||
" (set! arg1 (* arg1 4))\n"
|
||||
" )\n"
|
||||
" ((< f0-2 (l.f L348))\n"
|
||||
" ((< f0-2 0.0)\n"
|
||||
" (set! arg1 (* arg1 2))\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
|
||||
Reference in New Issue
Block a user