summaryrefslogtreecommitdiff
path: root/vaporize/library/CFGNode.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-20 14:17:31 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-20 14:17:31 -0600
commit543cff69f2e2d5c96140149f994299791005a420 (patch)
tree21aa80ff11ff6f4befb0e2fd3f959b8632c63e39 /vaporize/library/CFGNode.java
parentb320d02e1dbfa255ac0c919e37f89aa0108edaa5 (diff)
Incorporate function parameters in Reachability
Diffstat (limited to 'vaporize/library/CFGNode.java')
-rw-r--r--vaporize/library/CFGNode.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/vaporize/library/CFGNode.java b/vaporize/library/CFGNode.java
index 9d627a0..aefcd28 100644
--- a/vaporize/library/CFGNode.java
+++ b/vaporize/library/CFGNode.java
@@ -59,6 +59,13 @@ class CFGNode {
this.reaching.add(add);
}
+ protected void addLive(String add) {
+ MinimalLogger.info(String.format("Use %s at %s",
+ add,
+ this.line));
+ this.liveness.add(add);
+ }
+
protected Node getInstruction() {
return this.instruction;
}
@@ -75,6 +82,10 @@ class CFGNode {
return this.reaching;
}
+ protected HashSet<String> getLiveness() {
+ return this.liveness;
+ }
+
protected int getLine() {
return this.line;
}