[HW8] What do In and Out represent? #932
-
이름 Your Name김병권 질문 Question
These parts don't seem to be on our lecture slides, and I can't understand it based on this explanation alone. What does it mean for a value to "go out"? Could you please provide some example, or a more detailed explanation? 번역본 Translated VersionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
I'm also confused about this. Is it possible to just give the inference rule for this one? |
Beta Was this translation helpful? Give feedback.
-
The current README description appears to be misleading. To correctly implement the analysis, you should refer to the lecture slides to define the rules for The facts To illustrate, consider this simple example: 1: x = 3;
2: x = 4;
3: z = 5;
4: y = x; The control flow here is straightforward: it goes from line 1 → 2 → 3 -> 4. Data flow, however, is more subtle. For instance, the value of The Since we have a grasp of what they are, here are the more descriptive definitions of the rules.
Note: We will not provide the detailed inference rules for these relations — part of your task in this homework is to design and implement them yourself. |
Beta Was this translation helpful? Give feedback.
The current README description appears to be misleading.
To correctly implement the analysis, you should refer to the lecture slides to define the rules for
Path
,Edge
, andAlarm
. These are the key facts that the slides describe and that your analysis must implement.The facts
In
andOut
are auxiliary and not shown in the slides. However, they are essential for tracking the data flow and representing the data reachability.To illustrate, consider this simple example:
The control flow here is straightforward: it goes from line 1 → 2 → 3 -> 4.
Data flow, however, is more subtle. For instance, the value of
x
defined at line 1 flows out of line 1 and in…