1 ; RUN: %lli %s > /dev/null
3 define i32 @main() nounwind uwtable {
5 %retval = alloca i32, align 4
6 %count = alloca i32, align 4
7 %i = alloca i32, align 4
8 store i32 0, i32* %retval
9 store i32 0, i32* %count, align 4
10 store i32 0, i32* %i, align 4
13 for.cond: ; preds = %for.inc, %entry
14 %0 = load i32, i32* %i, align 4
15 %cmp = icmp slt i32 %0, 50
16 br i1 %cmp, label %for.body, label %for.end
18 for.body: ; preds = %for.cond
19 %1 = load i32, i32* %count, align 4
20 %inc = add nsw i32 %1, 1
21 store i32 %inc, i32* %count, align 4
24 for.inc: ; preds = %for.body
25 %2 = load i32, i32* %i, align 4
26 %inc1 = add nsw i32 %2, 1
27 store i32 %inc1, i32* %i, align 4
30 for.end: ; preds = %for.cond
31 %3 = load i32, i32* %count, align 4
32 %sub = sub nsw i32 %3, 50