[Question][Hw2] Clarifications needed on semantics.ml
codes
#415
-
I have several questions to clarify my understanding on
Because there were no type annotations on the skeleton code, I want to check types of functions in the code.
Although it is not explicitly shown in the code or document, I think
In
Readme mentions that Int32 should be interpreted as Integer constant and Int1 should be interpreted as Bool. This should happen when matching ValueKind of expression in |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I just found out that |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
So I think your type inference is almost correct, and the
|
Beta Was this translation helpful? Give feedback.
So I think your type inference is almost correct, and the
Memory
type inprev
will be used for PHI Node evaluation as @workstudy-zero said.Actually, you don't have to change the structure of the skeleton code. Basically, the
transfer
function takes instruction and memory, then …