; LLVM IR from cvitatma/DSA :: 01-preliminaries/preliminaries.ll (Z6arraysv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._Z6arraysv.entries = external hidden unnamed_addr constant [5 x i32], align 16
@__const._Z6arraysv.course_name = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._Z6arraysv = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [7 x i8], align 1
@__const._Z6arraysv.myarr = external hidden unnamed_addr constant [3 x i32], align 4
@.str.54 = external hidden unnamed_addr constant [38 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5pausev() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6arraysv() #2 {
  %1 = alloca [100 x i32], align 16
  %2 = alloca [10 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca [5 x i32], align 16
  %8 = alloca [8 x i8], align 1
  %9 = alloca i32, align 4
  %10 = alloca [5 x double], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca [5 x i32], align 16
  %19 = alloca [3 x i32], align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca [5 x ptr], align 16
  %25 = alloca ptr, align 8
  %26 = alloca [8 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 400, ptr %1) #11
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #11
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 40, i1 false)
  %27 = getelementptr inbounds [10 x i32], ptr %2, i32 0, i32 0
  store i32 6, ptr %27, align 16
  %28 = getelementptr inbounds [10 x i32], ptr %2, i32 0, i32 1
  store i32 1, ptr %28, align 4
  %29 = getelementptr inbounds [10 x i32], ptr %2, i32 0, i32 2
  store i32 8, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #11
  store i32 10, ptr %3, align 4, !tbaa !5
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = zext i32 %30 to i64
  %32 = call ptr @llvm.stacksave.p0()
  store ptr %32, ptr %4, align 8
  %33 = alloca i32, i64 %31, align 16
  store i64 %31, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #11
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %54, %0
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  br label %57

39:                                               ; preds = %34
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %33, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, i32 noundef %40, i32 noundef %44, i32 noundef %48, i32 noundef %52)
  br label %54

54:                                               ; preds = %39
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %6, align 4, !tbaa !5
  br label %34, !llvm.loop !9

57:                                               ; preds = %38
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @_Z5pausev()
  call void @llvm.lifetime.start.p0(i64 20, ptr %7) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const._Z6arraysv.entries, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const._Z6arraysv.course_name, i64 8, i1 false)
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, i64 noundef 5)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.42, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #11
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %68, %57
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %71

68:                                               ; preds = %61
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !5
  br label %61, !llvm.loop !12

71:                                               ; preds = %61
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, i32 noundef %72)
  call void @_Z5pausev()
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #11
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
  %74 = getelementptr inbounds [5 x double], ptr %10, i32 0, i32 0
  store double 1.500000e+00, ptr %74, align 16
  %75 = getelementptr inbounds [5 x double], ptr %10, i32 0, i32 1
  store double 2.400000e+00, ptr %75, align 8
  %76 = getelementptr inbounds [5 x double], ptr %10, i32 0, i32 2
  store double 4.500000e+00, ptr %76, align 16
  %77 = getelementptr inbounds [5 x double], ptr %10, i32 0, i32 3
  store double 6.700000e+00, ptr %77, align 8
  %78 = getelementptr inbounds [5 x double], ptr %10, i32 0, i32 4
  store double 8.800000e+00, ptr %78, align 16
  %79 = getelementptr inbounds [5 x double], ptr %10, i64 0, i64 0
  %80 = getelementptr inbounds [5 x double], ptr %10, i64 0, i64 0
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, ptr noundef %79, ptr noundef %80)
  %82 = getelementptr inbounds [5 x double], ptr %10, i64 0, i64 2
  %83 = load double, ptr %82, align 16, !tbaa !13
  %84 = getelementptr inbounds [5 x double], ptr %10, i64 0, i64 0
  %85 = getelementptr inbounds double, ptr %84, i64 2
  %86 = load double, ptr %85, align 8, !tbaa !13
  %87 = getelementptr inbounds [5 x double], ptr %10, i64 0, i64 0
  %88 = getelementptr inbounds double, ptr %87, i64 2
  %89 = load double, ptr %88, align 8, !tbaa !13
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, double noundef %83, double noundef %86, double noundef %89)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #11
  store ptr null, ptr %11, align 8, !tbaa !15
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = mul i64 %92, 4
  %94 = call noalias ptr @malloc(i64 noundef %93) #12
  store ptr %94, ptr %11, align 8, !tbaa !15
  %95 = load ptr, ptr %11, align 8, !tbaa !15
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %98

97:                                               ; preds = %71
  br label %100

98:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.47, i32 noundef 207, ptr noundef @__PRETTY_FUNCTION__._Z6arraysv) #13
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #11
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %114, %100
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #11
  br label %117

106:                                              ; preds = %101
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = mul nsw i32 %107, %108
  %110 = load ptr, ptr %11, align 8, !tbaa !15
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %110, i64 %112
  store i32 %109, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %106
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %12, align 4, !tbaa !5
  br label %101, !llvm.loop !17

117:                                              ; preds = %105
  %118 = load ptr, ptr %11, align 8, !tbaa !15
  %119 = load ptr, ptr %11, align 8, !tbaa !15
  %120 = getelementptr inbounds i32, ptr %119, i64 0
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, ptr noundef %118, ptr noundef %120)
  %122 = load ptr, ptr %11, align 8, !tbaa !15
  %123 = getelementptr inbounds i32, ptr %122, i64 2
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load ptr, ptr %11, align 8, !tbaa !15
  %126 = getelementptr inbounds i32, ptr %125, i64 2
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load ptr, ptr %11, align 8, !tbaa !15
  %129 = getelementptr inbounds i32, ptr %128, i64 0
  %130 = getelementptr inbounds i32, ptr %129, i64 2
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.49, i32 noundef %124, i32 noundef %127, i32 noundef %131)
  %133 = load ptr, ptr %11, align 8, !tbaa !15
  call void @free(ptr noundef %133) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = call noalias ptr @calloc(i64 noundef %135, i64 noundef 4) #14
  store ptr %136, ptr %13, align 8, !tbaa !15
  %137 = load ptr, ptr %13, align 8, !tbaa !15
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %140

139:                                              ; preds = %117
  br label %142

140:                                              ; preds = %117
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.47, i32 noundef 240, ptr noundef @__PRETTY_FUNCTION__._Z6arraysv) #13
  unreachable

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141, %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %155, %142
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = load i32, ptr %3, align 4, !tbaa !5
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %158

148:                                              ; preds = %143
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = add nsw i32 %149, 10
  %151 = load ptr, ptr %13, align 8, !tbaa !15
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  store i32 %150, ptr %154, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %148
  %156 = load i32, ptr %14, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !5
  br label %143, !llvm.loop !18

158:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  %159 = load i32, ptr %3, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %161 = load ptr, ptr %13, align 8, !tbaa !15
  %162 = load i32, ptr %15, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = mul i64 %163, 4
  %165 = call ptr @realloc(ptr noundef %161, i64 noundef %164) #15
  store ptr %165, ptr %16, align 8, !tbaa !15
  %166 = load ptr, ptr %16, align 8, !tbaa !15
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %169

168:                                              ; preds = %158
  br label %171

169:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.47, i32 noundef 248, ptr noundef @__PRETTY_FUNCTION__._Z6arraysv) #13
  unreachable

170:                                              ; No predecessors!
  br label %171

171:                                              ; preds = %170, %168
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = sub nsw i32 %172, 1
  %174 = add nsw i32 %173, 10
  %175 = load ptr, ptr %16, align 8, !tbaa !15
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = sub nsw i32 %176, 1
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds i32, ptr %175, i64 %178
  store i32 %174, ptr %179, align 4, !tbaa !5
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %194, %171
  %182 = load i32, ptr %17, align 4, !tbaa !5
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  br label %197

186:                                              ; preds = %181
  %187 = load i32, ptr %17, align 4, !tbaa !5
  %188 = load ptr, ptr %16, align 8, !tbaa !15
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i32, ptr %188, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %187, i32 noundef %192)
  br label %194

194:                                              ; preds = %186
  %195 = load i32, ptr %17, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %17, align 4, !tbaa !5
  br label %181, !llvm.loop !19

197:                                              ; preds = %185
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %199 = load ptr, ptr %16, align 8, !tbaa !15
  call void @free(ptr noundef %199) #11
  call void @_Z5pausev()
  call void @llvm.lifetime.start.p0(i64 20, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 @__const._Z6arraysv.myarr, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %200 = getelementptr inbounds [3 x i32], ptr %19, i64 0, i64 0
  store ptr %200, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %201 = getelementptr inbounds [3 x i32], ptr %19, i64 0, i64 1
  store ptr %201, ptr %21, align 8, !tbaa !15
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.54)
  %203 = load ptr, ptr %20, align 8, !tbaa !15
  call void @free(ptr noundef %203) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  store i32 10, ptr %22, align 4, !tbaa !5
  store ptr %22, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #11
  store ptr %19, ptr %23, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 20, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 20, ptr %7) #11
  %204 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %204)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr %1) #11
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: nounwind
declare void @free(ptr noundef) #8

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #9

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #10

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind allocsize(1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind allocsize(0,1) }
attributes #15 = { nounwind allocsize(1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._Z6arraysv.course_name = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._Z6arraysv = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5pausev() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6arraysv() local_unnamed_addr #2 {
  %1 = alloca [5 x double], align 16
  %2 = alloca [3 x i32], align 4
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 0, i32 noundef undef, i32 noundef 6, i32 noundef undef)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 1, i32 noundef undef, i32 noundef 1, i32 noundef undef)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 2, i32 noundef undef, i32 noundef 8, i32 noundef undef)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 3, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 4, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 5, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 6, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 7, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 8, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef 9, i32 noundef undef, i32 noundef 0, i32 noundef undef)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  tail call void @_Z5pausev()
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, i64 noundef 5)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42, i64 noundef 8)
  br label %16

16:                                               ; preds = %16, %0
  %indvars.iv = phi i64 [ %indvars.iv.next, %16 ], [ 0, %0 ]
  %17 = getelementptr inbounds [8 x i8], ptr @__const._Z6arraysv.course_name, i64 0, i64 %indvars.iv
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %.not = icmp eq i8 %18, 0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %.not, label %19, label %16, !llvm.loop !8

19:                                               ; preds = %16
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, i32 noundef %20)
  tail call void @_Z5pausev()
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #8
  store <2 x double> <double 1.500000e+00, double 2.400000e+00>, ptr %1, align 16
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  store <2 x double> <double 4.500000e+00, double 6.700000e+00>, ptr %22, align 16
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  store double 8.800000e+00, ptr %23, align 16
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef nonnull %1, ptr noundef nonnull %1)
  %25 = load double, ptr %22, align 16, !tbaa !10
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, double noundef %25, double noundef %25, double noundef %25)
  %27 = call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #9
  %.not56 = icmp eq ptr %27, null
  br i1 %.not56, label %36, label %.preheader59.preheader

.preheader59.preheader:                           ; preds = %19
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  store <4 x i32> <i32 0, i32 1, i32 4, i32 9>, ptr %27, align 4, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %27, i64 16
  store <4 x i32> <i32 16, i32 25, i32 36, i32 49>, ptr %29, align 4, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %27, i64 32
  store i32 64, ptr %30, align 4, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %27, i64 36
  store i32 81, ptr %31, align 4, !tbaa !12
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, ptr noundef nonnull %27, ptr noundef nonnull %27)
  %33 = load i32, ptr %28, align 4, !tbaa !12
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, i32 noundef %33, i32 noundef %33, i32 noundef %33)
  call void @free(ptr noundef nonnull %27) #8
  %35 = call noalias dereferenceable_or_null(40) ptr @calloc(i64 noundef 10, i64 noundef 4) #10
  %.not57 = icmp eq ptr %35, null
  br i1 %.not57, label %41, label %.preheader.preheader

36:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.47, i32 noundef 207, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6arraysv) #11
  unreachable

.preheader.preheader:                             ; preds = %.preheader59.preheader
  store <4 x i32> <i32 10, i32 11, i32 12, i32 13>, ptr %35, align 4, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %35, i64 16
  store <4 x i32> <i32 14, i32 15, i32 16, i32 17>, ptr %37, align 4, !tbaa !12
  %38 = getelementptr inbounds i8, ptr %35, i64 32
  store i32 18, ptr %38, align 4, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %35, i64 36
  store i32 19, ptr %39, align 4, !tbaa !12
  %40 = call dereferenceable_or_null(44) ptr @realloc(ptr noundef nonnull %35, i64 noundef 44) #12
  %.not58 = icmp eq ptr %40, null
  br i1 %.not58, label %42, label %43

41:                                               ; preds = %.preheader59.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.47, i32 noundef 240, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6arraysv) #11
  unreachable

42:                                               ; preds = %.preheader.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.47, i32 noundef 248, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6arraysv) #11
  unreachable

43:                                               ; preds = %.preheader.preheader
  %44 = getelementptr inbounds i8, ptr %40, i64 40
  store i32 20, ptr %44, align 4, !tbaa !12
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  %46 = load i32, ptr %40, align 4, !tbaa !12
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 0, i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %40, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 1, i32 noundef %49)
  %51 = getelementptr inbounds i8, ptr %40, i64 8
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 2, i32 noundef %52)
  %54 = getelementptr inbounds i8, ptr %40, i64 12
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 3, i32 noundef %55)
  %57 = getelementptr inbounds i8, ptr %40, i64 16
  %58 = load i32, ptr %57, align 4, !tbaa !12
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 4, i32 noundef %58)
  %60 = getelementptr inbounds i8, ptr %40, i64 20
  %61 = load i32, ptr %60, align 4, !tbaa !12
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 5, i32 noundef %61)
  %63 = getelementptr inbounds i8, ptr %40, i64 24
  %64 = load i32, ptr %63, align 4, !tbaa !12
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 6, i32 noundef %64)
  %66 = getelementptr inbounds i8, ptr %40, i64 28
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 7, i32 noundef %67)
  %69 = getelementptr inbounds i8, ptr %40, i64 32
  %70 = load i32, ptr %69, align 4, !tbaa !12
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 8, i32 noundef %70)
  %72 = getelementptr inbounds i8, ptr %40, i64 36
  %73 = load i32, ptr %72, align 4, !tbaa !12
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 9, i32 noundef %73)
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef 10, i32 noundef 20)
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  call void @free(ptr noundef nonnull %40) #8
  call void @_Z5pausev()
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #8
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54)
  call void @free(ptr noundef nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #8
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #7

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(0,1) }
attributes #11 = { noreturn nounwind }
attributes #12 = { nounwind allocsize(1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass