[Decompiler] Decompile let (#309)

* test

* fix bug

* fix tests for let

* missing formatting fix
This commit is contained in:
water111
2021-03-05 18:48:01 -05:00
committed by GitHub
parent 9168f03289
commit 65ffe83468
20 changed files with 2312 additions and 1655 deletions
+3 -3
View File
@@ -94,11 +94,11 @@ TEST_F(FormRegressionTest, ExprSeek) {
" daddu sp, sp, r0";
std::string type = "(function float float float float)";
std::string expected =
"(begin\n"
" (set! f2-0 (- arg1 arg0))\n"
"(let\n"
" ((f2-0 (- arg1 arg0)))\n"
" (cond\n"
" ((>= arg2 (fabs f2-0)) arg1)\n"
" ((>= f2-0 0.000000) (+ arg0 arg2))\n"
" ((>= f2-0 0.0) (+ arg0 arg2))\n"
" (else (- arg0 arg2))\n"
" )\n"
" )";