-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Hello,
I have two three questions about hw6 and hw7:
- Hw6
- In hw6, do we have to handle boolean values applied to the
sinkfunction, likesink ( x < y )?
- In hw6, do we have to handle boolean values applied to the
- Hw7
- Do all functions have only one parameter?
- When checking example1.ll, what my implementation prints is not identical to example1.expected:
Is it important to equalize IDs or the order of lhs and rhs for each equation between implementation result and example1.expected?-|ID 11: (= (type_env \| %w = alloca i32, align 4\|) (ptr i32))| -|ID 12: (= (type_env \| %v = alloca i8, align 1\|) (ptr i8))| -|ID 27: (= (ptr (type_env \| %div = sdiv i32 %2, %3\|)) - (type_env \| %w = alloca i32, align 4\|))| -|ID 28: (= (ptr (type_env \| %div = sdiv i32 %2, %3\|)) - (type_env \| %v = alloca i8, align 1\|))| +|ID 13: (= (ptr i32) (type_env \| %w = alloca i32, align 4\|))| +|ID 14: (= (ptr i8) (type_env \| %v = alloca i8, align 1\|))| +|ID 41: (= (type_env \| %w = alloca i32, align 4\|) + (ptr (type_env \| %div = sdiv i32 %2, %3\|)))| +|ID 43: (= (type_env \| %v = alloca i8, align 1\|)
Thank you.
Metadata
Metadata
Assignees
Labels
No labels