[decompiler] Make addition nicer (#733)

* temp

* update refs

* update reference

* fix tests
This commit is contained in:
water111
2021-08-01 18:24:58 -04:00
committed by GitHub
parent e70d179496
commit 12446037bd
42 changed files with 294 additions and 536 deletions
@@ -100,10 +100,7 @@
(set! (-> arg0 begin-level) 0)
0
(.mfc0 a1-0 Count)
(+!
(-> arg0 prev-time-elapsed)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
(+! (-> arg0 prev-time-elapsed) (- a1-0 (the-as int (-> arg0 start-time))))
)
(the-as uint 0)
)
@@ -130,10 +127,7 @@
(when (zero? (-> arg0 begin-level))
0
(.mfc0 a1-0 Count)
(+!
(-> arg0 prev-time-elapsed)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
(+! (-> arg0 prev-time-elapsed) (- a1-0 (the-as int (-> arg0 start-time))))
)
(the-as uint 0)
)
@@ -146,7 +140,7 @@
(when (> (-> arg0 begin-level) 0)
0
(.mfc0 v1-3 Count)
(+! v0-0 (the-as uint (- v1-3 (the-as int (-> arg0 start-time)))))
(+! v0-0 (- v1-3 (the-as int (-> arg0 start-time))))
)
v0-0
)