; LLVM IR from stivalaa/EstimNetDirected :: src/Random123-1.09/examples (time_thread)

; 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.r123array1x64 = type { [1 x i64] }
%struct.r123array2x64 = type { [2 x i64] }
%struct.ThreadData_philox2x64_10 = type { i32, %struct.r123array1x64, %struct.r123array2x64, ptr }
%struct.test_info = type { double, i32, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_philox2x64_10 = type { ptr, ptr }

@stderr = external global ptr, align 8
@verbose = external dso_local global i32, align 4
@debug = external dso_local global i32, align 4
@numtrials = external dso_local global i32, align 4
@sec_per_trial = external dso_local global double, align 8
@stdout = external global ptr, align 8
@thread_info = external hidden global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@progname = external dso_local global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@thread_count = external hidden global i32, align 4
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [74 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

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

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

declare i32 @fflush(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @printline_philox2x64_10(i64, i64, i64, ptr noundef, i64 noundef) #5

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

; Function Attrs: nounwind willreturn memory(none)
declare i64 @pthread_self() #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

; 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) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @timer(ptr noundef) #8

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @thread_run_philox2x64_10(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @philox2x64_10(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i32 noundef %5, ptr noundef %6) #5 {
  %8 = alloca %struct.r123array1x64, align 8
  %9 = alloca %struct.r123array2x64, align 8
  %10 = alloca %struct.r123array2x64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca %struct.ThreadData_philox2x64_10, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  store i64 %0, ptr %31, align 8
  %32 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  store i64 %1, ptr %32, align 8
  %33 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  store i64 %2, ptr %33, align 8
  %34 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  store i64 %3, ptr %34, align 8
  %35 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  store i64 %4, ptr %35, align 8
  store i32 %5, ptr %11, align 4, !tbaa !5
  store ptr %6, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  store ptr @.str.48, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %36 = load i32, ptr @numtrials, align 4, !tbaa !5
  store i32 %36, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %37 = call i64 @pthread_self() #10
  store i64 %37, ptr %23, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  br label %38

38:                                               ; preds = %7
  %39 = load ptr, ptr %12, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.test_info, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = sext i32 %41 to i64
  %43 = mul i64 16, %42
  %44 = call noalias ptr @malloc(i64 noundef %43) #11
  store ptr %44, ptr @thread_info, align 8, !tbaa !9
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %38
  br label %54

47:                                               ; preds = %38
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = load ptr, ptr @progname, align 8, !tbaa !9
  %50 = call ptr @__errno_location() #10
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = call ptr @strerror(i32 noundef %51) #9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.19, ptr noundef %49, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef %52) #9
  call void @exit(i32 noundef 1) #12
  unreachable

54:                                               ; preds = %46
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.test_info, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = sext i32 %60 to i64
  %62 = mul i64 16, %61
  %63 = call noalias ptr @malloc(i64 noundef %62) #11
  store ptr %63, ptr %22, align 8, !tbaa !9
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  br label %73

66:                                               ; preds = %57
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = load ptr, ptr @progname, align 8, !tbaa !9
  %69 = call ptr @__errno_location() #10
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = call ptr @strerror(i32 noundef %70) #9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.19, ptr noundef %68, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.49, ptr noundef @.str.22, ptr noundef %71) #9
  call void @exit(i32 noundef 1) #12
  unreachable

73:                                               ; preds = %65
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %12, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.test_info, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !15
  %80 = sext i32 %79 to i64
  %81 = mul i64 8, %80
  %82 = call noalias ptr @malloc(i64 noundef %81) #11
  store ptr %82, ptr %24, align 8, !tbaa !9
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %85

84:                                               ; preds = %76
  br label %92

85:                                               ; preds = %76
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = load ptr, ptr @progname, align 8, !tbaa !9
  %88 = call ptr @__errno_location() #10
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call ptr @strerror(i32 noundef %89) #9
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.19, ptr noundef %87, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.24, ptr noundef @.str.22, ptr noundef %90) #9
  call void @exit(i32 noundef 1) #12
  unreachable

92:                                               ; preds = %84
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %127, %94
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.test_info, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !15
  %100 = icmp slt i32 %96, %99
  br i1 %100, label %101, label %130

101:                                              ; preds = %95
  %102 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.ThreadInfo, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct.ThreadInfo, ptr %105, i32 0, i32 0
  store volatile i32 0, ptr %106, align 8, !tbaa !17
  %107 = load i64, ptr %23, align 8, !tbaa !13
  %108 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.ThreadInfo, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.ThreadInfo, ptr %111, i32 0, i32 1
  store volatile i64 %107, ptr %112, align 8, !tbaa !19
  %113 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.ThreadInfo, ptr %113, i64 %115
  %117 = load ptr, ptr %22, align 8, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %120, i32 0, i32 1
  store ptr %116, ptr %121, align 8, !tbaa !20
  %122 = load ptr, ptr %22, align 8, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %122, i64 %124
  %126 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %125, i32 0, i32 0
  store ptr %21, ptr %126, align 8, !tbaa !22
  br label %127

127:                                              ; preds = %101
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  br label %95, !llvm.loop !23

130:                                              ; preds = %95
  %131 = load ptr, ptr %12, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.test_info, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !15
  store i32 %133, ptr @thread_count, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %130
  %135 = load ptr, ptr %12, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.test_info, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !15
  %138 = sext i32 %137 to i64
  %139 = mul i64 16, %138
  %140 = call noalias ptr @malloc(i64 noundef %139) #11
  %141 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  store ptr %140, ptr %141, align 8, !tbaa !25
  %142 = icmp ne ptr %140, null
  br i1 %142, label %143, label %144

143:                                              ; preds = %134
  br label %151

144:                                              ; preds = %134
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = load ptr, ptr @progname, align 8, !tbaa !9
  %147 = call ptr @__errno_location() #10
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = call ptr @strerror(i32 noundef %148) #9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.19, ptr noundef %146, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.46, ptr noundef @.str.22, ptr noundef %149) #9
  call void @exit(i32 noundef 1) #12
  unreachable

151:                                              ; preds = %143
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  %154 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %154, ptr align 8 %8, i64 8, i1 false), !tbaa.struct !29
  %155 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %155, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !31
  %156 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  store i32 0, ptr %156, align 8, !tbaa !32
  store i32 -2, ptr %16, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %492, %153
  %158 = load i32, ptr %16, align 4, !tbaa !5
  %159 = load i32, ptr %17, align 4, !tbaa !5
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %161, label %495

161:                                              ; preds = %157
  %162 = load i32, ptr %16, align 4, !tbaa !5
  %163 = icmp eq i32 %162, -2
  br i1 %163, label %164, label %196

164:                                              ; preds = %161
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %193

167:                                              ; preds = %164
  %168 = load ptr, ptr %12, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.test_info, ptr %168, i32 0, i32 0
  %170 = load double, ptr %169, align 8, !tbaa !33
  %171 = fcmp une double %170, 0.000000e+00
  br i1 %171, label %172, label %177

172:                                              ; preds = %167
  %173 = load ptr, ptr %12, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.test_info, ptr %173, i32 0, i32 0
  %175 = load double, ptr %174, align 8, !tbaa !33
  %176 = fmul double %175, 1.000000e-03
  br label %178

177:                                              ; preds = %167
  br label %178

178:                                              ; preds = %177, %172
  %179 = phi double [ %176, %172 ], [ 1.000000e+05, %177 ]
  %180 = fptoui double %179 to i32
  store i32 %180, ptr %11, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %178
  %182 = load i32, ptr @debug, align 4, !tbaa !5
  %183 = icmp slt i32 %182, 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %181
  br label %190

185:                                              ; preds = %181
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %186)
  %188 = load ptr, ptr @stdout, align 8, !tbaa !9
  %189 = call i32 @fflush(ptr noundef %188)
  br label %190

190:                                              ; preds = %185, %184
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %164
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  store i32 %194, ptr %195, align 8, !tbaa !32
  br label %323

196:                                              ; preds = %161
  %197 = load i32, ptr %16, align 4, !tbaa !5
  %198 = icmp eq i32 %197, -1
  br i1 %198, label %199, label %224

199:                                              ; preds = %196
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = icmp ugt i32 %200, 1
  br i1 %201, label %202, label %222

202:                                              ; preds = %199
  %203 = load i32, ptr %11, align 4, !tbaa !5
  %204 = uitofp i32 %203 to double
  %205 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %206 = fmul double %204, %205
  %207 = load double, ptr %19, align 8, !tbaa !11
  %208 = fdiv double %206, %207
  %209 = fptoui double %208 to i32
  store i32 %209, ptr %11, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %202
  %211 = load i32, ptr @debug, align 4, !tbaa !5
  %212 = icmp slt i32 %211, 1
  br i1 %212, label %213, label %214

213:                                              ; preds = %210
  br label %219

214:                                              ; preds = %210
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %215)
  %217 = load ptr, ptr @stdout, align 8, !tbaa !9
  %218 = call i32 @fflush(ptr noundef %217)
  br label %219

219:                                              ; preds = %214, %213
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221, %199
  %223 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  store i32 1, ptr %223, align 8, !tbaa !32
  br label %322

224:                                              ; preds = %196
  %225 = load i32, ptr %16, align 4, !tbaa !5
  %226 = icmp eq i32 %225, 0
  br i1 %226, label %227, label %321

227:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %284, %227
  %229 = load i32, ptr %26, align 4, !tbaa !5
  %230 = icmp slt i32 %229, 2
  br i1 %230, label %231, label %287

231:                                              ; preds = %228
  %232 = getelementptr inbounds %struct.r123array2x64, ptr %10, i32 0, i32 0
  %233 = load i32, ptr %26, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [2 x i64], ptr %232, i64 0, i64 %234
  %236 = load i64, ptr %235, align 8, !tbaa !13
  %237 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  %238 = load ptr, ptr %237, align 8, !tbaa !25
  %239 = getelementptr inbounds %struct.r123array2x64, ptr %238, i64 0
  %240 = getelementptr inbounds %struct.r123array2x64, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %26, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [2 x i64], ptr %240, i64 0, i64 %242
  %244 = load i64, ptr %243, align 8, !tbaa !13
  %245 = icmp ne i64 %236, %244
  br i1 %245, label %246, label %269

246:                                              ; preds = %231
  %247 = load ptr, ptr %13, align 8, !tbaa !9
  %248 = load i32, ptr %26, align 4, !tbaa !5
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %247, i32 noundef %248)
  %250 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %251 = load i64, ptr %250, align 8
  %252 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %253 = load i64, ptr %252, align 8
  %254 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %255 = load i64, ptr %254, align 8
  call void @printline_philox2x64_10(i64 %251, i64 %253, i64 %255, ptr noundef %10, i64 noundef 1)
  %256 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %257 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  %258 = load ptr, ptr %257, align 8, !tbaa !25
  %259 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %260 = load i64, ptr %259, align 8
  %261 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %262 = load i64, ptr %261, align 8
  %263 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %264 = load i64, ptr %263, align 8
  call void @printline_philox2x64_10(i64 %260, i64 %262, i64 %264, ptr noundef %258, i64 noundef 1)
  %265 = load i32, ptr @debug, align 4, !tbaa !5
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %268, label %267

267:                                              ; preds = %246
  call void @exit(i32 noundef 1) #12
  unreachable

268:                                              ; preds = %246
  br label %287

269:                                              ; preds = %231
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr @debug, align 4, !tbaa !5
  %272 = icmp slt i32 %271, 1
  br i1 %272, label %273, label %274

273:                                              ; preds = %270
  br label %280

274:                                              ; preds = %270
  %275 = load ptr, ptr %13, align 8, !tbaa !9
  %276 = load i32, ptr %26, align 4, !tbaa !5
  %277 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %275, i32 noundef %276)
  %278 = load ptr, ptr @stdout, align 8, !tbaa !9
  %279 = call i32 @fflush(ptr noundef %278)
  br label %280

280:                                              ; preds = %274, %273
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %26, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %26, align 4, !tbaa !5
  br label %228, !llvm.loop !34

287:                                              ; preds = %268, %228
  %288 = load double, ptr %19, align 8, !tbaa !11
  store double %288, ptr %18, align 8, !tbaa !11
  %289 = load i32, ptr @verbose, align 4, !tbaa !5
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %317

291:                                              ; preds = %287
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr @debug, align 4, !tbaa !5
  %294 = icmp slt i32 %293, 1
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  br label %302

296:                                              ; preds = %292
  %297 = load ptr, ptr %13, align 8, !tbaa !9
  %298 = load double, ptr %18, align 8, !tbaa !11
  %299 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %297, double noundef %298)
  %300 = load ptr, ptr @stdout, align 8, !tbaa !9
  %301 = call i32 @fflush(ptr noundef %300)
  br label %302

302:                                              ; preds = %296, %295
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  %305 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  %306 = load ptr, ptr %305, align 8, !tbaa !25
  %307 = load ptr, ptr %12, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.test_info, ptr %307, i32 0, i32 1
  %309 = load i32, ptr %308, align 8, !tbaa !15
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %312 = load i64, ptr %311, align 8
  %313 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %314 = load i64, ptr %313, align 8
  %315 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %316 = load i64, ptr %315, align 8
  call void @printline_philox2x64_10(i64 %312, i64 %314, i64 %316, ptr noundef %306, i64 noundef %310)
  br label %317

317:                                              ; preds = %304, %287
  %318 = load i32, ptr %11, align 4, !tbaa !5
  %319 = add i32 %318, 1
  %320 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  store i32 %319, ptr %320, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %321

321:                                              ; preds = %317, %224
  br label %322

322:                                              ; preds = %321, %222
  br label %323

323:                                              ; preds = %322, %193
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr @debug, align 4, !tbaa !5
  %326 = icmp slt i32 %325, 1
  br i1 %326, label %327, label %328

327:                                              ; preds = %324
  br label %333

328:                                              ; preds = %324
  %329 = load ptr, ptr %13, align 8, !tbaa !9
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %329)
  %331 = load ptr, ptr @stdout, align 8, !tbaa !9
  %332 = call i32 @fflush(ptr noundef %331)
  br label %333

333:                                              ; preds = %328, %327
  br label %334

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334
  %336 = call double @timer(ptr noundef %14)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %378, %335
  %338 = load i32, ptr %15, align 4, !tbaa !5
  %339 = load ptr, ptr %12, align 8, !tbaa !9
  %340 = getelementptr inbounds %struct.test_info, ptr %339, i32 0, i32 1
  %341 = load i32, ptr %340, align 8, !tbaa !15
  %342 = icmp slt i32 %338, %341
  br i1 %342, label %343, label %381

343:                                              ; preds = %337
  br label %344

344:                                              ; preds = %343
  %345 = load ptr, ptr %24, align 8, !tbaa !9
  %346 = load i32, ptr %15, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds i64, ptr %345, i64 %347
  %349 = load ptr, ptr %22, align 8, !tbaa !9
  %350 = load i32, ptr %15, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %349, i64 %351
  %353 = call i32 @pthread_create(ptr noundef %348, ptr noundef null, ptr noundef @thread_run_philox2x64_10, ptr noundef %352) #9
  %354 = icmp eq i32 %353, 0
  br i1 %354, label %355, label %356

355:                                              ; preds = %344
  br label %363

356:                                              ; preds = %344
  %357 = load ptr, ptr @stderr, align 8, !tbaa !9
  %358 = load ptr, ptr @progname, align 8, !tbaa !9
  %359 = call ptr @__errno_location() #10
  %360 = load i32, ptr %359, align 4, !tbaa !5
  %361 = call ptr @strerror(i32 noundef %360) #9
  %362 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %357, ptr noundef @.str.33, ptr noundef %358, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.50, ptr noundef @.str.22, ptr noundef %361) #9
  call void @exit(i32 noundef 1) #12
  unreachable

363:                                              ; preds = %355
  br label %364

364:                                              ; preds = %363
  br label %365

365:                                              ; preds = %364
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr @debug, align 4, !tbaa !5
  %368 = icmp slt i32 %367, 1
  br i1 %368, label %369, label %370

369:                                              ; preds = %366
  br label %375

370:                                              ; preds = %366
  %371 = load i32, ptr %15, align 4, !tbaa !5
  %372 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %371)
  %373 = load ptr, ptr @stdout, align 8, !tbaa !9
  %374 = call i32 @fflush(ptr noundef %373)
  br label %375

375:                                              ; preds = %370, %369
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %15, align 4, !tbaa !5
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %15, align 4, !tbaa !5
  br label %337, !llvm.loop !35

381:                                              ; preds = %337
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %382

382:                                              ; preds = %418, %381
  %383 = load i32, ptr %15, align 4, !tbaa !5
  %384 = load i32, ptr @thread_count, align 4, !tbaa !5
  %385 = icmp slt i32 %383, %384
  br i1 %385, label %386, label %421

386:                                              ; preds = %382
  br label %387

387:                                              ; preds = %386
  %388 = load ptr, ptr %24, align 8, !tbaa !9
  %389 = load i32, ptr %15, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds i64, ptr %388, i64 %390
  %392 = load i64, ptr %391, align 8, !tbaa !13
  %393 = call i32 @pthread_join(i64 noundef %392, ptr noundef %25)
  %394 = icmp eq i32 %393, 0
  br i1 %394, label %395, label %396

395:                                              ; preds = %387
  br label %403

396:                                              ; preds = %387
  %397 = load ptr, ptr @stderr, align 8, !tbaa !9
  %398 = load ptr, ptr @progname, align 8, !tbaa !9
  %399 = call ptr @__errno_location() #10
  %400 = load i32, ptr %399, align 4, !tbaa !5
  %401 = call ptr @strerror(i32 noundef %400) #9
  %402 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.33, ptr noundef %398, ptr noundef @.str.20, i32 noundef 58, ptr noundef @.str.36, ptr noundef @.str.22, ptr noundef %401) #9
  call void @exit(i32 noundef 1) #12
  unreachable

403:                                              ; preds = %395
  br label %404

404:                                              ; preds = %403
  br label %405

405:                                              ; preds = %404
  br label %406

406:                                              ; preds = %405
  %407 = load i32, ptr @debug, align 4, !tbaa !5
  %408 = icmp slt i32 %407, 1
  br i1 %408, label %409, label %410

409:                                              ; preds = %406
  br label %415

410:                                              ; preds = %406
  %411 = load i32, ptr %15, align 4, !tbaa !5
  %412 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %411)
  %413 = load ptr, ptr @stdout, align 8, !tbaa !9
  %414 = call i32 @fflush(ptr noundef %413)
  br label %415

415:                                              ; preds = %410, %409
  br label %416

416:                                              ; preds = %415
  br label %417

417:                                              ; preds = %416
  br label %418

418:                                              ; preds = %417
  %419 = load i32, ptr %15, align 4, !tbaa !5
  %420 = add nsw i32 %419, 1
  store i32 %420, ptr %15, align 4, !tbaa !5
  br label %382, !llvm.loop !36

421:                                              ; preds = %382
  %422 = call double @timer(ptr noundef %14)
  store double %422, ptr %19, align 8, !tbaa !11
  br label %423

423:                                              ; preds = %421
  %424 = load i32, ptr @debug, align 4, !tbaa !5
  %425 = icmp slt i32 %424, 1
  br i1 %425, label %426, label %427

426:                                              ; preds = %423
  br label %433

427:                                              ; preds = %423
  %428 = load i32, ptr %16, align 4, !tbaa !5
  %429 = load double, ptr %19, align 8, !tbaa !11
  %430 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %428, double noundef %429)
  %431 = load ptr, ptr @stdout, align 8, !tbaa !9
  %432 = call i32 @fflush(ptr noundef %431)
  br label %433

433:                                              ; preds = %427, %426
  br label %434

434:                                              ; preds = %433
  br label %435

435:                                              ; preds = %434
  br label %436

436:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 1, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %437

437:                                              ; preds = %466, %436
  %438 = load i32, ptr %28, align 4, !tbaa !5
  %439 = load ptr, ptr %12, align 8, !tbaa !9
  %440 = getelementptr inbounds %struct.test_info, ptr %439, i32 0, i32 1
  %441 = load i32, ptr %440, align 8, !tbaa !15
  %442 = icmp ult i32 %438, %441
  br i1 %442, label %443, label %469

443:                                              ; preds = %437
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %444

444:                                              ; preds = %462, %443
  %445 = load i32, ptr %29, align 4, !tbaa !5
  %446 = icmp ult i32 %445, 2
  br i1 %446, label %447, label %465

447:                                              ; preds = %444
  %448 = load i32, ptr %27, align 4, !tbaa !5
  %449 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  %450 = load ptr, ptr %449, align 8, !tbaa !25
  %451 = load i32, ptr %28, align 4, !tbaa !5
  %452 = zext i32 %451 to i64
  %453 = getelementptr inbounds %struct.r123array2x64, ptr %450, i64 %452
  %454 = getelementptr inbounds %struct.r123array2x64, ptr %453, i32 0, i32 0
  %455 = load i32, ptr %29, align 4, !tbaa !5
  %456 = zext i32 %455 to i64
  %457 = getelementptr inbounds [2 x i64], ptr %454, i64 0, i64 %456
  %458 = load i64, ptr %457, align 8, !tbaa !13
  %459 = icmp eq i64 %458, 0
  %460 = zext i1 %459 to i32
  %461 = and i32 %448, %460
  store i32 %461, ptr %27, align 4, !tbaa !5
  br label %462

462:                                              ; preds = %447
  %463 = load i32, ptr %29, align 4, !tbaa !5
  %464 = add i32 %463, 1
  store i32 %464, ptr %29, align 4, !tbaa !5
  br label %444, !llvm.loop !37

465:                                              ; preds = %444
  br label %466

466:                                              ; preds = %465
  %467 = load i32, ptr %28, align 4, !tbaa !5
  %468 = add i32 %467, 1
  store i32 %468, ptr %28, align 4, !tbaa !5
  br label %437, !llvm.loop !38

469:                                              ; preds = %437
  %470 = load i32, ptr %27, align 4, !tbaa !5
  %471 = icmp ne i32 %470, 0
  br i1 %471, label %472, label %480

472:                                              ; preds = %469
  %473 = load ptr, ptr @stderr, align 8, !tbaa !9
  %474 = load ptr, ptr @progname, align 8, !tbaa !9
  %475 = load ptr, ptr %12, align 8, !tbaa !9
  %476 = getelementptr inbounds %struct.test_info, ptr %475, i32 0, i32 1
  %477 = load i32, ptr %476, align 8, !tbaa !15
  %478 = sext i32 %477 to i64
  %479 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %473, ptr noundef @.str.39, ptr noundef %474, i64 noundef %478, i32 noundef 2, i32 noundef 8) #9
  br label %480

480:                                              ; preds = %472, %469
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %481

481:                                              ; preds = %480
  br label %482

482:                                              ; preds = %481
  %483 = load i32, ptr %16, align 4, !tbaa !5
  %484 = icmp eq i32 %483, 0
  br i1 %484, label %489, label %485

485:                                              ; preds = %482
  %486 = load double, ptr %19, align 8, !tbaa !11
  %487 = load double, ptr %20, align 8, !tbaa !11
  %488 = fcmp olt double %486, %487
  br i1 %488, label %489, label %491

489:                                              ; preds = %485, %482
  %490 = load double, ptr %19, align 8, !tbaa !11
  store double %490, ptr %20, align 8, !tbaa !11
  br label %491

491:                                              ; preds = %489, %485
  br label %492

492:                                              ; preds = %491
  %493 = load i32, ptr %16, align 4, !tbaa !5
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %16, align 4, !tbaa !5
  br label %157, !llvm.loop !39

495:                                              ; preds = %157
  %496 = load i32, ptr %11, align 4, !tbaa !5
  %497 = icmp ugt i32 %496, 1
  br i1 %497, label %498, label %533

498:                                              ; preds = %495
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %499 = load double, ptr %20, align 8, !tbaa !11
  %500 = load double, ptr %18, align 8, !tbaa !11
  %501 = fsub double %499, %500
  %502 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  %503 = load i32, ptr %502, align 8, !tbaa !32
  %504 = uitofp i32 %503 to double
  %505 = fsub double %504, 1.000000e+00
  %506 = load ptr, ptr %12, align 8, !tbaa !9
  %507 = getelementptr inbounds %struct.test_info, ptr %506, i32 0, i32 1
  %508 = load i32, ptr %507, align 8, !tbaa !15
  %509 = sitofp i32 %508 to double
  %510 = fmul double %505, %509
  %511 = fmul double %510, 1.600000e+01
  %512 = fdiv double %501, %511
  store double %512, ptr %30, align 8, !tbaa !11
  %513 = load ptr, ptr %13, align 8, !tbaa !9
  %514 = load double, ptr %30, align 8, !tbaa !11
  %515 = load ptr, ptr %12, align 8, !tbaa !9
  %516 = getelementptr inbounds %struct.test_info, ptr %515, i32 0, i32 0
  %517 = load double, ptr %516, align 8, !tbaa !33
  %518 = fmul double %514, %517
  %519 = load ptr, ptr %12, align 8, !tbaa !9
  %520 = getelementptr inbounds %struct.test_info, ptr %519, i32 0, i32 1
  %521 = load i32, ptr %520, align 8, !tbaa !15
  %522 = sitofp i32 %521 to double
  %523 = fmul double %518, %522
  %524 = load double, ptr %30, align 8, !tbaa !11
  %525 = fdiv double 1.000000e-09, %524
  %526 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 0
  %527 = load i32, ptr %526, align 8, !tbaa !32
  %528 = load double, ptr %20, align 8, !tbaa !11
  %529 = load double, ptr %18, align 8, !tbaa !11
  %530 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %513, double noundef %523, double noundef %525, i32 noundef 16, i32 noundef %527, double noundef %528, double noundef %529)
  %531 = load ptr, ptr @stdout, align 8, !tbaa !9
  %532 = call i32 @fflush(ptr noundef %531)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %533

533:                                              ; preds = %498, %495
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %534 = load ptr, ptr @thread_info, align 8, !tbaa !9
  call void @free(ptr noundef %534) #9
  store ptr null, ptr @thread_info, align 8, !tbaa !9
  %535 = getelementptr inbounds %struct.ThreadData_philox2x64_10, ptr %21, i32 0, i32 3
  %536 = load ptr, ptr %535, align 8, !tbaa !25
  call void @free(ptr noundef %536) #9
  %537 = load ptr, ptr %22, align 8, !tbaa !9
  call void @free(ptr noundef %537) #9
  %538 = load ptr, ptr %24, align 8, !tbaa !9
  call void @free(ptr noundef %538) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind willreturn memory(none) "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 = { "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 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { inlinehint 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"test_info", !12, i64 0, !6, i64 8, !10, i64 16}
!17 = !{!18, !6, i64 0}
!18 = !{!"", !6, i64 0, !14, i64 8}
!19 = !{!18, !14, i64 8}
!20 = !{!21, !10, i64 8}
!21 = !{!"", !10, i64 0, !10, i64 8}
!22 = !{!21, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !10, i64 32}
!26 = !{!"", !6, i64 0, !27, i64 8, !28, i64 16, !10, i64 32}
!27 = !{!"r123array1x64", !7, i64 0}
!28 = !{!"r123array2x64", !7, i64 0}
!29 = !{i64 0, i64 8, !30}
!30 = !{!7, !7, i64 0}
!31 = !{i64 0, i64 16, !30}
!32 = !{!26, !6, i64 0}
!33 = !{!16, !12, i64 0}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}


; 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.r123array2x64 = type { [2 x i64] }
%struct.ThreadData_philox2x64_10 = type { i32, %struct.r123array1x64, %struct.r123array2x64, ptr }
%struct.r123array1x64 = type { [1 x i64] }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_philox2x64_10 = type { ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@verbose = external dso_local local_unnamed_addr global i32, align 4
@debug = external dso_local local_unnamed_addr global i32, align 4
@numtrials = external dso_local local_unnamed_addr global i32, align 4
@sec_per_trial = external dso_local local_unnamed_addr global double, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@thread_info = external hidden local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@progname = external dso_local local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@thread_count = external hidden local_unnamed_addr global i32, align 4
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [74 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @printline_philox2x64_10(i64, i64, i64, ptr noundef, i64 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 nosync nounwind willreturn memory(none)
declare i64 @pthread_self() local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #6

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @timer(ptr noundef) local_unnamed_addr #8

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @thread_run_philox2x64_10(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @philox2x64_10(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i32 noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #4 {
  %8 = alloca %struct.r123array2x64, align 8
  %9 = alloca double, align 8
  %10 = alloca %struct.ThreadData_philox2x64_10, align 8
  %11 = alloca ptr, align 8
  store i64 %3, ptr %8, align 8
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %4, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %13 = load i32, ptr @numtrials, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #10
  %14 = tail call i64 @pthread_self() #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %.fr = freeze i32 %16
  %17 = sext i32 %.fr to i64
  %18 = shl nsw i64 %17, 4
  %19 = tail call noalias ptr @malloc(i64 noundef %18) #12
  store ptr %19, ptr @thread_info, align 8, !tbaa !13
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %20, label %27

20:                                               ; preds = %7
  %21 = load ptr, ptr @stderr, align 8, !tbaa !13
  %22 = load ptr, ptr @progname, align 8, !tbaa !13
  %23 = tail call ptr @__errno_location() #11
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = tail call ptr @strerror(i32 noundef %24) #10
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.19, ptr noundef %22, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, ptr noundef %25) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

27:                                               ; preds = %7
  %28 = tail call noalias ptr @malloc(i64 noundef %18) #12
  %.not112 = icmp eq ptr %28, null
  br i1 %.not112, label %29, label %36

29:                                               ; preds = %27
  %30 = load ptr, ptr @stderr, align 8, !tbaa !13
  %31 = load ptr, ptr @progname, align 8, !tbaa !13
  %32 = tail call ptr @__errno_location() #11
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = tail call ptr @strerror(i32 noundef %33) #10
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.19, ptr noundef %31, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.22, ptr noundef %34) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

36:                                               ; preds = %27
  %37 = shl nsw i64 %17, 3
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #12
  %.not113 = icmp eq ptr %38, null
  br i1 %.not113, label %41, label %.preheader121

.preheader121:                                    ; preds = %36
  %39 = icmp sgt i32 %.fr, 0
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader121
  %wide.trip.count = zext i32 %.fr to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %40 = icmp eq i32 %.fr, 1
  br i1 %40, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.lr.ph

41:                                               ; preds = %36
  %42 = load ptr, ptr @stderr, align 8, !tbaa !13
  %43 = load ptr, ptr @progname, align 8, !tbaa !13
  %44 = tail call ptr @__errno_location() #11
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = tail call ptr @strerror(i32 noundef %45) #10
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.19, ptr noundef %43, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.22, ptr noundef %46) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %48 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv
  store volatile i32 0, ptr %48, align 8, !tbaa !14
  %49 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv, i32 1
  store volatile i64 %14, ptr %49, align 8, !tbaa !17
  %50 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %28, i64 %indvars.iv
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  store ptr %48, ptr %51, align 8, !tbaa !18
  store ptr %10, ptr %50, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %52 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv.next
  store volatile i32 0, ptr %52, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv.next, i32 1
  store volatile i64 %14, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %28, i64 %indvars.iv.next
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %52, ptr %55, align 8, !tbaa !18
  store ptr %10, ptr %54, align 8, !tbaa !20
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %56 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv.unr
  store volatile i32 0, ptr %56, align 8, !tbaa !14
  %57 = getelementptr inbounds %struct.ThreadInfo, ptr %19, i64 %indvars.iv.unr, i32 1
  store volatile i64 %14, ptr %57, align 8, !tbaa !17
  %58 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %28, i64 %indvars.iv.unr
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  store ptr %56, ptr %59, align 8, !tbaa !18
  store ptr %10, ptr %58, align 8, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader121
  store i32 %.fr, ptr @thread_count, align 4, !tbaa !5
  %60 = call noalias ptr @malloc(i64 noundef %18) #12
  %61 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %60, ptr %61, align 8, !tbaa !23
  %.not114 = icmp eq ptr %60, null
  br i1 %.not114, label %62, label %69

62:                                               ; preds = %._crit_edge
  %63 = load ptr, ptr @stderr, align 8, !tbaa !13
  %64 = load ptr, ptr @progname, align 8, !tbaa !13
  %65 = tail call ptr @__errno_location() #11
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = call ptr @strerror(i32 noundef %66) #10
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.19, ptr noundef %64, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.22, ptr noundef %67) #13
  call void @exit(i32 noundef 1) #14
  unreachable

69:                                               ; preds = %._crit_edge
  %70 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %0, ptr %70, align 8, !tbaa !27
  %71 = getelementptr inbounds i8, ptr %10, i64 16
  store i64 %1, ptr %71, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 24
  store i64 %2, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !27
  store i32 0, ptr %10, align 8, !tbaa !28
  %72 = icmp sgt i32 %13, -2
  br i1 %72, label %.lr.ph152, label %._crit_edge153

.lr.ph152:                                        ; preds = %69, %242
  %.0150 = phi i32 [ %.3, %242 ], [ %5, %69 ]
  %.0101149 = phi i32 [ %245, %242 ], [ -2, %69 ]
  %.0102148 = phi double [ %.1103, %242 ], [ 0.000000e+00, %69 ]
  %.0104147 = phi double [ %.1105, %242 ], [ 0.000000e+00, %69 ]
  %.0106146 = phi double [ %203, %242 ], [ 0.000000e+00, %69 ]
  switch i32 %.0101149, label %144 [
    i32 -2, label %76
    i32 -1, label %91
    i32 0, label %.preheader120.preheader
  ]

.preheader120.preheader:                          ; preds = %.lr.ph152
  %73 = load i64, ptr %8, align 8, !tbaa !29
  %74 = load ptr, ptr %61, align 8, !tbaa !23
  %75 = load i64, ptr %74, align 8, !tbaa !29
  %.not115 = icmp eq i64 %73, %75
  br i1 %.not115, label %112, label %106

76:                                               ; preds = %.lr.ph152
  %77 = icmp eq i32 %.0150, 0
  br i1 %77, label %78, label %90

78:                                               ; preds = %76
  %79 = load double, ptr %6, align 8, !tbaa !30
  %80 = fcmp une double %79, 0.000000e+00
  %81 = fmul double %79, 1.000000e-03
  %82 = select i1 %80, double %81, double 1.000000e+05
  %83 = fptoui double %82 to i32
  %84 = load i32, ptr @debug, align 4, !tbaa !5
  %85 = icmp slt i32 %84, 1
  br i1 %85, label %90, label %86

86:                                               ; preds = %78
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %83)
  %88 = load ptr, ptr @stdout, align 8, !tbaa !13
  %89 = call i32 @fflush(ptr noundef %88)
  br label %90

90:                                               ; preds = %86, %78, %76
  %.1 = phi i32 [ %83, %78 ], [ %83, %86 ], [ %.0150, %76 ]
  store i32 %.1, ptr %10, align 8, !tbaa !28
  br label %144

91:                                               ; preds = %.lr.ph152
  %92 = icmp ugt i32 %.0150, 1
  br i1 %92, label %93, label %105

93:                                               ; preds = %91
  %94 = uitofp i32 %.0150 to double
  %95 = load double, ptr @sec_per_trial, align 8, !tbaa !31
  %96 = fmul double %95, %94
  %97 = fdiv double %96, %.0106146
  %98 = fptoui double %97 to i32
  %99 = load i32, ptr @debug, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 1
  br i1 %100, label %105, label %101

101:                                              ; preds = %93
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i32 noundef %98)
  %103 = load ptr, ptr @stdout, align 8, !tbaa !13
  %104 = call i32 @fflush(ptr noundef %103)
  br label %105

105:                                              ; preds = %101, %93, %91
  %.2 = phi i32 [ %98, %93 ], [ %98, %101 ], [ %.0150, %91 ]
  store i32 1, ptr %10, align 8, !tbaa !28
  br label %144

106:                                              ; preds = %.preheader120.1, %.preheader120.preheader
  %.097133.lcssa.wide = phi i32 [ 0, %.preheader120.preheader ], [ 1, %.preheader120.1 ]
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.48, i32 noundef %.097133.lcssa.wide)
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef nonnull %8, i64 noundef 1)
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %109 = load ptr, ptr %61, align 8, !tbaa !23
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef %109, i64 noundef 1)
  %110 = load i32, ptr @debug, align 4, !tbaa !5
  %.not116 = icmp eq i32 %110, 0
  br i1 %.not116, label %111, label %.loopexit

111:                                              ; preds = %106
  call void @exit(i32 noundef 1) #14
  unreachable

112:                                              ; preds = %.preheader120.preheader
  %113 = load i32, ptr @debug, align 4, !tbaa !5
  %114 = icmp slt i32 %113, 1
  br i1 %114, label %.preheader120.1, label %115

115:                                              ; preds = %112
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.48, i32 noundef 0)
  %117 = load ptr, ptr @stdout, align 8, !tbaa !13
  %118 = call i32 @fflush(ptr noundef %117)
  %.pre = load ptr, ptr %61, align 8, !tbaa !23
  br label %.preheader120.1

.preheader120.1:                                  ; preds = %112, %115
  %119 = phi ptr [ %74, %112 ], [ %.pre, %115 ]
  %120 = load i64, ptr %12, align 8, !tbaa !29
  %121 = getelementptr inbounds i8, ptr %119, i64 8
  %122 = load i64, ptr %121, align 8, !tbaa !29
  %.not115.1 = icmp eq i64 %120, %122
  br i1 %.not115.1, label %123, label %106

123:                                              ; preds = %.preheader120.1
  %124 = load i32, ptr @debug, align 4, !tbaa !5
  %125 = icmp slt i32 %124, 1
  br i1 %125, label %.loopexit, label %126

126:                                              ; preds = %123
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.48, i32 noundef 1)
  %128 = load ptr, ptr @stdout, align 8, !tbaa !13
  %129 = call i32 @fflush(ptr noundef %128)
  br label %.loopexit

.loopexit:                                        ; preds = %123, %126, %106
  %130 = load i32, ptr @verbose, align 4, !tbaa !5
  %.not117 = icmp eq i32 %130, 0
  br i1 %.not117, label %142, label %131

131:                                              ; preds = %.loopexit
  %132 = load i32, ptr @debug, align 4, !tbaa !5
  %133 = icmp slt i32 %132, 1
  br i1 %133, label %138, label %134

134:                                              ; preds = %131
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, ptr noundef nonnull @.str.48, double noundef %.0106146)
  %136 = load ptr, ptr @stdout, align 8, !tbaa !13
  %137 = call i32 @fflush(ptr noundef %136)
  br label %138

138:                                              ; preds = %131, %134
  %139 = load ptr, ptr %61, align 8, !tbaa !23
  %140 = load i32, ptr %15, align 8, !tbaa !9
  %141 = sext i32 %140 to i64
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef %139, i64 noundef %141)
  br label %142

142:                                              ; preds = %138, %.loopexit
  %143 = add i32 %.0150, 1
  store i32 %143, ptr %10, align 8, !tbaa !28
  br label %144

144:                                              ; preds = %.lr.ph152, %90, %142, %105
  %.1103 = phi double [ %.0102148, %90 ], [ %.0102148, %105 ], [ %.0106146, %142 ], [ %.0102148, %.lr.ph152 ]
  %.3 = phi i32 [ %.1, %90 ], [ %.2, %105 ], [ %.0150, %142 ], [ %.0150, %.lr.ph152 ]
  %145 = load i32, ptr @debug, align 4, !tbaa !5
  %146 = icmp slt i32 %145, 1
  br i1 %146, label %151, label %147

147:                                              ; preds = %144
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull @.str.48)
  %149 = load ptr, ptr @stdout, align 8, !tbaa !13
  %150 = call i32 @fflush(ptr noundef %149)
  br label %151

151:                                              ; preds = %144, %147
  %152 = call double @timer(ptr noundef nonnull %9)
  %153 = load i32, ptr %15, align 8, !tbaa !9
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %.lr.ph136, label %.preheader119

.preheader119:                                    ; preds = %176, %151
  %155 = load i32, ptr @thread_count, align 4, !tbaa !5
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %.lr.ph138, label %._crit_edge139

.lr.ph136:                                        ; preds = %151, %176
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %176 ], [ 0, %151 ]
  %157 = getelementptr inbounds i64, ptr %38, i64 %indvars.iv167
  %158 = getelementptr inbounds %struct.ThreadArg_philox2x64_10, ptr %28, i64 %indvars.iv167
  %159 = call i32 @pthread_create(ptr noundef nonnull %157, ptr noundef null, ptr noundef nonnull @thread_run_philox2x64_10, ptr noundef nonnull %158) #10
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %168, label %161

161:                                              ; preds = %.lr.ph136
  %162 = load ptr, ptr @stderr, align 8, !tbaa !13
  %163 = load ptr, ptr @progname, align 8, !tbaa !13
  %164 = tail call ptr @__errno_location() #11
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = call ptr @strerror(i32 noundef %165) #10
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef nonnull @.str.33, ptr noundef %163, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.22, ptr noundef %166) #13
  call void @exit(i32 noundef 1) #14
  unreachable

168:                                              ; preds = %.lr.ph136
  %169 = load i32, ptr @debug, align 4, !tbaa !5
  %170 = icmp slt i32 %169, 1
  br i1 %170, label %176, label %171

171:                                              ; preds = %168
  %172 = trunc nuw nsw i64 %indvars.iv167 to i32
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %172)
  %174 = load ptr, ptr @stdout, align 8, !tbaa !13
  %175 = call i32 @fflush(ptr noundef %174)
  br label %176

176:                                              ; preds = %171, %168
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %177 = load i32, ptr %15, align 8, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = icmp slt i64 %indvars.iv.next168, %178
  br i1 %179, label %.lr.ph136, label %.preheader119, !llvm.loop !32

.lr.ph138:                                        ; preds = %.preheader119, %199
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %199 ], [ 0, %.preheader119 ]
  %180 = getelementptr inbounds i64, ptr %38, i64 %indvars.iv170
  %181 = load i64, ptr %180, align 8, !tbaa !29
  %182 = call i32 @pthread_join(i64 noundef %181, ptr noundef nonnull %11) #10
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %191, label %184

184:                                              ; preds = %.lr.ph138
  %185 = load ptr, ptr @stderr, align 8, !tbaa !13
  %186 = load ptr, ptr @progname, align 8, !tbaa !13
  %187 = tail call ptr @__errno_location() #11
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = call ptr @strerror(i32 noundef %188) #10
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef nonnull @.str.33, ptr noundef %186, ptr noundef nonnull @.str.20, i32 noundef 58, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.22, ptr noundef %189) #13
  call void @exit(i32 noundef 1) #14
  unreachable

191:                                              ; preds = %.lr.ph138
  %192 = load i32, ptr @debug, align 4, !tbaa !5
  %193 = icmp slt i32 %192, 1
  br i1 %193, label %199, label %194

194:                                              ; preds = %191
  %195 = trunc nuw nsw i64 %indvars.iv170 to i32
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, i32 noundef %195)
  %197 = load ptr, ptr @stdout, align 8, !tbaa !13
  %198 = call i32 @fflush(ptr noundef %197)
  br label %199

199:                                              ; preds = %194, %191
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %200 = load i32, ptr @thread_count, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = icmp slt i64 %indvars.iv.next171, %201
  br i1 %202, label %.lr.ph138, label %._crit_edge139, !llvm.loop !33

._crit_edge139:                                   ; preds = %199, %.preheader119
  %203 = call double @timer(ptr noundef nonnull %9)
  %204 = load i32, ptr @debug, align 4, !tbaa !5
  %205 = icmp slt i32 %204, 1
  br i1 %205, label %210, label %206

206:                                              ; preds = %._crit_edge139
  %207 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, i32 noundef %.0101149, double noundef %203)
  %208 = load ptr, ptr @stdout, align 8, !tbaa !13
  %209 = call i32 @fflush(ptr noundef %208)
  br label %210

210:                                              ; preds = %206, %._crit_edge139
  %211 = load i32, ptr %15, align 8, !tbaa !9
  %.not157 = icmp eq i32 %211, 0
  br i1 %.not157, label %._crit_edge144.thread, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %210
  %212 = load ptr, ptr %61, align 8, !tbaa !23
  %wide.trip.count179 = zext i32 %211 to i64
  %xtraiter196 = and i64 %wide.trip.count179, 1
  %213 = icmp eq i32 %211, 1
  br i1 %213, label %._crit_edge144.unr-lcssa, label %.preheader.lr.ph.new

.preheader.lr.ph.new:                             ; preds = %.preheader.lr.ph
  %unroll_iter199 = and i64 %wide.trip.count179, 4294967294
  br label %.preheader

.preheader:                                       ; preds = %.preheader, %.preheader.lr.ph.new
  %indvars.iv176 = phi i64 [ 0, %.preheader.lr.ph.new ], [ %indvars.iv.next177.1, %.preheader ]
  %.095142 = phi i32 [ 1, %.preheader.lr.ph.new ], [ %229, %.preheader ]
  %niter200 = phi i64 [ 0, %.preheader.lr.ph.new ], [ %niter200.next.1, %.preheader ]
  %214 = getelementptr inbounds %struct.r123array2x64, ptr %212, i64 %indvars.iv176
  %215 = load i64, ptr %214, align 8, !tbaa !29
  %216 = icmp eq i64 %215, 0
  %217 = getelementptr inbounds i8, ptr %214, i64 8
  %218 = load i64, ptr %217, align 8, !tbaa !29
  %219 = icmp eq i64 %218, 0
  %indvars.iv.next177 = or disjoint i64 %indvars.iv176, 1
  %220 = getelementptr inbounds %struct.r123array2x64, ptr %212, i64 %indvars.iv.next177
  %221 = load i64, ptr %220, align 8, !tbaa !29
  %222 = icmp eq i64 %221, 0
  %223 = getelementptr inbounds i8, ptr %220, i64 8
  %224 = load i64, ptr %223, align 8, !tbaa !29
  %225 = icmp eq i64 %224, 0
  %226 = select i1 %225, i1 %222, i1 false
  %227 = select i1 %226, i1 %219, i1 false
  %228 = select i1 %227, i1 %216, i1 false
  %229 = select i1 %228, i32 %.095142, i32 0
  %indvars.iv.next177.1 = add nuw nsw i64 %indvars.iv176, 2
  %niter200.next.1 = add i64 %niter200, 2
  %niter200.ncmp.1 = icmp eq i64 %niter200.next.1, %unroll_iter199
  br i1 %niter200.ncmp.1, label %._crit_edge144.unr-lcssa, label %.preheader, !llvm.loop !34

._crit_edge144.unr-lcssa:                         ; preds = %.preheader, %.preheader.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.preheader.lr.ph ], [ %229, %.preheader ]
  %indvars.iv176.unr = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next177.1, %.preheader ]
  %.095142.unr = phi i32 [ 1, %.preheader.lr.ph ], [ %229, %.preheader ]
  %lcmp.mod197.not = icmp eq i64 %xtraiter196, 0
  br i1 %lcmp.mod197.not, label %._crit_edge144, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge144.unr-lcssa
  %230 = getelementptr inbounds %struct.r123array2x64, ptr %212, i64 %indvars.iv176.unr
  %231 = load i64, ptr %230, align 8, !tbaa !29
  %232 = icmp eq i64 %231, 0
  %233 = getelementptr inbounds i8, ptr %230, i64 8
  %234 = load i64, ptr %233, align 8, !tbaa !29
  %235 = icmp eq i64 %234, 0
  %236 = select i1 %235, i1 %232, i1 false
  %237 = select i1 %236, i32 %.095142.unr, i32 0
  br label %._crit_edge144

._crit_edge144:                                   ; preds = %._crit_edge144.unr-lcssa, %.preheader.epil
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge144.unr-lcssa ], [ %237, %.preheader.epil ]
  %.not118 = icmp eq i32 %.lcssa, 0
  br i1 %.not118, label %242, label %._crit_edge144.thread

._crit_edge144.thread:                            ; preds = %210, %._crit_edge144
  %238 = load ptr, ptr @stderr, align 8, !tbaa !13
  %239 = load ptr, ptr @progname, align 8, !tbaa !13
  %240 = sext i32 %211 to i64
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef nonnull @.str.39, ptr noundef %239, i64 noundef %240, i32 noundef 2, i32 noundef 8) #13
  br label %242

242:                                              ; preds = %._crit_edge144.thread, %._crit_edge144
  %243 = icmp eq i32 %.0101149, 0
  %244 = fcmp olt double %203, %.0104147
  %or.cond = select i1 %243, i1 true, i1 %244
  %.1105 = select i1 %or.cond, double %203, double %.0104147
  %245 = add nsw i32 %.0101149, 1
  %exitcond181.not = icmp eq i32 %245, %13
  br i1 %exitcond181.not, label %._crit_edge153, label %.lr.ph152, !llvm.loop !35

._crit_edge153:                                   ; preds = %242, %69
  %.0104.lcssa = phi double [ 0.000000e+00, %69 ], [ %.1105, %242 ]
  %.0102.lcssa = phi double [ 0.000000e+00, %69 ], [ %.1103, %242 ]
  %.0.lcssa = phi i32 [ %5, %69 ], [ %.3, %242 ]
  %246 = icmp ugt i32 %.0.lcssa, 1
  br i1 %246, label %247, label %264

247:                                              ; preds = %._crit_edge153
  %248 = fsub double %.0104.lcssa, %.0102.lcssa
  %249 = load i32, ptr %10, align 8, !tbaa !28
  %250 = uitofp i32 %249 to double
  %251 = fadd double %250, -1.000000e+00
  %252 = load i32, ptr %15, align 8, !tbaa !9
  %253 = sitofp i32 %252 to double
  %254 = fmul double %251, %253
  %255 = fmul double %254, 1.600000e+01
  %256 = fdiv double %248, %255
  %257 = load double, ptr %6, align 8, !tbaa !30
  %258 = fmul double %257, %256
  %259 = fmul double %258, %253
  %260 = fdiv double 1.000000e-09, %256
  %261 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef nonnull @.str.48, double noundef %259, double noundef %260, i32 noundef 16, i32 noundef %249, double noundef %.0104.lcssa, double noundef %.0102.lcssa)
  %262 = load ptr, ptr @stdout, align 8, !tbaa !13
  %263 = call i32 @fflush(ptr noundef %262)
  br label %264

264:                                              ; preds = %247, %._crit_edge153
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %265 = load ptr, ptr @thread_info, align 8, !tbaa !13
  call void @free(ptr noundef %265) #10
  store ptr null, ptr @thread_info, align 8, !tbaa !13
  %266 = load ptr, ptr %61, align 8, !tbaa !23
  call void @free(ptr noundef %266) #10
  call void @free(ptr noundef %28) #10
  call void @free(ptr noundef %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 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 = { 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 #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 = { inlinehint 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 #9 = { "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 }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { cold nounwind }
attributes #14 = { noreturn 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, !6, i64 8}
!10 = !{!"test_info", !11, i64 0, !6, i64 8, !12, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"", !6, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !16, i64 8}
!18 = !{!19, !12, i64 8}
!19 = !{!"", !12, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !12, i64 32}
!24 = !{!"", !6, i64 0, !25, i64 8, !26, i64 16, !12, i64 32}
!25 = !{!"r123array1x64", !7, i64 0}
!26 = !{!"r123array2x64", !7, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{!24, !6, i64 0}
!29 = !{!16, !16, i64 0}
!30 = !{!10, !11, i64 0}
!31 = !{!11, !11, i64 0}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}


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