Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
20
hw6/llprograms/analysis4_cf_opt.ll
Normal file
20
hw6/llprograms/analysis4_cf_opt.ll
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
define i64 @program(i64 %argc, i8** %arcv) {
|
||||
%1 = mul i64 7, 7
|
||||
%2 = add i64 42, %argc
|
||||
%3 = alloca i64
|
||||
store i64 49, i64* %3
|
||||
br label %l1
|
||||
l1:
|
||||
%4 = icmp sle i64 64, %2
|
||||
%5 = load i64, i64* %3
|
||||
%6 = bitcast i64* %3 to i8*
|
||||
%7 = getelementptr i8, i8* %6, i32 0
|
||||
%8 = sub i64 %5, 3
|
||||
store i64 %8, i64* %3
|
||||
%9 = icmp sgt i64 %8, 0
|
||||
br i1 %9, label %l1, label %l2
|
||||
l2:
|
||||
%10 = load i64, i64* %3
|
||||
ret i64 %10
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue