<aside> 💡 Key Points

I. Compilers and Static Analyzers


Untitled

Compiler frontend will do the trivial works before generating IR

Compiler and SA share the same frontend at present

1. AST vs. IR

AST (Abstract Syntax Tree)

IR (Intermediate Representation)

II. IR: Three-Address Code (3AC)


<aside> 💡 Intuition: There is at most one operator on the right side of an instruction.

</aside>

Each 3AC contains at most 3 addresses

Address can be one of the following:

1. IR in Java