; LLVM IR from EntityFX/anybench :: src/benchmarks/generic/mpmflops (mpmflops_s)

; 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"

%struct.MYCALCS = type { ptr, i32 }

@attrt = external dso_local global ptr, align 8
@xcalcs = external dso_local global %struct.MYCALCS, align 8
@runrepeats = external dso_local global i32, align 4
@part = external dso_local global i32, align 4
@opwd = external dso_local global i32, align 4
@words = external dso_local global [3 x i32], align 4
@repeats = external dso_local global [3 x i32], align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@timeday = external global [30 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@x_cpu = external dso_local global [4000000 x float], align 16
@tid = external dso_local global [100 x i64], align 16
@secs = external global double, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @runTests(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca float, align 4
  %10 = alloca [36 x float], align 16
  %11 = alloca [36 x float], align 16
  %12 = alloca [36 x i32], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca [1024 x i8], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store float 0x3FEFFFFDE0000000, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 144, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 3200, ptr @words, align 4, !tbaa !5
  %17 = load i32, ptr @words, align 4, !tbaa !5
  %18 = mul nsw i32 %17, 10
  store i32 %18, ptr getelementptr inbounds ([3 x i32], ptr @words, i64 0, i64 1), align 4, !tbaa !5
  %19 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @words, i64 0, i64 1), align 4, !tbaa !5
  %20 = mul nsw i32 %19, 100
  store i32 %20, ptr getelementptr inbounds ([3 x i32], ptr @words, i64 0, i64 2), align 4, !tbaa !5
  store i32 10000, ptr @repeats, align 4, !tbaa !5
  %21 = load i32, ptr @repeats, align 4, !tbaa !5
  %22 = sdiv i32 %21, 10
  store i32 %22, ptr getelementptr inbounds ([3 x i32], ptr @repeats, i64 0, i64 1), align 4, !tbaa !5
  %23 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @repeats, i64 0, i64 1), align 4, !tbaa !5
  %24 = sdiv i32 %23, 100
  store i32 %24, ptr getelementptr inbounds ([3 x i32], ptr @repeats, i64 0, i64 2), align 4, !tbaa !5
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void (...) @local_time()
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @timeday)
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %183, %0
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 9
  br i1 %34, label %35, label %186

35:                                               ; preds = %32
  %36 = load i32, ptr %14, align 4, !tbaa !5
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %36)
  %38 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %38, ptr @part, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %178, %35
  %40 = load i32, ptr @part, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 2
  br i1 %41, label %42, label %181

42:                                               ; preds = %39
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %174, %42
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %177

47:                                               ; preds = %43
  store ptr @x_cpu, ptr @xcalcs, align 8, !tbaa !11
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [3 x i32], ptr @words, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load i32, ptr %14, align 4, !tbaa !5
  %53 = sdiv i32 %51, %52
  store i32 %53, ptr getelementptr inbounds (%struct.MYCALCS, ptr @xcalcs, i32 0, i32 1), align 8, !tbaa !14
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [3 x i32], ptr @repeats, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %57, ptr @runrepeats, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %70, %47
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [3 x i32], ptr @words, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = icmp slt i32 %59, %63
  br i1 %64, label %65, label %73

65:                                               ; preds = %58
  %66 = load float, ptr %9, align 4, !tbaa !9
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %68
  store float %66, ptr %69, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %65
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %2, align 4, !tbaa !5
  br label %58, !llvm.loop !15

73:                                               ; preds = %58
  call void (...) @start_time()
  store i64 0, ptr %8, align 8, !tbaa !17
  br label %74

74:                                               ; preds = %86, %73
  %75 = load i64, ptr %8, align 8, !tbaa !17
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %75, %77
  br i1 %78, label %79, label %89

79:                                               ; preds = %74
  %80 = load i64, ptr %8, align 8, !tbaa !17
  %81 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %80
  %82 = load ptr, ptr @attrt, align 8, !tbaa !19
  %83 = load i64, ptr %8, align 8, !tbaa !17
  %84 = inttoptr i64 %83 to ptr
  %85 = call i32 @pthread_create(ptr noundef %81, ptr noundef %82, ptr noundef @runTests, ptr noundef %84) #4
  br label %86

86:                                               ; preds = %79
  %87 = load i64, ptr %8, align 8, !tbaa !17
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %8, align 8, !tbaa !17
  br label %74, !llvm.loop !20

89:                                               ; preds = %74
  store i64 0, ptr %8, align 8, !tbaa !17
  br label %90

90:                                               ; preds = %100, %89
  %91 = load i64, ptr %8, align 8, !tbaa !17
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %91, %93
  br i1 %94, label %95, label %103

95:                                               ; preds = %90
  %96 = load i64, ptr %8, align 8, !tbaa !17
  %97 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !17
  %99 = call i32 @pthread_join(i64 noundef %98, ptr noundef null)
  br label %100

100:                                              ; preds = %95
  %101 = load i64, ptr %8, align 8, !tbaa !17
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %8, align 8, !tbaa !17
  br label %90, !llvm.loop !21

103:                                              ; preds = %90
  call void (...) @end_time()
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [3 x i32], ptr @words, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sitofp i32 %107 to float
  %109 = load i32, ptr @opwd, align 4, !tbaa !5
  %110 = sitofp i32 %109 to float
  %111 = fmul float %108, %110
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [36 x float], ptr %10, i64 0, i64 %113
  store float %111, ptr %114, align 4, !tbaa !9
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [3 x i32], ptr @repeats, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sitofp i32 %118 to float
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [36 x float], ptr %10, i64 0, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !9
  %124 = fmul float %119, %123
  %125 = fdiv float %124, 1.000000e+06
  %126 = load double, ptr @secs, align 8, !tbaa !22
  %127 = fptrunc double %126 to float
  %128 = fdiv float %125, %127
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [36 x float], ptr %11, i64 0, i64 %130
  store float %128, ptr %131, align 4, !tbaa !9
  %132 = load float, ptr @x_cpu, align 16, !tbaa !9
  %133 = fmul float %132, 1.000000e+05
  %134 = fptosi float %133 to i32
  %135 = load i32, ptr %13, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 %136
  store i32 %134, ptr %137, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %138 = load float, ptr @x_cpu, align 16, !tbaa !9
  store float %138, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %162, %103
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [3 x i32], ptr @words, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %146, label %165

146:                                              ; preds = %139
  %147 = load float, ptr %15, align 4, !tbaa !9
  %148 = load i32, ptr %2, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %149
  %151 = load float, ptr %150, align 4, !tbaa !9
  %152 = fcmp une float %147, %151
  br i1 %152, label %153, label %161

153:                                              ; preds = %146
  store i32 1, ptr %7, align 4, !tbaa !5
  %154 = load i32, ptr %13, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 %155
  store i32 0, ptr %156, align 4, !tbaa !5
  %157 = load i32, ptr %4, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [3 x i32], ptr @words, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  store i32 %160, ptr %2, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %153, %146
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %2, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %2, align 4, !tbaa !5
  br label %139, !llvm.loop !24

165:                                              ; preds = %139
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [36 x float], ptr %11, i64 0, i64 %167
  %169 = load float, ptr %168, align 4, !tbaa !9
  %170 = fptosi float %169 to i32
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %170)
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %174

174:                                              ; preds = %165
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %4, align 4, !tbaa !5
  br label %43, !llvm.loop !25

177:                                              ; preds = %43
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr @part, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr @part, align 4, !tbaa !5
  br label %39, !llvm.loop !26

181:                                              ; preds = %39
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %183

183:                                              ; preds = %181
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = mul nsw i32 %184, 2
  store i32 %185, ptr %14, align 4, !tbaa !5
  br label %32, !llvm.loop !27

186:                                              ; preds = %32
  %187 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 0
  %188 = load i32, ptr %187, align 16, !tbaa !5
  %189 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 1
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 2
  %192 = load i32, ptr %191, align 8, !tbaa !5
  %193 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 3
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 4
  %196 = load i32, ptr %195, align 16, !tbaa !5
  %197 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 5
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 6
  %200 = load i32, ptr %199, align 8, !tbaa !5
  %201 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 7
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 8
  %204 = load i32, ptr %203, align 16, !tbaa !5
  %205 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 9
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 10
  %208 = load i32, ptr %207, align 8, !tbaa !5
  %209 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 11
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 12
  %212 = load i32, ptr %211, align 16, !tbaa !5
  %213 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 13
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 14
  %216 = load i32, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 15
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 16
  %220 = load i32, ptr %219, align 16, !tbaa !5
  %221 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 17
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 18
  %224 = load i32, ptr %223, align 8, !tbaa !5
  %225 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 19
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 20
  %228 = load i32, ptr %227, align 16, !tbaa !5
  %229 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 21
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 22
  %232 = load i32, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds [36 x i32], ptr %12, i64 0, i64 23
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %188, i32 noundef %190, i32 noundef %192, i32 noundef %194, i32 noundef %196, i32 noundef %198, i32 noundef %200, i32 noundef %202, i32 noundef %204, i32 noundef %206, i32 noundef %208, i32 noundef %210, i32 noundef %212, i32 noundef %214, i32 noundef %216, i32 noundef %218, i32 noundef %220, i32 noundef %222, i32 noundef %224, i32 noundef %226, i32 noundef %228, i32 noundef %230, i32 noundef %232, i32 noundef %234)
  call void (...) @local_time()
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @timeday)
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

declare void @local_time(...) #2

declare void @start_time(...) #2

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @pthread_join(i64 noundef, ptr noundef) #2

declare void @end_time(...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !6, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !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"

%struct.MYCALCS = type { ptr, i32 }

@attrt = external dso_local local_unnamed_addr global ptr, align 8
@xcalcs = external dso_local local_unnamed_addr global %struct.MYCALCS, align 8
@runrepeats = external dso_local local_unnamed_addr global i32, align 4
@part = external dso_local local_unnamed_addr global i32, align 4
@opwd = external dso_local local_unnamed_addr global i32, align 4
@words = external dso_local local_unnamed_addr global [3 x i32], align 4
@repeats = external dso_local local_unnamed_addr global [3 x i32], align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@timeday = external global [30 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@x_cpu = external dso_local global [4000000 x float], align 16
@tid = external dso_local global [100 x i64], align 16
@secs = external local_unnamed_addr global double, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @runTests(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca [36 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %1) #5
  store i32 3200, ptr @words, align 4, !tbaa !5
  store i32 32000, ptr getelementptr inbounds (i8, ptr @words, i64 4), align 4, !tbaa !5
  store i32 3200000, ptr getelementptr inbounds (i8, ptr @words, i64 8), align 4, !tbaa !5
  store i32 10000, ptr @repeats, align 4, !tbaa !5
  store i32 1000, ptr getelementptr inbounds (i8, ptr @repeats, i64 4), align 4, !tbaa !5
  store i32 10, ptr getelementptr inbounds (i8, ptr @repeats, i64 8), align 4, !tbaa !5
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  tail call void (...) @local_time() #5
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @timeday)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %9

9:                                                ; preds = %0, %154
  %.03958 = phi i32 [ 1, %0 ], [ %156, %154 ]
  %.04057 = phi i64 [ 0, %0 ], [ %indvars.iv.next65.2, %154 ]
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.03958)
  %11 = zext nneg i32 %.03958 to i64
  store i32 0, ptr @part, align 4, !tbaa !5
  br label %.preheader46

.preheader46:                                     ; preds = %9, %._crit_edge53.2
  %.14156 = phi i64 [ %.04057, %9 ], [ %indvars.iv.next65.2, %._crit_edge53.2 ]
  %sext = shl i64 %.14156, 32
  %12 = ashr exact i64 %sext, 32
  store ptr @x_cpu, ptr @xcalcs, align 8, !tbaa !9
  %13 = load i32, ptr @words, align 4, !tbaa !5
  %14 = sdiv i32 %13, %.03958
  store i32 %14, ptr getelementptr inbounds (i8, ptr @xcalcs, i64 8), align 8, !tbaa !12
  %15 = load i32, ptr @repeats, align 4, !tbaa !5
  store i32 %15, ptr @runrepeats, align 4, !tbaa !5
  %16 = icmp sgt i32 %13, 0
  br i1 %16, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader46
  %wide.trip.count = zext nneg i32 %13 to i64
  %min.iters.check83 = icmp ult i32 %13, 8
  br i1 %min.iters.check83, label %.lr.ph.preheader92, label %vector.ph84

vector.ph84:                                      ; preds = %.lr.ph.preheader
  %n.vec86 = and i64 %wide.trip.count, 2147483640
  br label %vector.body88

vector.body88:                                    ; preds = %vector.body88, %vector.ph84
  %index89 = phi i64 [ 0, %vector.ph84 ], [ %index.next90, %vector.body88 ]
  %17 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %index89
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %17, align 16, !tbaa !13
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %18, align 16, !tbaa !13
  %index.next90 = add nuw i64 %index89, 8
  %19 = icmp eq i64 %index.next90, %n.vec86
  br i1 %19, label %middle.block81, label %vector.body88, !llvm.loop !15

middle.block81:                                   ; preds = %vector.body88
  %cmp.n91 = icmp eq i64 %n.vec86, %wide.trip.count
  br i1 %cmp.n91, label %._crit_edge, label %.lr.ph.preheader92

.lr.ph.preheader92:                               ; preds = %middle.block81, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec86, %middle.block81 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader92, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader92 ]
  %20 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %indvars.iv
  store float 0x3FEFFFFDE0000000, ptr %20, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %middle.block81, %.preheader46
  tail call void (...) @start_time() #5
  br label %21

21:                                               ; preds = %._crit_edge, %21
  %.04348 = phi i64 [ 0, %._crit_edge ], [ %26, %21 ]
  %22 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.04348
  %23 = load ptr, ptr @attrt, align 8, !tbaa !20
  %24 = inttoptr i64 %.04348 to ptr
  %25 = tail call i32 @pthread_create(ptr noundef nonnull %22, ptr noundef %23, ptr noundef nonnull @runTests, ptr noundef %24) #5
  %26 = add nuw nsw i64 %.04348, 1
  %exitcond60.not = icmp eq i64 %26, %11
  br i1 %exitcond60.not, label %.preheader, label %21, !llvm.loop !21

.preheader:                                       ; preds = %21, %.preheader
  %.14449 = phi i64 [ %30, %.preheader ], [ 0, %21 ]
  %27 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.14449
  %28 = load i64, ptr %27, align 8, !tbaa !22
  %29 = tail call i32 @pthread_join(i64 noundef %28, ptr noundef null) #5
  %30 = add nuw nsw i64 %.14449, 1
  %exitcond61.not = icmp eq i64 %30, %11
  br i1 %exitcond61.not, label %31, label %.preheader, !llvm.loop !24

31:                                               ; preds = %.preheader
  tail call void (...) @end_time() #5
  %32 = load i32, ptr @words, align 4, !tbaa !5
  %33 = sitofp i32 %32 to float
  %34 = load i32, ptr @opwd, align 4, !tbaa !5
  %35 = sitofp i32 %34 to float
  %36 = fmul float %33, %35
  %37 = load i32, ptr @repeats, align 4, !tbaa !5
  %38 = sitofp i32 %37 to float
  %39 = fmul float %36, %38
  %40 = fdiv float %39, 1.000000e+06
  %41 = load double, ptr @secs, align 8, !tbaa !25
  %42 = fptrunc double %41 to float
  %43 = fdiv float %40, %42
  %44 = load float, ptr @x_cpu, align 16, !tbaa !13
  %45 = fmul float %44, 1.000000e+05
  %46 = fptosi float %45 to i32
  %47 = getelementptr inbounds [36 x i32], ptr %1, i64 0, i64 %12
  store i32 %46, ptr %47, align 4, !tbaa !5
  %48 = icmp sgt i32 %32, 1
  br i1 %48, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %31, %54
  %.150 = phi i32 [ %55, %54 ], [ 1, %31 ]
  %49 = sext i32 %.150 to i64
  %50 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !13
  %52 = fcmp une float %44, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %.lr.ph52
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %.lr.ph52, %53
  %.2 = phi i32 [ %32, %53 ], [ %.150, %.lr.ph52 ]
  %55 = add nsw i32 %.2, 1
  %56 = icmp slt i32 %55, %32
  br i1 %56, label %.lr.ph52, label %._crit_edge53, !llvm.loop !27

._crit_edge53:                                    ; preds = %54, %31
  %57 = fptosi float %43 to i32
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %57)
  %indvars.iv.next65 = add nsw i64 %12, 1
  store ptr @x_cpu, ptr @xcalcs, align 8, !tbaa !9
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @words, i64 4), align 4, !tbaa !5
  %60 = sdiv i32 %59, %.03958
  store i32 %60, ptr getelementptr inbounds (i8, ptr @xcalcs, i64 8), align 8, !tbaa !12
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @repeats, i64 4), align 4, !tbaa !5
  store i32 %61, ptr @runrepeats, align 4, !tbaa !5
  %62 = icmp sgt i32 %59, 0
  br i1 %62, label %.lr.ph.preheader.1, label %._crit_edge.1

.lr.ph.preheader.1:                               ; preds = %._crit_edge53
  %wide.trip.count.1 = zext nneg i32 %59 to i64
  %min.iters.check72 = icmp ult i32 %59, 8
  br i1 %min.iters.check72, label %.lr.ph.1.preheader, label %vector.ph73

vector.ph73:                                      ; preds = %.lr.ph.preheader.1
  %n.vec75 = and i64 %wide.trip.count.1, 2147483640
  br label %vector.body77

vector.body77:                                    ; preds = %vector.body77, %vector.ph73
  %index78 = phi i64 [ 0, %vector.ph73 ], [ %index.next79, %vector.body77 ]
  %63 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %index78
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %63, align 16, !tbaa !13
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %64, align 16, !tbaa !13
  %index.next79 = add nuw i64 %index78, 8
  %65 = icmp eq i64 %index.next79, %n.vec75
  br i1 %65, label %middle.block70, label %vector.body77, !llvm.loop !28

middle.block70:                                   ; preds = %vector.body77
  %cmp.n80 = icmp eq i64 %n.vec75, %wide.trip.count.1
  br i1 %cmp.n80, label %._crit_edge.1, label %.lr.ph.1.preheader

.lr.ph.1.preheader:                               ; preds = %middle.block70, %.lr.ph.preheader.1
  %indvars.iv.1.ph = phi i64 [ 0, %.lr.ph.preheader.1 ], [ %n.vec75, %middle.block70 ]
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1.preheader, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ %indvars.iv.1.ph, %.lr.ph.1.preheader ]
  %66 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %indvars.iv.1
  store float 0x3FEFFFFDE0000000, ptr %66, align 4, !tbaa !13
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !29

._crit_edge.1:                                    ; preds = %.lr.ph.1, %middle.block70, %._crit_edge53
  tail call void (...) @start_time() #5
  br label %67

67:                                               ; preds = %67, %._crit_edge.1
  %.04348.1 = phi i64 [ 0, %._crit_edge.1 ], [ %72, %67 ]
  %68 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.04348.1
  %69 = load ptr, ptr @attrt, align 8, !tbaa !20
  %70 = inttoptr i64 %.04348.1 to ptr
  %71 = tail call i32 @pthread_create(ptr noundef nonnull %68, ptr noundef %69, ptr noundef nonnull @runTests, ptr noundef %70) #5
  %72 = add nuw nsw i64 %.04348.1, 1
  %exitcond60.1.not = icmp eq i64 %72, %11
  br i1 %exitcond60.1.not, label %.preheader.1, label %67, !llvm.loop !21

.preheader.1:                                     ; preds = %67, %.preheader.1
  %.14449.1 = phi i64 [ %76, %.preheader.1 ], [ 0, %67 ]
  %73 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.14449.1
  %74 = load i64, ptr %73, align 8, !tbaa !22
  %75 = tail call i32 @pthread_join(i64 noundef %74, ptr noundef null) #5
  %76 = add nuw nsw i64 %.14449.1, 1
  %exitcond61.1.not = icmp eq i64 %76, %11
  br i1 %exitcond61.1.not, label %77, label %.preheader.1, !llvm.loop !24

77:                                               ; preds = %.preheader.1
  tail call void (...) @end_time() #5
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @words, i64 4), align 4, !tbaa !5
  %79 = sitofp i32 %78 to float
  %80 = load i32, ptr @opwd, align 4, !tbaa !5
  %81 = sitofp i32 %80 to float
  %82 = fmul float %79, %81
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @repeats, i64 4), align 4, !tbaa !5
  %84 = sitofp i32 %83 to float
  %85 = fmul float %82, %84
  %86 = fdiv float %85, 1.000000e+06
  %87 = load double, ptr @secs, align 8, !tbaa !25
  %88 = fptrunc double %87 to float
  %89 = fdiv float %86, %88
  %90 = load float, ptr @x_cpu, align 16, !tbaa !13
  %91 = fmul float %90, 1.000000e+05
  %92 = fptosi float %91 to i32
  %93 = getelementptr inbounds [36 x i32], ptr %1, i64 0, i64 %indvars.iv.next65
  store i32 %92, ptr %93, align 4, !tbaa !5
  %94 = icmp sgt i32 %78, 1
  br i1 %94, label %.lr.ph52.1, label %._crit_edge53.1

.lr.ph52.1:                                       ; preds = %77, %100
  %.150.1 = phi i32 [ %101, %100 ], [ 1, %77 ]
  %95 = sext i32 %.150.1 to i64
  %96 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !13
  %98 = fcmp une float %90, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %.lr.ph52.1
  store i32 0, ptr %93, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %99, %.lr.ph52.1
  %.2.1 = phi i32 [ %78, %99 ], [ %.150.1, %.lr.ph52.1 ]
  %101 = add nsw i32 %.2.1, 1
  %102 = icmp slt i32 %101, %78
  br i1 %102, label %.lr.ph52.1, label %._crit_edge53.1, !llvm.loop !27

._crit_edge53.1:                                  ; preds = %100, %77
  %103 = fptosi float %89 to i32
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %103)
  %indvars.iv.next65.1 = add nsw i64 %12, 2
  store ptr @x_cpu, ptr @xcalcs, align 8, !tbaa !9
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @words, i64 8), align 4, !tbaa !5
  %106 = sdiv i32 %105, %.03958
  store i32 %106, ptr getelementptr inbounds (i8, ptr @xcalcs, i64 8), align 8, !tbaa !12
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @repeats, i64 8), align 4, !tbaa !5
  store i32 %107, ptr @runrepeats, align 4, !tbaa !5
  %108 = icmp sgt i32 %105, 0
  br i1 %108, label %.lr.ph.preheader.2, label %._crit_edge.2

.lr.ph.preheader.2:                               ; preds = %._crit_edge53.1
  %wide.trip.count.2 = zext nneg i32 %105 to i64
  %min.iters.check = icmp ult i32 %105, 8
  br i1 %min.iters.check, label %.lr.ph.2.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader.2
  %n.vec = and i64 %wide.trip.count.2, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %109 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %109, align 16, !tbaa !13
  store <4 x float> <float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000, float 0x3FEFFFFDE0000000>, ptr %110, align 16, !tbaa !13
  %index.next = add nuw i64 %index, 8
  %111 = icmp eq i64 %index.next, %n.vec
  br i1 %111, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count.2
  br i1 %cmp.n, label %._crit_edge.2, label %.lr.ph.2.preheader

.lr.ph.2.preheader:                               ; preds = %middle.block, %.lr.ph.preheader.2
  %indvars.iv.2.ph = phi i64 [ 0, %.lr.ph.preheader.2 ], [ %n.vec, %middle.block ]
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.lr.ph.2.preheader, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph.2 ], [ %indvars.iv.2.ph, %.lr.ph.2.preheader ]
  %112 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %indvars.iv.2
  store float 0x3FEFFFFDE0000000, ptr %112, align 4, !tbaa !13
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, %wide.trip.count.2
  br i1 %exitcond.2.not, label %._crit_edge.2, label %.lr.ph.2, !llvm.loop !31

._crit_edge.2:                                    ; preds = %.lr.ph.2, %middle.block, %._crit_edge53.1
  tail call void (...) @start_time() #5
  br label %113

113:                                              ; preds = %113, %._crit_edge.2
  %.04348.2 = phi i64 [ 0, %._crit_edge.2 ], [ %118, %113 ]
  %114 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.04348.2
  %115 = load ptr, ptr @attrt, align 8, !tbaa !20
  %116 = inttoptr i64 %.04348.2 to ptr
  %117 = tail call i32 @pthread_create(ptr noundef nonnull %114, ptr noundef %115, ptr noundef nonnull @runTests, ptr noundef %116) #5
  %118 = add nuw nsw i64 %.04348.2, 1
  %exitcond60.2.not = icmp eq i64 %118, %11
  br i1 %exitcond60.2.not, label %.preheader.2, label %113, !llvm.loop !21

.preheader.2:                                     ; preds = %113, %.preheader.2
  %.14449.2 = phi i64 [ %122, %.preheader.2 ], [ 0, %113 ]
  %119 = getelementptr inbounds [100 x i64], ptr @tid, i64 0, i64 %.14449.2
  %120 = load i64, ptr %119, align 8, !tbaa !22
  %121 = tail call i32 @pthread_join(i64 noundef %120, ptr noundef null) #5
  %122 = add nuw nsw i64 %.14449.2, 1
  %exitcond61.2.not = icmp eq i64 %122, %11
  br i1 %exitcond61.2.not, label %123, label %.preheader.2, !llvm.loop !24

123:                                              ; preds = %.preheader.2
  tail call void (...) @end_time() #5
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @words, i64 8), align 4, !tbaa !5
  %125 = sitofp i32 %124 to float
  %126 = load i32, ptr @opwd, align 4, !tbaa !5
  %127 = sitofp i32 %126 to float
  %128 = fmul float %125, %127
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @repeats, i64 8), align 4, !tbaa !5
  %130 = sitofp i32 %129 to float
  %131 = fmul float %128, %130
  %132 = fdiv float %131, 1.000000e+06
  %133 = load double, ptr @secs, align 8, !tbaa !25
  %134 = fptrunc double %133 to float
  %135 = fdiv float %132, %134
  %136 = load float, ptr @x_cpu, align 16, !tbaa !13
  %137 = fmul float %136, 1.000000e+05
  %138 = fptosi float %137 to i32
  %139 = getelementptr inbounds [36 x i32], ptr %1, i64 0, i64 %indvars.iv.next65.1
  store i32 %138, ptr %139, align 4, !tbaa !5
  %140 = icmp sgt i32 %124, 1
  br i1 %140, label %.lr.ph52.2, label %._crit_edge53.2

.lr.ph52.2:                                       ; preds = %123, %146
  %.150.2 = phi i32 [ %147, %146 ], [ 1, %123 ]
  %141 = sext i32 %.150.2 to i64
  %142 = getelementptr inbounds [4000000 x float], ptr @x_cpu, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !13
  %144 = fcmp une float %136, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %.lr.ph52.2
  store i32 0, ptr %139, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %145, %.lr.ph52.2
  %.2.2 = phi i32 [ %124, %145 ], [ %.150.2, %.lr.ph52.2 ]
  %147 = add nsw i32 %.2.2, 1
  %148 = icmp slt i32 %147, %124
  br i1 %148, label %.lr.ph52.2, label %._crit_edge53.2, !llvm.loop !27

._crit_edge53.2:                                  ; preds = %146, %123
  %149 = fptosi float %135 to i32
  %150 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %149)
  %indvars.iv.next65.2 = add nsw i64 %12, 3
  %151 = load i32, ptr @part, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr @part, align 4, !tbaa !5
  %153 = icmp slt i32 %151, 1
  br i1 %153, label %.preheader46, label %154, !llvm.loop !32

154:                                              ; preds = %._crit_edge53.2
  %155 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %156 = shl nuw nsw i32 %.03958, 1
  %157 = icmp ult i32 %.03958, 5
  br i1 %157, label %9, label %158, !llvm.loop !33

158:                                              ; preds = %154
  %159 = load i32, ptr %1, align 16, !tbaa !5
  %160 = getelementptr inbounds i8, ptr %1, i64 4
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %1, i64 8
  %163 = load i32, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %1, i64 12
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %1, i64 16
  %167 = load i32, ptr %166, align 16, !tbaa !5
  %168 = getelementptr inbounds i8, ptr %1, i64 20
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %1, i64 24
  %171 = load i32, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds i8, ptr %1, i64 28
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %1, i64 32
  %175 = load i32, ptr %174, align 16, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %1, i64 36
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %1, i64 40
  %179 = load i32, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %1, i64 44
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %1, i64 48
  %183 = load i32, ptr %182, align 16, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %1, i64 52
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %1, i64 56
  %187 = load i32, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %1, i64 60
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %1, i64 64
  %191 = load i32, ptr %190, align 16, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %1, i64 68
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = getelementptr inbounds i8, ptr %1, i64 72
  %195 = load i32, ptr %194, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %1, i64 76
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %1, i64 80
  %199 = load i32, ptr %198, align 16, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %1, i64 84
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = getelementptr inbounds i8, ptr %1, i64 88
  %203 = load i32, ptr %202, align 8, !tbaa !5
  %204 = getelementptr inbounds i8, ptr %1, i64 92
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %159, i32 noundef %161, i32 noundef %163, i32 noundef %165, i32 noundef %167, i32 noundef %169, i32 noundef %171, i32 noundef %173, i32 noundef %175, i32 noundef %177, i32 noundef %179, i32 noundef %181, i32 noundef %183, i32 noundef %185, i32 noundef %187, i32 noundef %189, i32 noundef %191, i32 noundef %193, i32 noundef %195, i32 noundef %197, i32 noundef %199, i32 noundef %201, i32 noundef %203, i32 noundef %205)
  tail call void (...) @local_time() #5
  %207 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @timeday)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %1) #5
  ret i32 0
}

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

declare void @local_time(...) local_unnamed_addr #3

declare void @start_time(...) local_unnamed_addr #3

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

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @end_time(...) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !6, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !18, !17}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !16}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !16}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16, !17, !18}
!29 = distinct !{!29, !16, !18, !17}
!30 = distinct !{!30, !16, !17, !18}
!31 = distinct !{!31, !16, !18, !17}
!32 = distinct !{!32, !16}
!33 = distinct !{!33, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass