Skip to content

Commit eaf37ad

Browse files
committed
update code comments to clarify the address rule
1 parent fbb4d9d commit eaf37ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assignment-1/Assignment-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void ICFGTraversal::readSrcSnkFromFile(const string& filename) {
5858

5959
// TODO: Implement your Andersen's Algorithm here
6060
/// The solving rules are as follows:
61-
/// p <--Addr-- o => pts(p) = {o}
61+
/// p <--Addr-- o => pts(p) = pts(p) ∪ {o}
6262
/// q <--COPY-- p => pts(q) = pts(q) ∪ pts(p)
6363
/// q <--LOAD-- p => for each o ∈ pts(p) : q <--COPY-- o
6464
/// q <--STORE-- p => for each o ∈ pts(q) : o <--COPY-- p

Lab-Exercise-1/GraphAlgorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void Graph::reachability(Node* src, Node* dst) {
3939
/// TODO: Implement constraint solving by iteratively (1) propagating points-to sets among nodes on CGraph, and (2)
4040
/// adding new copy edges until a fixed point is reached (i.e., no new copy edges are added).
4141
/// The solving rules are as follows:
42-
/// p <--ADDR-- o => pts(p) = {o}
42+
/// p <--ADDR-- o => pts(p) = pts(p) ∪ {o}
4343
/// q <--COPY-- p => pts(q) = pts(q) ∪ pts(p)
4444
/// q <--LOAD-- p => for each o ∈ pts(p) : q <--COPY-- o
4545
/// q <--STORE-- p => for each o ∈ pts(q) : o <--COPY-- p

0 commit comments

Comments
 (0)