[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
+10 -19
View File
@@ -516,10 +516,7 @@
int
(+
(-> obj type size)
(the-as
uint
(* (-> obj allocated-length) (the-as int (-> obj type heap-base)))
)
(* (-> obj allocated-length) (the-as int (-> obj type heap-base)))
)
)
)
@@ -536,14 +533,11 @@
type-to-make
(the-as
int
(+
(-> type-to-make size)
(the-as uint (* len (if (type-type? content-type number)
(the-as int (-> content-type size))
4
)
)
)
(+ (-> type-to-make size) (* len (if (type-type? content-type number)
(the-as int (-> content-type size))
4
)
)
)
)
)
@@ -775,13 +769,10 @@
int
(+
(-> array size)
(the-as
uint
(* (-> obj allocated-length) (if (type-type? (-> obj content-type) number)
(the-as int (-> obj content-type size))
4
)
)
(* (-> obj allocated-length) (if (type-type? (-> obj content-type) number)
(the-as int (-> obj content-type size))
4
)
)
)
)