; 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.r123array2x64 = type { [2 x i64] }
%struct.ThreadData_threefry2x64_13 = type { i32, %struct.r123array2x64, %struct.r123array2x64, ptr }
%struct.test_info = type { double, i32, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_threefry2x64_13 = 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.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [76 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_threefry2x64_13(i64, 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_threefry2x64_13(ptr noundef) #5

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

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

48:                                               ; preds = %40
  br label %56

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

56:                                               ; preds = %48
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

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

67:                                               ; preds = %59
  br label %75

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

75:                                               ; preds = %67
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  br label %78

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

86:                                               ; preds = %78
  br label %94

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

94:                                               ; preds = %86
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %129, %96
  %98 = load i32, ptr %16, align 4, !tbaa !5
  %99 = load ptr, ptr %13, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.test_info, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 8, !tbaa !15
  %102 = icmp slt i32 %98, %101
  br i1 %102, label %103, label %132

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

129:                                              ; preds = %103
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %16, align 4, !tbaa !5
  br label %97, !llvm.loop !23

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

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

145:                                              ; preds = %136
  br label %153

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

153:                                              ; preds = %145
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %156, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !28
  %157 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %157, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !28
  %158 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  store i32 0, ptr %158, align 8, !tbaa !30
  store i32 -2, ptr %17, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %500, %155
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = load i32, ptr %18, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %163, label %503

163:                                              ; preds = %159
  %164 = load i32, ptr %17, align 4, !tbaa !5
  %165 = icmp eq i32 %164, -2
  br i1 %165, label %166, label %198

166:                                              ; preds = %163
  %167 = load i32, ptr %12, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %195

169:                                              ; preds = %166
  %170 = load ptr, ptr %13, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct.test_info, ptr %170, i32 0, i32 0
  %172 = load double, ptr %171, align 8, !tbaa !31
  %173 = fcmp une double %172, 0.000000e+00
  br i1 %173, label %174, label %179

174:                                              ; preds = %169
  %175 = load ptr, ptr %13, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.test_info, ptr %175, i32 0, i32 0
  %177 = load double, ptr %176, align 8, !tbaa !31
  %178 = fmul double %177, 1.000000e-03
  br label %180

179:                                              ; preds = %169
  br label %180

180:                                              ; preds = %179, %174
  %181 = phi double [ %178, %174 ], [ 1.000000e+05, %179 ]
  %182 = fptoui double %181 to i32
  store i32 %182, ptr %12, align 4, !tbaa !5
  br label %183

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

186:                                              ; preds = %183
  br label %192

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

192:                                              ; preds = %187, %186
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194, %166
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  store i32 %196, ptr %197, align 8, !tbaa !30
  br label %331

198:                                              ; preds = %163
  %199 = load i32, ptr %17, align 4, !tbaa !5
  %200 = icmp eq i32 %199, -1
  br i1 %200, label %201, label %226

201:                                              ; preds = %198
  %202 = load i32, ptr %12, align 4, !tbaa !5
  %203 = icmp ugt i32 %202, 1
  br i1 %203, label %204, label %224

204:                                              ; preds = %201
  %205 = load i32, ptr %12, align 4, !tbaa !5
  %206 = uitofp i32 %205 to double
  %207 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %208 = fmul double %206, %207
  %209 = load double, ptr %20, align 8, !tbaa !11
  %210 = fdiv double %208, %209
  %211 = fptoui double %210 to i32
  store i32 %211, ptr %12, align 4, !tbaa !5
  br label %212

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

215:                                              ; preds = %212
  br label %221

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

221:                                              ; preds = %216, %215
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223, %201
  %225 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  store i32 1, ptr %225, align 8, !tbaa !30
  br label %330

226:                                              ; preds = %198
  %227 = load i32, ptr %17, align 4, !tbaa !5
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %329

229:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %230

230:                                              ; preds = %290, %229
  %231 = load i32, ptr %27, align 4, !tbaa !5
  %232 = icmp slt i32 %231, 2
  br i1 %232, label %233, label %293

233:                                              ; preds = %230
  %234 = getelementptr inbounds %struct.r123array2x64, ptr %11, i32 0, i32 0
  %235 = load i32, ptr %27, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [2 x i64], ptr %234, i64 0, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !13
  %239 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 3
  %240 = load ptr, ptr %239, align 8, !tbaa !25
  %241 = getelementptr inbounds %struct.r123array2x64, ptr %240, i64 0
  %242 = getelementptr inbounds %struct.r123array2x64, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %27, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [2 x i64], ptr %242, i64 0, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !13
  %247 = icmp ne i64 %238, %246
  br i1 %247, label %248, label %275

248:                                              ; preds = %233
  %249 = load ptr, ptr %14, align 8, !tbaa !9
  %250 = load i32, ptr %27, align 4, !tbaa !5
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %249, i32 noundef %250)
  %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
  %256 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %257 = load i64, ptr %256, align 8
  %258 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %259 = load i64, ptr %258, align 8
  call void @printline_threefry2x64_13(i64 %253, i64 %255, i64 %257, i64 %259, ptr noundef %11, i64 noundef 1)
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %261 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 3
  %262 = load ptr, ptr %261, align 8, !tbaa !25
  %263 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %264 = load i64, ptr %263, align 8
  %265 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %266 = load i64, ptr %265, align 8
  %267 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %268 = load i64, ptr %267, align 8
  %269 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %270 = load i64, ptr %269, align 8
  call void @printline_threefry2x64_13(i64 %264, i64 %266, i64 %268, i64 %270, ptr noundef %262, i64 noundef 1)
  %271 = load i32, ptr @debug, align 4, !tbaa !5
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %274, label %273

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

274:                                              ; preds = %248
  br label %293

275:                                              ; preds = %233
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr @debug, align 4, !tbaa !5
  %278 = icmp slt i32 %277, 1
  br i1 %278, label %279, label %280

279:                                              ; preds = %276
  br label %286

280:                                              ; preds = %276
  %281 = load ptr, ptr %14, align 8, !tbaa !9
  %282 = load i32, ptr %27, align 4, !tbaa !5
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %281, i32 noundef %282)
  %284 = load ptr, ptr @stdout, align 8, !tbaa !9
  %285 = call i32 @fflush(ptr noundef %284)
  br label %286

286:                                              ; preds = %280, %279
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %27, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %27, align 4, !tbaa !5
  br label %230, !llvm.loop !32

293:                                              ; preds = %274, %230
  %294 = load double, ptr %20, align 8, !tbaa !11
  store double %294, ptr %19, align 8, !tbaa !11
  %295 = load i32, ptr @verbose, align 4, !tbaa !5
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %325

297:                                              ; preds = %293
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr @debug, align 4, !tbaa !5
  %300 = icmp slt i32 %299, 1
  br i1 %300, label %301, label %302

301:                                              ; preds = %298
  br label %308

302:                                              ; preds = %298
  %303 = load ptr, ptr %14, align 8, !tbaa !9
  %304 = load double, ptr %19, align 8, !tbaa !11
  %305 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %303, double noundef %304)
  %306 = load ptr, ptr @stdout, align 8, !tbaa !9
  %307 = call i32 @fflush(ptr noundef %306)
  br label %308

308:                                              ; preds = %302, %301
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  %311 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 3
  %312 = load ptr, ptr %311, align 8, !tbaa !25
  %313 = load ptr, ptr %13, align 8, !tbaa !9
  %314 = getelementptr inbounds %struct.test_info, ptr %313, i32 0, i32 1
  %315 = load i32, ptr %314, align 8, !tbaa !15
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %318 = load i64, ptr %317, align 8
  %319 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %320 = load i64, ptr %319, align 8
  %321 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %322 = load i64, ptr %321, align 8
  %323 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %324 = load i64, ptr %323, align 8
  call void @printline_threefry2x64_13(i64 %318, i64 %320, i64 %322, i64 %324, ptr noundef %312, i64 noundef %316)
  br label %325

325:                                              ; preds = %310, %293
  %326 = load i32, ptr %12, align 4, !tbaa !5
  %327 = add i32 %326, 1
  %328 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  store i32 %327, ptr %328, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %329

329:                                              ; preds = %325, %226
  br label %330

330:                                              ; preds = %329, %224
  br label %331

331:                                              ; preds = %330, %195
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr @debug, align 4, !tbaa !5
  %334 = icmp slt i32 %333, 1
  br i1 %334, label %335, label %336

335:                                              ; preds = %332
  br label %341

336:                                              ; preds = %332
  %337 = load ptr, ptr %14, align 8, !tbaa !9
  %338 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %337)
  %339 = load ptr, ptr @stdout, align 8, !tbaa !9
  %340 = call i32 @fflush(ptr noundef %339)
  br label %341

341:                                              ; preds = %336, %335
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  %344 = call double @timer(ptr noundef %15)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %345

345:                                              ; preds = %386, %343
  %346 = load i32, ptr %16, align 4, !tbaa !5
  %347 = load ptr, ptr %13, align 8, !tbaa !9
  %348 = getelementptr inbounds %struct.test_info, ptr %347, i32 0, i32 1
  %349 = load i32, ptr %348, align 8, !tbaa !15
  %350 = icmp slt i32 %346, %349
  br i1 %350, label %351, label %389

351:                                              ; preds = %345
  br label %352

352:                                              ; preds = %351
  %353 = load ptr, ptr %25, align 8, !tbaa !9
  %354 = load i32, ptr %16, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds i64, ptr %353, i64 %355
  %357 = load ptr, ptr %23, align 8, !tbaa !9
  %358 = load i32, ptr %16, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds %struct.ThreadArg_threefry2x64_13, ptr %357, i64 %359
  %361 = call i32 @pthread_create(ptr noundef %356, ptr noundef null, ptr noundef @thread_run_threefry2x64_13, ptr noundef %360) #9
  %362 = icmp eq i32 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %352
  br label %371

364:                                              ; preds = %352
  %365 = load ptr, ptr @stderr, align 8, !tbaa !9
  %366 = load ptr, ptr @progname, align 8, !tbaa !9
  %367 = call ptr @__errno_location() #10
  %368 = load i32, ptr %367, align 4, !tbaa !5
  %369 = call ptr @strerror(i32 noundef %368) #9
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef @.str.33, ptr noundef %366, ptr noundef @.str.20, i32 noundef 62, ptr noundef @.str.61, ptr noundef @.str.22, ptr noundef %369) #9
  call void @exit(i32 noundef 1) #12
  unreachable

371:                                              ; preds = %363
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr @debug, align 4, !tbaa !5
  %376 = icmp slt i32 %375, 1
  br i1 %376, label %377, label %378

377:                                              ; preds = %374
  br label %383

378:                                              ; preds = %374
  %379 = load i32, ptr %16, align 4, !tbaa !5
  %380 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %379)
  %381 = load ptr, ptr @stdout, align 8, !tbaa !9
  %382 = call i32 @fflush(ptr noundef %381)
  br label %383

383:                                              ; preds = %378, %377
  br label %384

384:                                              ; preds = %383
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  %387 = load i32, ptr %16, align 4, !tbaa !5
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %16, align 4, !tbaa !5
  br label %345, !llvm.loop !33

389:                                              ; preds = %345
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %390

390:                                              ; preds = %426, %389
  %391 = load i32, ptr %16, align 4, !tbaa !5
  %392 = load i32, ptr @thread_count, align 4, !tbaa !5
  %393 = icmp slt i32 %391, %392
  br i1 %393, label %394, label %429

394:                                              ; preds = %390
  br label %395

395:                                              ; preds = %394
  %396 = load ptr, ptr %25, align 8, !tbaa !9
  %397 = load i32, ptr %16, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds i64, ptr %396, i64 %398
  %400 = load i64, ptr %399, align 8, !tbaa !13
  %401 = call i32 @pthread_join(i64 noundef %400, ptr noundef %26)
  %402 = icmp eq i32 %401, 0
  br i1 %402, label %403, label %404

403:                                              ; preds = %395
  br label %411

404:                                              ; preds = %395
  %405 = load ptr, ptr @stderr, align 8, !tbaa !9
  %406 = load ptr, ptr @progname, align 8, !tbaa !9
  %407 = call ptr @__errno_location() #10
  %408 = load i32, ptr %407, align 4, !tbaa !5
  %409 = call ptr @strerror(i32 noundef %408) #9
  %410 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %405, ptr noundef @.str.33, ptr noundef %406, ptr noundef @.str.20, i32 noundef 62, ptr noundef @.str.36, ptr noundef @.str.22, ptr noundef %409) #9
  call void @exit(i32 noundef 1) #12
  unreachable

411:                                              ; preds = %403
  br label %412

412:                                              ; preds = %411
  br label %413

413:                                              ; preds = %412
  br label %414

414:                                              ; preds = %413
  %415 = load i32, ptr @debug, align 4, !tbaa !5
  %416 = icmp slt i32 %415, 1
  br i1 %416, label %417, label %418

417:                                              ; preds = %414
  br label %423

418:                                              ; preds = %414
  %419 = load i32, ptr %16, align 4, !tbaa !5
  %420 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %419)
  %421 = load ptr, ptr @stdout, align 8, !tbaa !9
  %422 = call i32 @fflush(ptr noundef %421)
  br label %423

423:                                              ; preds = %418, %417
  br label %424

424:                                              ; preds = %423
  br label %425

425:                                              ; preds = %424
  br label %426

426:                                              ; preds = %425
  %427 = load i32, ptr %16, align 4, !tbaa !5
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %16, align 4, !tbaa !5
  br label %390, !llvm.loop !34

429:                                              ; preds = %390
  %430 = call double @timer(ptr noundef %15)
  store double %430, ptr %20, align 8, !tbaa !11
  br label %431

431:                                              ; preds = %429
  %432 = load i32, ptr @debug, align 4, !tbaa !5
  %433 = icmp slt i32 %432, 1
  br i1 %433, label %434, label %435

434:                                              ; preds = %431
  br label %441

435:                                              ; preds = %431
  %436 = load i32, ptr %17, align 4, !tbaa !5
  %437 = load double, ptr %20, align 8, !tbaa !11
  %438 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %436, double noundef %437)
  %439 = load ptr, ptr @stdout, align 8, !tbaa !9
  %440 = call i32 @fflush(ptr noundef %439)
  br label %441

441:                                              ; preds = %435, %434
  br label %442

442:                                              ; preds = %441
  br label %443

443:                                              ; preds = %442
  br label %444

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

445:                                              ; preds = %474, %444
  %446 = load i32, ptr %29, align 4, !tbaa !5
  %447 = load ptr, ptr %13, align 8, !tbaa !9
  %448 = getelementptr inbounds %struct.test_info, ptr %447, i32 0, i32 1
  %449 = load i32, ptr %448, align 8, !tbaa !15
  %450 = icmp ult i32 %446, %449
  br i1 %450, label %451, label %477

451:                                              ; preds = %445
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %452

452:                                              ; preds = %470, %451
  %453 = load i32, ptr %30, align 4, !tbaa !5
  %454 = icmp ult i32 %453, 2
  br i1 %454, label %455, label %473

455:                                              ; preds = %452
  %456 = load i32, ptr %28, align 4, !tbaa !5
  %457 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 3
  %458 = load ptr, ptr %457, align 8, !tbaa !25
  %459 = load i32, ptr %29, align 4, !tbaa !5
  %460 = zext i32 %459 to i64
  %461 = getelementptr inbounds %struct.r123array2x64, ptr %458, i64 %460
  %462 = getelementptr inbounds %struct.r123array2x64, ptr %461, i32 0, i32 0
  %463 = load i32, ptr %30, align 4, !tbaa !5
  %464 = zext i32 %463 to i64
  %465 = getelementptr inbounds [2 x i64], ptr %462, i64 0, i64 %464
  %466 = load i64, ptr %465, align 8, !tbaa !13
  %467 = icmp eq i64 %466, 0
  %468 = zext i1 %467 to i32
  %469 = and i32 %456, %468
  store i32 %469, ptr %28, align 4, !tbaa !5
  br label %470

470:                                              ; preds = %455
  %471 = load i32, ptr %30, align 4, !tbaa !5
  %472 = add i32 %471, 1
  store i32 %472, ptr %30, align 4, !tbaa !5
  br label %452, !llvm.loop !35

473:                                              ; preds = %452
  br label %474

474:                                              ; preds = %473
  %475 = load i32, ptr %29, align 4, !tbaa !5
  %476 = add i32 %475, 1
  store i32 %476, ptr %29, align 4, !tbaa !5
  br label %445, !llvm.loop !36

477:                                              ; preds = %445
  %478 = load i32, ptr %28, align 4, !tbaa !5
  %479 = icmp ne i32 %478, 0
  br i1 %479, label %480, label %488

480:                                              ; preds = %477
  %481 = load ptr, ptr @stderr, align 8, !tbaa !9
  %482 = load ptr, ptr @progname, align 8, !tbaa !9
  %483 = load ptr, ptr %13, align 8, !tbaa !9
  %484 = getelementptr inbounds %struct.test_info, ptr %483, i32 0, i32 1
  %485 = load i32, ptr %484, align 8, !tbaa !15
  %486 = sext i32 %485 to i64
  %487 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %481, ptr noundef @.str.39, ptr noundef %482, i64 noundef %486, i32 noundef 2, i32 noundef 8) #9
  br label %488

488:                                              ; preds = %480, %477
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %489

489:                                              ; preds = %488
  br label %490

490:                                              ; preds = %489
  %491 = load i32, ptr %17, align 4, !tbaa !5
  %492 = icmp eq i32 %491, 0
  br i1 %492, label %497, label %493

493:                                              ; preds = %490
  %494 = load double, ptr %20, align 8, !tbaa !11
  %495 = load double, ptr %21, align 8, !tbaa !11
  %496 = fcmp olt double %494, %495
  br i1 %496, label %497, label %499

497:                                              ; preds = %493, %490
  %498 = load double, ptr %20, align 8, !tbaa !11
  store double %498, ptr %21, align 8, !tbaa !11
  br label %499

499:                                              ; preds = %497, %493
  br label %500

500:                                              ; preds = %499
  %501 = load i32, ptr %17, align 4, !tbaa !5
  %502 = add nsw i32 %501, 1
  store i32 %502, ptr %17, align 4, !tbaa !5
  br label %159, !llvm.loop !37

503:                                              ; preds = %159
  %504 = load i32, ptr %12, align 4, !tbaa !5
  %505 = icmp ugt i32 %504, 1
  br i1 %505, label %506, label %541

506:                                              ; preds = %503
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %507 = load double, ptr %21, align 8, !tbaa !11
  %508 = load double, ptr %19, align 8, !tbaa !11
  %509 = fsub double %507, %508
  %510 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  %511 = load i32, ptr %510, align 8, !tbaa !30
  %512 = uitofp i32 %511 to double
  %513 = fsub double %512, 1.000000e+00
  %514 = load ptr, ptr %13, align 8, !tbaa !9
  %515 = getelementptr inbounds %struct.test_info, ptr %514, i32 0, i32 1
  %516 = load i32, ptr %515, align 8, !tbaa !15
  %517 = sitofp i32 %516 to double
  %518 = fmul double %513, %517
  %519 = fmul double %518, 1.600000e+01
  %520 = fdiv double %509, %519
  store double %520, ptr %31, align 8, !tbaa !11
  %521 = load ptr, ptr %14, align 8, !tbaa !9
  %522 = load double, ptr %31, align 8, !tbaa !11
  %523 = load ptr, ptr %13, align 8, !tbaa !9
  %524 = getelementptr inbounds %struct.test_info, ptr %523, i32 0, i32 0
  %525 = load double, ptr %524, align 8, !tbaa !31
  %526 = fmul double %522, %525
  %527 = load ptr, ptr %13, align 8, !tbaa !9
  %528 = getelementptr inbounds %struct.test_info, ptr %527, i32 0, i32 1
  %529 = load i32, ptr %528, align 8, !tbaa !15
  %530 = sitofp i32 %529 to double
  %531 = fmul double %526, %530
  %532 = load double, ptr %31, align 8, !tbaa !11
  %533 = fdiv double 1.000000e-09, %532
  %534 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 0
  %535 = load i32, ptr %534, align 8, !tbaa !30
  %536 = load double, ptr %21, align 8, !tbaa !11
  %537 = load double, ptr %19, align 8, !tbaa !11
  %538 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %521, double noundef %531, double noundef %533, i32 noundef 16, i32 noundef %535, double noundef %536, double noundef %537)
  %539 = load ptr, ptr @stdout, align 8, !tbaa !9
  %540 = call i32 @fflush(ptr noundef %539)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %541

541:                                              ; preds = %506, %503
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %542 = load ptr, ptr @thread_info, align 8, !tbaa !9
  call void @free(ptr noundef %542) #9
  store ptr null, ptr @thread_info, align 8, !tbaa !9
  %543 = getelementptr inbounds %struct.ThreadData_threefry2x64_13, ptr %22, i32 0, i32 3
  %544 = load ptr, ptr %543, align 8, !tbaa !25
  call void @free(ptr noundef %544) #9
  %545 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %545) #9
  %546 = load ptr, ptr %25, align 8, !tbaa !9
  call void @free(ptr noundef %546) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #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 48, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #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 40}
!26 = !{!"", !6, i64 0, !27, i64 8, !27, i64 24, !10, i64 40}
!27 = !{!"r123array2x64", !7, i64 0}
!28 = !{i64 0, i64 16, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!26, !6, i64 0}
!31 = !{!16, !12, i64 0}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !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_threefry2x64_13 = type { i32, %struct.r123array2x64, %struct.r123array2x64, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_threefry2x64_13 = 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.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [76 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_threefry2x64_13(i64, 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_threefry2x64_13(ptr noundef) #4

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

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

28:                                               ; preds = %8
  %29 = tail call noalias ptr @malloc(i64 noundef %19) #12
  %.not115 = icmp eq ptr %29, null
  br i1 %.not115, label %30, label %37

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

37:                                               ; preds = %28
  %38 = shl nsw i64 %18, 3
  %39 = tail call noalias ptr @malloc(i64 noundef %38) #12
  %.not116 = icmp eq ptr %39, null
  br i1 %.not116, label %42, label %.preheader124

.preheader124:                                    ; preds = %37
  %40 = icmp sgt i32 %.fr, 0
  br i1 %40, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader124
  %wide.trip.count = zext i32 %.fr to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %41 = icmp eq i32 %.fr, 1
  br i1 %41, 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

42:                                               ; preds = %37
  %43 = load ptr, ptr @stderr, align 8, !tbaa !13
  %44 = load ptr, ptr @progname, align 8, !tbaa !13
  %45 = tail call ptr @__errno_location() #11
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = tail call ptr @strerror(i32 noundef %46) #10
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.19, ptr noundef %44, ptr noundef nonnull @.str.20, i32 noundef 62, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.22, ptr noundef %47) #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 ]
  %49 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv
  store volatile i32 0, ptr %49, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv, i32 1
  store volatile i64 %15, ptr %50, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.ThreadArg_threefry2x64_13, ptr %29, i64 %indvars.iv
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  store ptr %49, ptr %52, align 8, !tbaa !18
  store ptr %11, ptr %51, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %53 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv.next
  store volatile i32 0, ptr %53, align 8, !tbaa !14
  %54 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv.next, i32 1
  store volatile i64 %15, ptr %54, align 8, !tbaa !17
  %55 = getelementptr inbounds %struct.ThreadArg_threefry2x64_13, ptr %29, i64 %indvars.iv.next
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  store ptr %53, ptr %56, align 8, !tbaa !18
  store ptr %11, ptr %55, 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
  %57 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv.unr
  store volatile i32 0, ptr %57, align 8, !tbaa !14
  %58 = getelementptr inbounds %struct.ThreadInfo, ptr %20, i64 %indvars.iv.unr, i32 1
  store volatile i64 %15, ptr %58, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.ThreadArg_threefry2x64_13, ptr %29, i64 %indvars.iv.unr
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  store ptr %57, ptr %60, align 8, !tbaa !18
  store ptr %11, ptr %59, align 8, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader124
  store i32 %.fr, ptr @thread_count, align 4, !tbaa !5
  %61 = call noalias ptr @malloc(i64 noundef %19) #12
  %62 = getelementptr inbounds i8, ptr %11, i64 40
  store ptr %61, ptr %62, align 8, !tbaa !23
  %.not117 = icmp eq ptr %61, null
  br i1 %.not117, label %63, label %70

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

70:                                               ; preds = %._crit_edge
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 %0, ptr %71, align 8
  %.sroa.593.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 16
  store i64 %1, ptr %.sroa.593.0..sroa_idx, align 8, !tbaa !26
  %72 = getelementptr inbounds i8, ptr %11, i64 24
  store i64 %2, ptr %72, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 32
  store i64 %3, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !26
  store i32 0, ptr %11, align 8, !tbaa !27
  %73 = icmp sgt i32 %14, -2
  br i1 %73, label %.lr.ph155, label %._crit_edge156

.lr.ph155:                                        ; preds = %70, %243
  %.0153 = phi i32 [ %.3, %243 ], [ %6, %70 ]
  %.0104152 = phi i32 [ %246, %243 ], [ -2, %70 ]
  %.0105151 = phi double [ %.1106, %243 ], [ 0.000000e+00, %70 ]
  %.0107150 = phi double [ %.1108, %243 ], [ 0.000000e+00, %70 ]
  %.0109149 = phi double [ %204, %243 ], [ 0.000000e+00, %70 ]
  switch i32 %.0104152, label %145 [
    i32 -2, label %77
    i32 -1, label %92
    i32 0, label %.preheader123.preheader
  ]

.preheader123.preheader:                          ; preds = %.lr.ph155
  %74 = load i64, ptr %9, align 8, !tbaa !28
  %75 = load ptr, ptr %62, align 8, !tbaa !23
  %76 = load i64, ptr %75, align 8, !tbaa !28
  %.not118 = icmp eq i64 %74, %76
  br i1 %.not118, label %113, label %107

77:                                               ; preds = %.lr.ph155
  %78 = icmp eq i32 %.0153, 0
  br i1 %78, label %79, label %91

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

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

91:                                               ; preds = %87, %79, %77
  %.1 = phi i32 [ %84, %79 ], [ %84, %87 ], [ %.0153, %77 ]
  store i32 %.1, ptr %11, align 8, !tbaa !27
  br label %145

92:                                               ; preds = %.lr.ph155
  %93 = icmp ugt i32 %.0153, 1
  br i1 %93, label %94, label %106

94:                                               ; preds = %92
  %95 = uitofp i32 %.0153 to double
  %96 = load double, ptr @sec_per_trial, align 8, !tbaa !30
  %97 = fmul double %96, %95
  %98 = fdiv double %97, %.0109149
  %99 = fptoui double %98 to i32
  %100 = load i32, ptr @debug, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 1
  br i1 %101, label %106, label %102

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

106:                                              ; preds = %102, %94, %92
  %.2 = phi i32 [ %99, %94 ], [ %99, %102 ], [ %.0153, %92 ]
  store i32 1, ptr %11, align 8, !tbaa !27
  br label %145

107:                                              ; preds = %.preheader123.1, %.preheader123.preheader
  %.0100136.lcssa.wide = phi i32 [ 0, %.preheader123.preheader ], [ 1, %.preheader123.1 ]
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.58, i32 noundef %.0100136.lcssa.wide)
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef nonnull %9, i64 noundef 1)
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %110 = load ptr, ptr %62, align 8, !tbaa !23
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef %110, i64 noundef 1)
  %111 = load i32, ptr @debug, align 4, !tbaa !5
  %.not119 = icmp eq i32 %111, 0
  br i1 %.not119, label %112, label %.loopexit

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

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

116:                                              ; preds = %113
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.58, i32 noundef 0)
  %118 = load ptr, ptr @stdout, align 8, !tbaa !13
  %119 = call i32 @fflush(ptr noundef %118)
  %.pre = load ptr, ptr %62, align 8, !tbaa !23
  br label %.preheader123.1

.preheader123.1:                                  ; preds = %113, %116
  %120 = phi ptr [ %75, %113 ], [ %.pre, %116 ]
  %121 = load i64, ptr %13, align 8, !tbaa !28
  %122 = getelementptr inbounds i8, ptr %120, i64 8
  %123 = load i64, ptr %122, align 8, !tbaa !28
  %.not118.1 = icmp eq i64 %121, %123
  br i1 %.not118.1, label %124, label %107

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

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

.loopexit:                                        ; preds = %124, %127, %107
  %131 = load i32, ptr @verbose, align 4, !tbaa !5
  %.not120 = icmp eq i32 %131, 0
  br i1 %.not120, label %143, label %132

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

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

139:                                              ; preds = %132, %135
  %140 = load ptr, ptr %62, align 8, !tbaa !23
  %141 = load i32, ptr %16, align 8, !tbaa !9
  %142 = sext i32 %141 to i64
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef %140, i64 noundef %142)
  br label %143

143:                                              ; preds = %139, %.loopexit
  %144 = add i32 %.0153, 1
  store i32 %144, ptr %11, align 8, !tbaa !27
  br label %145

145:                                              ; preds = %.lr.ph155, %91, %143, %106
  %.1106 = phi double [ %.0105151, %91 ], [ %.0105151, %106 ], [ %.0109149, %143 ], [ %.0105151, %.lr.ph155 ]
  %.3 = phi i32 [ %.1, %91 ], [ %.2, %106 ], [ %.0153, %143 ], [ %.0153, %.lr.ph155 ]
  %146 = load i32, ptr @debug, align 4, !tbaa !5
  %147 = icmp slt i32 %146, 1
  br i1 %147, label %152, label %148

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

152:                                              ; preds = %145, %148
  %153 = call double @timer(ptr noundef nonnull %10)
  %154 = load i32, ptr %16, align 8, !tbaa !9
  %155 = icmp sgt i32 %154, 0
  br i1 %155, label %.lr.ph139, label %.preheader122

.preheader122:                                    ; preds = %177, %152
  %156 = load i32, ptr @thread_count, align 4, !tbaa !5
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph141, label %._crit_edge142

.lr.ph139:                                        ; preds = %152, %177
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %177 ], [ 0, %152 ]
  %158 = getelementptr inbounds i64, ptr %39, i64 %indvars.iv170
  %159 = getelementptr inbounds %struct.ThreadArg_threefry2x64_13, ptr %29, i64 %indvars.iv170
  %160 = call i32 @pthread_create(ptr noundef nonnull %158, ptr noundef null, ptr noundef nonnull @thread_run_threefry2x64_13, ptr noundef nonnull %159) #10
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %169, label %162

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

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

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

177:                                              ; preds = %172, %169
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %178 = load i32, ptr %16, align 8, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = icmp slt i64 %indvars.iv.next171, %179
  br i1 %180, label %.lr.ph139, label %.preheader122, !llvm.loop !31

.lr.ph141:                                        ; preds = %.preheader122, %200
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %200 ], [ 0, %.preheader122 ]
  %181 = getelementptr inbounds i64, ptr %39, i64 %indvars.iv173
  %182 = load i64, ptr %181, align 8, !tbaa !28
  %183 = call i32 @pthread_join(i64 noundef %182, ptr noundef nonnull %12) #10
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %192, label %185

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

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

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

200:                                              ; preds = %195, %192
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %201 = load i32, ptr @thread_count, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = icmp slt i64 %indvars.iv.next174, %202
  br i1 %203, label %.lr.ph141, label %._crit_edge142, !llvm.loop !32

._crit_edge142:                                   ; preds = %200, %.preheader122
  %204 = call double @timer(ptr noundef nonnull %10)
  %205 = load i32, ptr @debug, align 4, !tbaa !5
  %206 = icmp slt i32 %205, 1
  br i1 %206, label %211, label %207

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

211:                                              ; preds = %207, %._crit_edge142
  %212 = load i32, ptr %16, align 8, !tbaa !9
  %.not160 = icmp eq i32 %212, 0
  br i1 %.not160, label %._crit_edge147.thread, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %211
  %213 = load ptr, ptr %62, align 8, !tbaa !23
  %wide.trip.count182 = zext i32 %212 to i64
  %xtraiter199 = and i64 %wide.trip.count182, 1
  %214 = icmp eq i32 %212, 1
  br i1 %214, label %._crit_edge147.unr-lcssa, label %.preheader.lr.ph.new

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

.preheader:                                       ; preds = %.preheader, %.preheader.lr.ph.new
  %indvars.iv179 = phi i64 [ 0, %.preheader.lr.ph.new ], [ %indvars.iv.next180.1, %.preheader ]
  %.098145 = phi i32 [ 1, %.preheader.lr.ph.new ], [ %230, %.preheader ]
  %niter203 = phi i64 [ 0, %.preheader.lr.ph.new ], [ %niter203.next.1, %.preheader ]
  %215 = getelementptr inbounds %struct.r123array2x64, ptr %213, i64 %indvars.iv179
  %216 = load i64, ptr %215, align 8, !tbaa !28
  %217 = icmp eq i64 %216, 0
  %218 = getelementptr inbounds i8, ptr %215, i64 8
  %219 = load i64, ptr %218, align 8, !tbaa !28
  %220 = icmp eq i64 %219, 0
  %indvars.iv.next180 = or disjoint i64 %indvars.iv179, 1
  %221 = getelementptr inbounds %struct.r123array2x64, ptr %213, i64 %indvars.iv.next180
  %222 = load i64, ptr %221, align 8, !tbaa !28
  %223 = icmp eq i64 %222, 0
  %224 = getelementptr inbounds i8, ptr %221, i64 8
  %225 = load i64, ptr %224, align 8, !tbaa !28
  %226 = icmp eq i64 %225, 0
  %227 = select i1 %226, i1 %223, i1 false
  %228 = select i1 %227, i1 %220, i1 false
  %229 = select i1 %228, i1 %217, i1 false
  %230 = select i1 %229, i32 %.098145, i32 0
  %indvars.iv.next180.1 = add nuw nsw i64 %indvars.iv179, 2
  %niter203.next.1 = add i64 %niter203, 2
  %niter203.ncmp.1 = icmp eq i64 %niter203.next.1, %unroll_iter202
  br i1 %niter203.ncmp.1, label %._crit_edge147.unr-lcssa, label %.preheader, !llvm.loop !33

._crit_edge147.unr-lcssa:                         ; preds = %.preheader, %.preheader.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.preheader.lr.ph ], [ %230, %.preheader ]
  %indvars.iv179.unr = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next180.1, %.preheader ]
  %.098145.unr = phi i32 [ 1, %.preheader.lr.ph ], [ %230, %.preheader ]
  %lcmp.mod200.not = icmp eq i64 %xtraiter199, 0
  br i1 %lcmp.mod200.not, label %._crit_edge147, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge147.unr-lcssa
  %231 = getelementptr inbounds %struct.r123array2x64, ptr %213, i64 %indvars.iv179.unr
  %232 = load i64, ptr %231, align 8, !tbaa !28
  %233 = icmp eq i64 %232, 0
  %234 = getelementptr inbounds i8, ptr %231, i64 8
  %235 = load i64, ptr %234, align 8, !tbaa !28
  %236 = icmp eq i64 %235, 0
  %237 = select i1 %236, i1 %233, i1 false
  %238 = select i1 %237, i32 %.098145.unr, i32 0
  br label %._crit_edge147

._crit_edge147:                                   ; preds = %._crit_edge147.unr-lcssa, %.preheader.epil
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge147.unr-lcssa ], [ %238, %.preheader.epil ]
  %.not121 = icmp eq i32 %.lcssa, 0
  br i1 %.not121, label %243, label %._crit_edge147.thread

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

243:                                              ; preds = %._crit_edge147.thread, %._crit_edge147
  %244 = icmp eq i32 %.0104152, 0
  %245 = fcmp olt double %204, %.0107150
  %or.cond = select i1 %244, i1 true, i1 %245
  %.1108 = select i1 %or.cond, double %204, double %.0107150
  %246 = add nsw i32 %.0104152, 1
  %exitcond184.not = icmp eq i32 %246, %14
  br i1 %exitcond184.not, label %._crit_edge156, label %.lr.ph155, !llvm.loop !34

._crit_edge156:                                   ; preds = %243, %70
  %.0107.lcssa = phi double [ 0.000000e+00, %70 ], [ %.1108, %243 ]
  %.0105.lcssa = phi double [ 0.000000e+00, %70 ], [ %.1106, %243 ]
  %.0.lcssa = phi i32 [ %6, %70 ], [ %.3, %243 ]
  %247 = icmp ugt i32 %.0.lcssa, 1
  br i1 %247, label %248, label %265

248:                                              ; preds = %._crit_edge156
  %249 = fsub double %.0107.lcssa, %.0105.lcssa
  %250 = load i32, ptr %11, align 8, !tbaa !27
  %251 = uitofp i32 %250 to double
  %252 = fadd double %251, -1.000000e+00
  %253 = load i32, ptr %16, align 8, !tbaa !9
  %254 = sitofp i32 %253 to double
  %255 = fmul double %252, %254
  %256 = fmul double %255, 1.600000e+01
  %257 = fdiv double %249, %256
  %258 = load double, ptr %7, align 8, !tbaa !29
  %259 = fmul double %258, %257
  %260 = fmul double %259, %254
  %261 = fdiv double 1.000000e-09, %257
  %262 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef nonnull @.str.58, double noundef %260, double noundef %261, i32 noundef 16, i32 noundef %250, double noundef %.0107.lcssa, double noundef %.0105.lcssa)
  %263 = load ptr, ptr @stdout, align 8, !tbaa !13
  %264 = call i32 @fflush(ptr noundef %263)
  br label %265

265:                                              ; preds = %248, %._crit_edge156
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %266 = load ptr, ptr @thread_info, align 8, !tbaa !13
  call void @free(ptr noundef %266) #10
  store ptr null, ptr @thread_info, align 8, !tbaa !13
  %267 = load ptr, ptr %62, align 8, !tbaa !23
  call void @free(ptr noundef %267) #10
  call void @free(ptr noundef %29) #10
  call void @free(ptr noundef %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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 40}
!24 = !{!"", !6, i64 0, !25, i64 8, !25, i64 24, !12, i64 40}
!25 = !{!"r123array2x64", !7, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!24, !6, i64 0}
!28 = !{!16, !16, i64 0}
!29 = !{!10, !11, i64 0}
!30 = !{!11, !11, i64 0}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !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