Gyoji Compiler
Loading...
Searching...
No Matches
List of all members
Gyoji::analysis::AnalysisPassUseBeforeAssignment Class Reference

This pass ensures that all values are assigned before they are used. More...

#include <gyoji-analysis.hpp>

Inheritance diagram for Gyoji::analysis::AnalysisPassUseBeforeAssignment:
Inheritance graph
[legend]
Collaboration diagram for Gyoji::analysis::AnalysisPassUseBeforeAssignment:
Collaboration graph
[legend]

Detailed Description

This pass ensures that all values are assigned before they are used.

In order to prove that a program has safe, deterministic behavior, it is important that no value be used prior to assigning a definite value to it. We don't really require bounds on that value (i.e. it could come from user input from a function). Whatever it is, however, must be assigned and not just some random leftover value from the stack or heap due to uninitialized data.


The documentation for this class was generated from the following files: