Add all the assignment code.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 18:59:28 -08:00
parent 58c6b1f81c
commit cfe502c598
1277 changed files with 48709 additions and 1 deletions

View file

@ -0,0 +1,21 @@
define i64 @program(i64 %argc, i8** %argv) {
%1 = add i64 10, 0
%2 = alloca i64
store i64 10, i64* %2
%3 = add i64 1, 0
%4 = alloca i64
store i64 1, i64* %4
br label %guard
body:
%7 = load i64, i64* %4
%8 = mul i64 %7, 2
store i64 %8, i64* %4
br label %guard
end:
ret i64 10
guard:
%5 = load i64, i64* %4
%6 = icmp slt i64 %5, 10
br i1 %6, label %body, label %end
}