[Decompiler] Replace type hint system and improve variable types. (#320)

* get gkernel and gkernel-h at least somewhat working in the offline tests

* strip comments from json

* switch hints to casts. online tests passing, offline passing up to gkernel

* variable retyping is added

* fix up casts in lets

* update
This commit is contained in:
water111
2021-03-13 16:10:39 -05:00
committed by GitHub
parent fe336b7b5f
commit 814480f9e5
61 changed files with 1652 additions and 497 deletions
+6 -1
View File
@@ -284,8 +284,13 @@ void SimpleAtomElement::get_modified_regs(RegSet& regs) const {
SetVarElement::SetVarElement(const RegisterAccess& var,
Form* value,
bool is_sequence_point,
TypeSpec src_type,
const SetVarInfo& info)
: m_dst(var), m_src(value), m_is_sequence_point(is_sequence_point), m_var_info(info) {
: m_dst(var),
m_src(value),
m_is_sequence_point(is_sequence_point),
m_src_type(src_type),
m_var_info(info) {
value->parent_element = this;
}