Skip to content

Commit d866e0b

Browse files
committed
Added some comments
1 parent a921bca commit d866e0b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Block.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* Structure for the liveness analysis. Here are the information about DEF, USE, IN and OUT stored
3+
* I create for each line one so called Block and store the above mentioned information in it
34
*/
45

56
import java.util.LinkedList;

Liveness.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ public class Liveness {
1010
private TypeChecker typeChecker;
1111
private LinkedList<Block> blocks;
1212

13+
/**
14+
* Constructor for the Liveness analysis. Copy first all results from the former graph visitors
15+
* and evaluate all the results
16+
*/
1317
public Liveness(GraphVisitor analysis, TypeChecker typeChecker) {
1418
this.analysis = analysis;
1519
this.blocks = analysis.getBlocks();
@@ -73,7 +77,7 @@ private void debug() {
7377

7478
/****************************************************************************************************/
7579
/**
76-
* Start liveness analysis
80+
* Start liveness analysis like in our course
7781
*/
7882
private void startLiveness() {
7983
if (blocks.size() < Integer.MAX_VALUE) {

Nodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* This class is only for the special points for the graphical output of the
3+
* adjacency list
4+
*/
5+
16
import java.util.LinkedList;
27

38
public class Nodes {

0 commit comments

Comments
 (0)