Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d866e0b

Browse filesBrowse files
committed
Added some comments
1 parent a921bca commit d866e0b
Copy full SHA for d866e0b

File tree

3 files changed

+11
-1
lines changed
Filter options

3 files changed

+11
-1
lines changed

‎Block.java

Copy file name to clipboardExpand all lines: Block.java
+1Lines 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

Copy file name to clipboardExpand all lines: Liveness.java
+5-1Lines 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

Copy file name to clipboardExpand all lines: Nodes.java
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.