; LLVM IR from ROCm/aomp :: examples/openmp/vmul_template (vmul_template)

; 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 [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [100000 x i32], align 16
  %4 = alloca [100000 x i32], align 16
  %5 = alloca [100000 x i32], align 16
  %6 = alloca [100000 x i32], align 16
  %7 = alloca [100000 x float], align 16
  %8 = alloca [100000 x float], align 16
  %9 = alloca [100000 x float], align 16
  %10 = alloca [100000 x float], align 16
  %11 = alloca [100000 x double], align 16
  %12 = alloca [100000 x double], align 16
  %13 = alloca [100000 x double], align 16
  %14 = alloca [100000 x double], align 16
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 100000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 400000, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 0, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %89, %0
  %23 = load i32, ptr %17, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 100000
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %92

26:                                               ; preds = %22
  %27 = load i32, ptr %17, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  %29 = load i32, ptr %17, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100000 x i32], ptr %3, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  %32 = sitofp i32 %28 to float
  %33 = load i32, ptr %17, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100000 x float], ptr %7, i64 0, i64 %34
  store float %32, ptr %35, align 4, !tbaa !11
  %36 = fpext float %32 to double
  %37 = load i32, ptr %17, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100000 x double], ptr %11, i64 0, i64 %38
  store double %36, ptr %39, align 8, !tbaa !13
  %40 = load i32, ptr %17, align 4, !tbaa !5
  %41 = add nsw i32 %40, 2
  %42 = load i32, ptr %17, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100000 x i32], ptr %4, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !5
  %45 = sitofp i32 %41 to float
  %46 = load i32, ptr %17, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100000 x float], ptr %8, i64 0, i64 %47
  store float %45, ptr %48, align 4, !tbaa !11
  %49 = fpext float %45 to double
  %50 = load i32, ptr %17, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100000 x double], ptr %12, i64 0, i64 %51
  store double %49, ptr %52, align 8, !tbaa !13
  %53 = load i32, ptr %17, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100000 x i32], ptr %3, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %17, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100000 x i32], ptr %4, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = mul nsw i32 %56, %60
  %62 = load i32, ptr %17, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100000 x i32], ptr %6, i64 0, i64 %63
  store i32 %61, ptr %64, align 4, !tbaa !5
  %65 = load i32, ptr %17, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100000 x float], ptr %7, i64 0, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = load i32, ptr %17, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100000 x float], ptr %8, i64 0, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = fmul float %68, %72
  %74 = load i32, ptr %17, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100000 x float], ptr %10, i64 0, i64 %75
  store float %73, ptr %76, align 4, !tbaa !11
  %77 = load i32, ptr %17, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100000 x double], ptr %11, i64 0, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !13
  %81 = load i32, ptr %17, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100000 x double], ptr %12, i64 0, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !13
  %85 = fmul double %80, %84
  %86 = load i32, ptr %17, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100000 x double], ptr %14, i64 0, i64 %87
  store double %85, ptr %88, align 8, !tbaa !13
  br label %89

89:                                               ; preds = %26
  %90 = load i32, ptr %17, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %17, align 4, !tbaa !5
  br label %22, !llvm.loop !15

92:                                               ; preds = %25
  %93 = getelementptr inbounds [100000 x i32], ptr %3, i64 0, i64 0
  %94 = getelementptr inbounds [100000 x i32], ptr %4, i64 0, i64 0
  %95 = getelementptr inbounds [100000 x i32], ptr %5, i64 0, i64 0
  call void @_Z4vmulIiEvPT_S1_S1_i(ptr noundef %93, ptr noundef %94, ptr noundef %95, i32 noundef 100000)
  %96 = getelementptr inbounds [100000 x float], ptr %7, i64 0, i64 0
  %97 = getelementptr inbounds [100000 x float], ptr %8, i64 0, i64 0
  %98 = getelementptr inbounds [100000 x float], ptr %9, i64 0, i64 0
  call void @_Z4vmulIfEvPT_S1_S1_i(ptr noundef %96, ptr noundef %97, ptr noundef %98, i32 noundef 100000)
  %99 = getelementptr inbounds [100000 x double], ptr %11, i64 0, i64 0
  %100 = getelementptr inbounds [100000 x double], ptr %12, i64 0, i64 0
  %101 = getelementptr inbounds [100000 x double], ptr %13, i64 0, i64 0
  call void @_Z4vmulIdEvPT_S1_S1_i(ptr noundef %99, ptr noundef %100, ptr noundef %101, i32 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %135, %92
  %103 = load i32, ptr %18, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 100000
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %138

106:                                              ; preds = %102
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100000 x i32], ptr %5, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %18, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100000 x i32], ptr %6, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp ne i32 %110, %114
  br i1 %115, label %116, label %134

116:                                              ; preds = %106
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %15, align 4, !tbaa !5
  %119 = load i8, ptr %16, align 1, !tbaa !9, !range !17, !noundef !18
  %120 = trunc i8 %119 to i1
  br i1 %120, label %133, label %121

121:                                              ; preds = %116
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = load i32, ptr %18, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100000 x i32], ptr %5, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr %18, align 4, !tbaa !5
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100000 x i32], ptr %6, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %122, i32 noundef %126, i32 noundef %127, i32 noundef %131)
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %133

133:                                              ; preds = %121, %116
  br label %134

134:                                              ; preds = %133, %106
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %18, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %18, align 4, !tbaa !5
  br label %102, !llvm.loop !19

138:                                              ; preds = %105
  store i8 0, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %177, %138
  %140 = load i32, ptr %19, align 4, !tbaa !5
  %141 = icmp slt i32 %140, 100000
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %180

143:                                              ; preds = %139
  %144 = load i32, ptr %19, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100000 x float], ptr %9, i64 0, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !11
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100000 x float], ptr %10, i64 0, i64 %149
  %151 = load float, ptr %150, align 4, !tbaa !11
  %152 = fsub float %147, %151
  %153 = call noundef float @_ZSt4fabsf(float noundef %152)
  %154 = fpext float %153 to double
  %155 = fcmp ogt double %154, 0x3E7AD7F29ABCAF48
  br i1 %155, label %156, label %176

156:                                              ; preds = %143
  %157 = load i32, ptr %15, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %15, align 4, !tbaa !5
  %159 = load i8, ptr %16, align 1, !tbaa !9, !range !17, !noundef !18
  %160 = trunc i8 %159 to i1
  br i1 %160, label %175, label %161

161:                                              ; preds = %156
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = load i32, ptr %19, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100000 x float], ptr %9, i64 0, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !11
  %167 = fpext float %166 to double
  %168 = load i32, ptr %19, align 4, !tbaa !5
  %169 = load i32, ptr %19, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100000 x float], ptr %10, i64 0, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !11
  %173 = fpext float %172 to double
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %162, double noundef %167, i32 noundef %168, double noundef %173)
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %175

175:                                              ; preds = %161, %156
  br label %176

176:                                              ; preds = %175, %143
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %19, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %19, align 4, !tbaa !5
  br label %139, !llvm.loop !20

180:                                              ; preds = %142
  store i8 0, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %216, %180
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = icmp slt i32 %182, 100000
  br i1 %183, label %185, label %184

184:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %219

185:                                              ; preds = %181
  %186 = load i32, ptr %20, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100000 x double], ptr %13, i64 0, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !13
  %190 = load i32, ptr %20, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [100000 x double], ptr %14, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !13
  %194 = fsub double %189, %193
  %195 = call double @llvm.fabs.f64(double %194)
  %196 = fcmp ogt double %195, 1.000000e-15
  br i1 %196, label %197, label %215

197:                                              ; preds = %185
  %198 = load i32, ptr %15, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %15, align 4, !tbaa !5
  %200 = load i8, ptr %16, align 1, !tbaa !9, !range !17, !noundef !18
  %201 = trunc i8 %200 to i1
  br i1 %201, label %214, label %202

202:                                              ; preds = %197
  %203 = load i32, ptr %20, align 4, !tbaa !5
  %204 = load i32, ptr %20, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100000 x double], ptr %13, i64 0, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !13
  %208 = load i32, ptr %20, align 4, !tbaa !5
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [100000 x double], ptr %14, i64 0, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !13
  %213 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %203, double noundef %207, i32 noundef %208, double noundef %212)
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %214

214:                                              ; preds = %202, %197
  br label %215

215:                                              ; preds = %214, %185
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %20, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %20, align 4, !tbaa !5
  br label %181, !llvm.loop !21

219:                                              ; preds = %184
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %224

222:                                              ; preds = %219
  %223 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  br label %228

224:                                              ; preds = %219
  %225 = load i32, ptr %15, align 4, !tbaa !5
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %225)
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %21, align 4
  br label %228

228:                                              ; preds = %224, %222
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %229 = load i32, ptr %1, align 4
  ret i32 %229
}

; 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 @_Z4vmulIiEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4vmulIfEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4vmulIdEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

attributes #0 = { mustprogress norecurse 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 #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 = { "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 = { inlinehint mustprogress nounwind 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


; 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 [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
vector.ph:
  %0 = alloca [100000 x i32], align 16
  %1 = alloca [100000 x i32], align 16
  %2 = alloca [100000 x i32], align 16
  %3 = alloca [100000 x i32], align 16
  %4 = alloca [100000 x float], align 16
  %5 = alloca [100000 x float], align 16
  %6 = alloca [100000 x float], align 16
  %7 = alloca [100000 x float], align 16
  %8 = alloca [100000 x double], align 16
  %9 = alloca [100000 x double], align 16
  %10 = alloca [100000 x double], align 16
  %11 = alloca [100000 x double], align 16
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %11) #6
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ <i64 0, i64 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %12 = add nuw nsw <2 x i64> %vec.ind, <i64 1, i64 1>
  %13 = getelementptr inbounds [100000 x i32], ptr %0, i64 0, i64 %index
  %14 = trunc <2 x i64> %12 to <2 x i32>
  store <2 x i32> %14, ptr %13, align 8, !tbaa !5
  %15 = uitofp <2 x i32> %14 to <2 x float>
  %16 = getelementptr inbounds [100000 x float], ptr %4, i64 0, i64 %index
  store <2 x float> %15, ptr %16, align 8, !tbaa !9
  %17 = uitofp <2 x i32> %14 to <2 x double>
  %18 = getelementptr inbounds [100000 x double], ptr %8, i64 0, i64 %index
  store <2 x double> %17, ptr %18, align 16, !tbaa !11
  %19 = add nuw nsw <2 x i64> %vec.ind, <i64 2, i64 2>
  %20 = getelementptr inbounds [100000 x i32], ptr %1, i64 0, i64 %index
  %21 = trunc <2 x i64> %19 to <2 x i32>
  store <2 x i32> %21, ptr %20, align 8, !tbaa !5
  %22 = uitofp <2 x i32> %21 to <2 x float>
  %23 = getelementptr inbounds [100000 x float], ptr %5, i64 0, i64 %index
  store <2 x float> %22, ptr %23, align 8, !tbaa !9
  %24 = uitofp <2 x i32> %21 to <2 x double>
  %25 = getelementptr inbounds [100000 x double], ptr %9, i64 0, i64 %index
  store <2 x double> %24, ptr %25, align 16, !tbaa !11
  %26 = mul nuw nsw <2 x i64> %12, %19
  %27 = getelementptr inbounds [100000 x i32], ptr %3, i64 0, i64 %index
  %28 = trunc <2 x i64> %26 to <2 x i32>
  store <2 x i32> %28, ptr %27, align 8, !tbaa !5
  %29 = fmul <2 x float> %15, %22
  %30 = getelementptr inbounds [100000 x float], ptr %7, i64 0, i64 %index
  store <2 x float> %29, ptr %30, align 8, !tbaa !9
  %31 = fmul <2 x double> %17, %24
  %32 = getelementptr inbounds [100000 x double], ptr %11, i64 0, i64 %index
  store <2 x double> %31, ptr %32, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %33 = icmp eq i64 %index.next, 100000
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  call void @_Z4vmulIiEvPT_S1_S1_i(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 100000)
  call void @_Z4vmulIfEvPT_S1_S1_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 100000)
  call void @_Z4vmulIdEvPT_S1_S1_i(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 100000)
  br label %34

34:                                               ; preds = %middle.block, %44
  %indvars.iv77 = phi i64 [ 0, %middle.block ], [ %indvars.iv.next78, %44 ]
  %.05568 = phi i1 [ false, %middle.block ], [ %.1, %44 ]
  %.05667 = phi i32 [ 0, %middle.block ], [ %.157, %44 ]
  %35 = getelementptr inbounds [100000 x i32], ptr %2, i64 0, i64 %indvars.iv77
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds [100000 x i32], ptr %3, i64 0, i64 %indvars.iv77
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %.not = icmp eq i32 %36, %38
  br i1 %.not, label %44, label %39

39:                                               ; preds = %34
  %40 = add nsw i32 %.05667, 1
  br i1 %.05568, label %44, label %41

41:                                               ; preds = %39
  %42 = trunc nuw nsw i64 %indvars.iv77 to i32
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %42, i32 noundef %36, i32 noundef %42, i32 noundef %38)
  br label %44

44:                                               ; preds = %34, %41, %39
  %.157 = phi i32 [ %40, %39 ], [ %40, %41 ], [ %.05667, %34 ]
  %.1 = phi i1 [ true, %39 ], [ true, %41 ], [ %.05568, %34 ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next78, 100000
  br i1 %exitcond79.not, label %.preheader65, label %34, !llvm.loop !17

.preheader65:                                     ; preds = %44, %61
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %61 ], [ 0, %44 ]
  %.271 = phi i1 [ %.3, %61 ], [ false, %44 ]
  %.25870 = phi i32 [ %.359, %61 ], [ %.157, %44 ]
  %45 = getelementptr inbounds [100000 x float], ptr %6, i64 0, i64 %indvars.iv80
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = getelementptr inbounds [100000 x float], ptr %7, i64 0, i64 %indvars.iv80
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = fsub float %46, %48
  %50 = call noundef float @_ZSt4fabsf(float noundef %49)
  %51 = fpext float %50 to double
  %52 = fcmp ogt double %51, 0x3E7AD7F29ABCAF48
  br i1 %52, label %53, label %61

53:                                               ; preds = %.preheader65
  %54 = add nsw i32 %.25870, 1
  br i1 %.271, label %61, label %55

55:                                               ; preds = %53
  %56 = load float, ptr %45, align 4, !tbaa !9
  %57 = fpext float %56 to double
  %58 = fpext float %48 to double
  %59 = trunc nuw nsw i64 %indvars.iv80 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %59, double noundef %57, i32 noundef %59, double noundef %58)
  br label %61

61:                                               ; preds = %.preheader65, %55, %53
  %.359 = phi i32 [ %54, %53 ], [ %54, %55 ], [ %.25870, %.preheader65 ]
  %.3 = phi i1 [ true, %53 ], [ true, %55 ], [ %.271, %.preheader65 ]
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next81, 100000
  br i1 %exitcond82.not, label %.preheader, label %.preheader65, !llvm.loop !18

62:                                               ; preds = %76
  %63 = icmp eq i32 %.561, 0
  br i1 %63, label %79, label %77

.preheader:                                       ; preds = %61, %76
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %76 ], [ 0, %61 ]
  %.474 = phi i1 [ %.5, %76 ], [ false, %61 ]
  %.46073 = phi i32 [ %.561, %76 ], [ %.359, %61 ]
  %64 = getelementptr inbounds [100000 x double], ptr %10, i64 0, i64 %indvars.iv83
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds [100000 x double], ptr %11, i64 0, i64 %indvars.iv83
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = fsub double %65, %67
  %69 = call double @llvm.fabs.f64(double %68)
  %70 = fcmp ogt double %69, 1.000000e-15
  br i1 %70, label %71, label %76

71:                                               ; preds = %.preheader
  %72 = add nsw i32 %.46073, 1
  br i1 %.474, label %76, label %73

73:                                               ; preds = %71
  %74 = trunc nuw nsw i64 %indvars.iv83 to i32
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %74, double noundef %65, i32 noundef %74, double noundef %67)
  br label %76

76:                                               ; preds = %.preheader, %73, %71
  %.561 = phi i32 [ %72, %71 ], [ %72, %73 ], [ %.46073, %.preheader ]
  %.5 = phi i1 [ true, %71 ], [ true, %73 ], [ %.474, %.preheader ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next84, 100000
  br i1 %exitcond85.not, label %62, label %.preheader, !llvm.loop !19

77:                                               ; preds = %62
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.561)
  br label %79

79:                                               ; preds = %62, %77
  %.str.5.sink = phi ptr [ @.str.5, %77 ], [ @.str.3, %62 ]
  %.062 = phi i32 [ 1, %77 ], [ 0, %62 ]
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink)
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %0) #6
  ret i32 %.062
}

; 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 @_Z4vmulIiEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4vmulIfEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4vmulIdEvPT_S1_S1_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

attributes #0 = { mustprogress norecurse 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 #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 = { 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 #4 = { inlinehint mustprogress nounwind 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass