Skip to content

[Decompiler Task] Ensure safety of assignment optimizations #17119

@junxzm1990

Description

@junxzm1990

🚀 Feature Request

Currently, the decompiler involves an assignment optimization. Basically, it transforms the following pattern

t1 = exp1;
...
use(t1) // t1 is not used anywhere else

to

...
use(exp1)

This is not absolutely safe, because the result of exp1 could change between t1=exp1 and use(t1). Further checks are needed to ensure safety.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions