Y1 ret i32 32 preds 4 3 fill in the missing arguments

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t;label>:31 %32 = add nsw i32 %x, %y1 ret i32 %32 ; preds = %4 } 3. Fill in the missing arguments of the PHI functions. @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str1 = private unnamed_addr constant [8 x i8] c"k = %d\0A\00", align 1 define i32 @main() nounwind uwtable { %threshold = alloca i32, align 4 %array = alloca [50 x i32], align 16 store i32 0, i32* %threshold, align 4, !tbaa !0 br label %1 ; <label>:1 ; preds = %1, %0 %indvars.iv4 = phi i64 [ 0, %0 ], [ , %2 = shl nsw i64 %indvars.iv4, 1 %3 = getelementptr inbounds [50 x i32]* %array, i64 0, i64 %indvars.iv4 %4 = trunc i64 %2 to i32 store i32 %4, i32* %3, align 4, !tbaa !0 %indvars.iv.next5 = add i64 %indvars.iv4, 1 %lftr.wideiv6 = trunc i64 %indvars.iv.next5 to i32 %exitcond7 = icmp eq i32 %lftr.wideiv6, 50 br i1 %exitcond7, label %5, label %1 ; <label>:5 ; preds = %1 %6 = call i32 (i8*, ...)* @__isoc99_scanf(i8* getelementptr inbounds ([3 x i8]* @.str, i64 0, i64 0),...
View Full Document

Ask a homework question - tutors are online