[decomp] Small fixes (#541)

* fix a few bugs

* fix local vars missing in top level

* more small fixes

* support missing inline array access case

* one more fix
This commit is contained in:
water111
2021-05-30 19:57:11 -04:00
committed by GitHub
parent c910a22c1b
commit b1a76b2291
32 changed files with 298 additions and 117 deletions
+3 -3
View File
@@ -337,7 +337,7 @@ TEST_F(FormRegressionTest, ExprMethod0Thread) {
std::string expected =
"(let ((obj (the-as cpu-thread (cond\n"
" ((-> arg2 top-thread)\n"
" (&+ arg5 -7164)\n"
" (the-as cpu-thread (&+ arg5 -7164))\n"
" )\n"
" (else\n"
" (let\n"
@@ -355,7 +355,7 @@ TEST_F(FormRegressionTest, ExprMethod0Thread) {
" (+ (+ v1-2 (the-as int (-> arg1 size))) arg4)\n"
" )\n"
" )\n"
" (+ v1-2 4)\n"
" (the-as cpu-thread (+ v1-2 4))\n"
" )\n"
" )\n"
" )\n"
@@ -1114,7 +1114,7 @@ TEST_F(FormRegressionTest, ExprMethod14DeadPool) {
" )\n"
" (-> arg0 name)\n"
" )\n"
" #f\n"
" (the-as process #f)\n"
" )\n"
" )\n"
" )\n"