; LLVM IR from daanx/mimalloc-bench :: bench/xmalloc-test (xmalloc-test)

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

%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.timeval = type { i64, i64 }
%struct.counter = type { i64, [56 x i8] }

@verbose_flag = external dso_local global i32, align 4
@num_workers = external dso_local global i32, align 4
@run_time = external dso_local global double, align 8
@done_flag = external dso_local global i32, align 4
@empty_cv = external dso_local global %union.pthread_cond_t, align 8
@full_cv = external dso_local global %union.pthread_cond_t, align 8
@counters = external dso_local global ptr, align 8
@begin = external dso_local global %struct.timeval, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@thread_ids = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @elapsed_time(ptr noundef) #0

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

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @mem_allocator(ptr noundef) #0

; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mem_releaser(ptr noundef) #0

declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @run_memory_free_test() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %9 = load i32, ptr @num_workers, align 4, !tbaa !13
  %10 = sext i32 %9 to i64
  %11 = mul i64 4, %10
  %12 = call ptr @malloc(i64 noundef %11) #8
  store ptr %12, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !13
  br label %13

13:                                               ; preds = %23, %0
  %14 = load i32, ptr %2, align 4, !tbaa !13
  %15 = load i32, ptr @num_workers, align 4, !tbaa !13
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %17, label %26

17:                                               ; preds = %13
  %18 = load ptr, ptr @counters, align 8, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !13
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.counter, ptr %18, i64 %20
  %22 = getelementptr inbounds %struct.counter, ptr %21, i32 0, i32 0
  store i64 0, ptr %22, align 64, !tbaa !15
  br label %23

23:                                               ; preds = %17
  %24 = load i32, ptr %2, align 4, !tbaa !13
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !13
  br label %13, !llvm.loop !17

26:                                               ; preds = %13
  %27 = call i32 @gettimeofday(ptr noundef @begin, ptr noundef null) #7
  store i32 0, ptr %2, align 4, !tbaa !13
  br label %28

28:                                               ; preds = %81, %26
  %29 = load i32, ptr %2, align 4, !tbaa !13
  %30 = load i32, ptr @num_workers, align 4, !tbaa !13
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %84

32:                                               ; preds = %28
  %33 = load i32, ptr %2, align 4, !tbaa !13
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !13
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  store i32 %33, ptr %37, align 4, !tbaa !13
  %38 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %43

40:                                               ; preds = %32
  %41 = load i32, ptr %2, align 4, !tbaa !13
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %41)
  br label %43

43:                                               ; preds = %40, %32
  %44 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %45 = load i32, ptr %2, align 4, !tbaa !13
  %46 = mul nsw i32 %45, 2
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i64, ptr %44, i64 %47
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %49, i64 %51
  %53 = call i32 @pthread_create(ptr noundef %48, ptr noundef null, ptr noundef @mem_releaser, ptr noundef %52) #7
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %43
  call void @perror(ptr noundef @.str.1)
  %56 = call ptr @__errno_location() #9
  %57 = load i32, ptr %56, align 4, !tbaa !13
  call void @exit(i32 noundef %57) #10
  unreachable

58:                                               ; preds = %43
  %59 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load i32, ptr %2, align 4, !tbaa !13
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %62)
  br label %64

64:                                               ; preds = %61, %58
  %65 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !13
  %67 = mul nsw i32 %66, 2
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i64, ptr %65, i64 %69
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load i32, ptr %2, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = call i32 @pthread_create(ptr noundef %70, ptr noundef null, ptr noundef @mem_allocator, ptr noundef %74) #7
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %64
  call void @perror(ptr noundef @.str.3)
  %78 = call ptr @__errno_location() #9
  %79 = load i32, ptr %78, align 4, !tbaa !13
  call void @exit(i32 noundef %79) #10
  unreachable

80:                                               ; preds = %64
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %2, align 4, !tbaa !13
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %2, align 4, !tbaa !13
  br label %28, !llvm.loop !19

84:                                               ; preds = %28
  %85 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %90

87:                                               ; preds = %84
  %88 = load double, ptr @run_time, align 8, !tbaa !9
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %88)
  br label %90

90:                                               ; preds = %87, %84
  br label %91

91:                                               ; preds = %101, %90
  br label %92

92:                                               ; preds = %91
  %93 = call i32 @usleep(i32 noundef 1000)
  %94 = call double @elapsed_time(ptr noundef @begin)
  %95 = load double, ptr @run_time, align 8, !tbaa !9
  %96 = fcmp ogt double %94, %95
  br i1 %96, label %97, label %101

97:                                               ; preds = %92
  store i32 1, ptr %6, align 4, !tbaa !13
  %98 = load i32, ptr %6, align 4
  store atomic volatile i32 %98, ptr @done_flag release, align 4
  %99 = call i32 @pthread_cond_broadcast(ptr noundef @empty_cv) #7
  %100 = call i32 @pthread_cond_broadcast(ptr noundef @full_cv) #7
  br label %102

101:                                              ; preds = %92
  br label %91

102:                                              ; preds = %97
  store i32 0, ptr %2, align 4, !tbaa !13
  br label %103

103:                                              ; preds = %115, %102
  %104 = load i32, ptr %2, align 4, !tbaa !13
  %105 = load i32, ptr @num_workers, align 4, !tbaa !13
  %106 = mul nsw i32 %105, 2
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %108, label %118

108:                                              ; preds = %103
  %109 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %110 = load i32, ptr %2, align 4, !tbaa !13
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i64, ptr %109, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !11
  %114 = call i32 @pthread_join(i64 noundef %113, ptr noundef %1)
  br label %115

115:                                              ; preds = %108
  %116 = load i32, ptr %2, align 4, !tbaa !13
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %2, align 4, !tbaa !13
  br label %103, !llvm.loop !20

118:                                              ; preds = %103
  %119 = call double @elapsed_time(ptr noundef @begin)
  store double %119, ptr %3, align 8, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !13
  br label %120

120:                                              ; preds = %147, %118
  %121 = load i32, ptr %2, align 4, !tbaa !13
  %122 = load i32, ptr @num_workers, align 4, !tbaa !13
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %124, label %150

124:                                              ; preds = %120
  %125 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %146

127:                                              ; preds = %124
  %128 = load i32, ptr %2, align 4, !tbaa !13
  %129 = load ptr, ptr @counters, align 8, !tbaa !5
  %130 = load i32, ptr %2, align 4, !tbaa !13
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %struct.counter, ptr %129, i64 %131
  %133 = getelementptr inbounds %struct.counter, ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 64, !tbaa !15
  %135 = load double, ptr %3, align 8, !tbaa !9
  %136 = load ptr, ptr @counters, align 8, !tbaa !5
  %137 = load i32, ptr %2, align 4, !tbaa !13
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %struct.counter, ptr %136, i64 %138
  %140 = getelementptr inbounds %struct.counter, ptr %139, i32 0, i32 0
  %141 = load i64, ptr %140, align 64, !tbaa !15
  %142 = sitofp i64 %141 to double
  %143 = load double, ptr %3, align 8, !tbaa !9
  %144 = fdiv double %142, %143
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %128, i64 noundef %134, double noundef %135, double noundef %144)
  br label %146

146:                                              ; preds = %127, %124
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %2, align 4, !tbaa !13
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %2, align 4, !tbaa !13
  br label %120, !llvm.loop !21

150:                                              ; preds = %120
  %151 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %155

153:                                              ; preds = %150
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %155

155:                                              ; preds = %153, %150
  store i32 0, ptr %2, align 4, !tbaa !13
  br label %156

156:                                              ; preds = %169, %155
  %157 = load i32, ptr %2, align 4, !tbaa !13
  %158 = load i32, ptr @num_workers, align 4, !tbaa !13
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %160, label %172

160:                                              ; preds = %156
  %161 = load ptr, ptr @counters, align 8, !tbaa !5
  %162 = load i32, ptr %2, align 4, !tbaa !13
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.counter, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct.counter, ptr %164, i32 0, i32 0
  %166 = load i64, ptr %165, align 64, !tbaa !15
  %167 = load i64, ptr %4, align 8, !tbaa !11
  %168 = add nsw i64 %167, %166
  store i64 %168, ptr %4, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %160
  %170 = load i32, ptr %2, align 4, !tbaa !13
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %2, align 4, !tbaa !13
  br label %156, !llvm.loop !22

172:                                              ; preds = %156
  %173 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %184

175:                                              ; preds = %172
  %176 = load i64, ptr %4, align 8, !tbaa !11
  %177 = load double, ptr %3, align 8, !tbaa !9
  %178 = load i64, ptr %4, align 8, !tbaa !11
  %179 = sitofp i64 %178 to double
  %180 = load double, ptr %3, align 8, !tbaa !9
  %181 = fdiv double %179, %180
  %182 = fmul double %181, 0x3EB0C6F7A0B5ED8D
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %176, double noundef %177, double noundef %182)
  br label %195

184:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %185 = load i64, ptr %4, align 8, !tbaa !11
  %186 = sitofp i64 %185 to double
  %187 = load double, ptr %3, align 8, !tbaa !9
  %188 = fdiv double %186, %187
  %189 = fmul double %188, 0x3EB0C6F7A0B5ED8D
  store double %189, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %190 = load double, ptr %7, align 8, !tbaa !9
  %191 = fdiv double 1.000000e+02, %190
  store double %191, ptr %8, align 8, !tbaa !9
  %192 = load double, ptr %8, align 8, !tbaa !9
  %193 = load double, ptr %7, align 8, !tbaa !9
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %192, double noundef %193)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %195

195:                                              ; preds = %184, %175
  %196 = load i32, ptr @verbose_flag, align 4, !tbaa !13
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %200

198:                                              ; preds = %195
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %200

200:                                              ; preds = %198, %195
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %205

203:                                              ; preds = %200
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %204)
  br label %205

205:                                              ; preds = %203, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret i32 0
}

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

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

declare void @perror(ptr noundef) #4

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

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

declare i32 @usleep(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @pthread_cond_broadcast(ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { noreturn "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 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 #7 = { nounwind }
attributes #8 = { allocsize(0) }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"counter", !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


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

%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.timeval = type { i64, i64 }
%struct.counter = type { i64, [56 x i8] }

@verbose_flag = external dso_local local_unnamed_addr global i32, align 4
@num_workers = external dso_local local_unnamed_addr global i32, align 4
@run_time = external dso_local local_unnamed_addr global double, align 8
@done_flag = external dso_local global i32, align 4
@empty_cv = external dso_local global %union.pthread_cond_t, align 8
@full_cv = external dso_local global %union.pthread_cond_t, align 8
@counters = external dso_local local_unnamed_addr global ptr, align 8
@begin = external dso_local global %struct.timeval, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@thread_ids = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @elapsed_time(ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @mem_allocator(ptr noundef) #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 #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mem_releaser(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @run_memory_free_test() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store ptr null, ptr %1, align 8, !tbaa !5
  %2 = load i32, ptr @num_workers, align 4, !tbaa !9
  %3 = sext i32 %2 to i64
  %4 = shl nsw i64 %3, 2
  %5 = tail call ptr @malloc(i64 noundef %4) #10
  %6 = icmp sgt i32 %2, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %7 = load ptr, ptr @counters, align 8, !tbaa !5
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %8 = icmp ult i32 %2, 4
  br i1 %8, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

9:                                                ; preds = %9, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %9 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %9 ]
  %10 = getelementptr inbounds %struct.counter, ptr %7, i64 %indvars.iv
  store i64 0, ptr %10, align 64, !tbaa !11
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %11 = getelementptr inbounds %struct.counter, ptr %7, i64 %indvars.iv.next
  store i64 0, ptr %11, align 64, !tbaa !11
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %12 = getelementptr inbounds %struct.counter, ptr %7, i64 %indvars.iv.next.1
  store i64 0, ptr %12, align 64, !tbaa !11
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %13 = getelementptr inbounds %struct.counter, ptr %7, i64 %indvars.iv.next.2
  store i64 0, ptr %13, align 64, !tbaa !11
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %9, !llvm.loop !14

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

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %14 = getelementptr inbounds %struct.counter, ptr %7, i64 %indvars.iv.epil
  store i64 0, ptr %14, align 64, !tbaa !11
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %0
  %15 = tail call i32 @gettimeofday(ptr noundef nonnull @begin, ptr noundef null) #9
  %16 = load i32, ptr @num_workers, align 4, !tbaa !9
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph55, label %._crit_edge56

18:                                               ; preds = %39
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %19 = load i32, ptr @num_workers, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next73, %20
  br i1 %21, label %.lr.ph55, label %._crit_edge56, !llvm.loop !18

.lr.ph55:                                         ; preds = %._crit_edge, %18
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %18 ], [ 0, %._crit_edge ]
  %22 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv72
  %23 = trunc nuw nsw i64 %indvars.iv72 to i32
  store i32 %23, ptr %22, align 4, !tbaa !9
  %24 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.not48 = icmp eq i32 %24, 0
  br i1 %.not48, label %27, label %25

25:                                               ; preds = %.lr.ph55
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %23)
  br label %27

27:                                               ; preds = %25, %.lr.ph55
  %28 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %29 = shl nuw nsw i64 %indvars.iv72, 1
  %30 = getelementptr inbounds i64, ptr %28, i64 %29
  %31 = tail call i32 @pthread_create(ptr noundef %30, ptr noundef null, ptr noundef nonnull @mem_releaser, ptr noundef nonnull %22) #9
  %.not49 = icmp eq i32 %31, 0
  br i1 %.not49, label %35, label %32

32:                                               ; preds = %27
  tail call void @perror(ptr noundef nonnull @.str.1) #11
  %33 = tail call ptr @__errno_location() #12
  %34 = load i32, ptr %33, align 4, !tbaa !9
  tail call void @exit(i32 noundef %34) #13
  unreachable

35:                                               ; preds = %27
  %36 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.not50 = icmp eq i32 %36, 0
  br i1 %.not50, label %39, label %37

37:                                               ; preds = %35
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %23)
  br label %39

39:                                               ; preds = %37, %35
  %40 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %41 = or disjoint i64 %29, 1
  %42 = getelementptr inbounds i64, ptr %40, i64 %41
  %43 = tail call i32 @pthread_create(ptr noundef nonnull %42, ptr noundef null, ptr noundef nonnull @mem_allocator, ptr noundef nonnull %22) #9
  %.not51 = icmp eq i32 %43, 0
  br i1 %.not51, label %18, label %44

44:                                               ; preds = %39
  tail call void @perror(ptr noundef nonnull @.str.3) #11
  %45 = tail call ptr @__errno_location() #12
  %46 = load i32, ptr %45, align 4, !tbaa !9
  tail call void @exit(i32 noundef %46) #13
  unreachable

._crit_edge56:                                    ; preds = %18, %._crit_edge
  %47 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.not = icmp eq i32 %47, 0
  br i1 %.not, label %.preheader, label %48

48:                                               ; preds = %._crit_edge56
  %49 = load double, ptr @run_time, align 8, !tbaa !19
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %49)
  br label %.preheader

.preheader:                                       ; preds = %48, %._crit_edge56
  br label %51

51:                                               ; preds = %.preheader, %51
  %52 = tail call i32 @usleep(i32 noundef 1000) #9
  %53 = tail call double @elapsed_time(ptr noundef nonnull @begin)
  %54 = load double, ptr @run_time, align 8, !tbaa !19
  %55 = fcmp ogt double %53, %54
  br i1 %55, label %56, label %51

56:                                               ; preds = %51
  store atomic volatile i32 1, ptr @done_flag release, align 4
  %57 = tail call i32 @pthread_cond_broadcast(ptr noundef nonnull @empty_cv) #9
  %58 = tail call i32 @pthread_cond_broadcast(ptr noundef nonnull @full_cv) #9
  %59 = load i32, ptr @num_workers, align 4, !tbaa !9
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph59, label %._crit_edge60

.lr.ph59:                                         ; preds = %56, %.lr.ph59
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph59 ], [ 0, %56 ]
  %61 = load ptr, ptr @thread_ids, align 8, !tbaa !5
  %62 = getelementptr inbounds i64, ptr %61, i64 %indvars.iv75
  %63 = load i64, ptr %62, align 8, !tbaa !21
  %64 = call i32 @pthread_join(i64 noundef %63, ptr noundef nonnull %1) #9
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %65 = load i32, ptr @num_workers, align 4, !tbaa !9
  %66 = shl nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next76, %67
  br i1 %68, label %.lr.ph59, label %._crit_edge60, !llvm.loop !22

._crit_edge60:                                    ; preds = %.lr.ph59, %56
  %69 = call double @elapsed_time(ptr noundef nonnull @begin)
  %70 = load i32, ptr @num_workers, align 4, !tbaa !9
  %71 = icmp sgt i32 %70, 0
  %.pre88 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  br i1 %71, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %._crit_edge60
  %72 = icmp eq i32 %.pre88, 0
  br i1 %72, label %.lr.ph68, label %.lr.ph63.split

.lr.ph63.split:                                   ; preds = %.lr.ph63, %84
  %73 = phi i32 [ %85, %84 ], [ %.pre88, %.lr.ph63 ]
  %74 = phi i32 [ %86, %84 ], [ %70, %.lr.ph63 ]
  %75 = phi i32 [ %87, %84 ], [ 1, %.lr.ph63 ]
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %84 ], [ 0, %.lr.ph63 ]
  %.not47 = icmp eq i32 %75, 0
  br i1 %.not47, label %84, label %76

76:                                               ; preds = %.lr.ph63.split
  %77 = load ptr, ptr @counters, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.counter, ptr %77, i64 %indvars.iv78
  %79 = load i64, ptr %78, align 64, !tbaa !11
  %80 = sitofp i64 %79 to double
  %81 = fdiv double %80, %69
  %82 = trunc nuw nsw i64 %indvars.iv78 to i32
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %82, i64 noundef %79, double noundef %69, double noundef %81)
  %.pre = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.pre87 = load i32, ptr @num_workers, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %.lr.ph63.split, %76
  %85 = phi i32 [ %73, %.lr.ph63.split ], [ %.pre, %76 ]
  %86 = phi i32 [ %74, %.lr.ph63.split ], [ %.pre87, %76 ]
  %87 = phi i32 [ 0, %.lr.ph63.split ], [ %.pre, %76 ]
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %88 = sext i32 %86 to i64
  %89 = icmp slt i64 %indvars.iv.next79, %88
  br i1 %89, label %.lr.ph63.split, label %._crit_edge64, !llvm.loop !23

._crit_edge64:                                    ; preds = %84, %._crit_edge60
  %90 = phi i32 [ %70, %._crit_edge60 ], [ %86, %84 ]
  %91 = phi i32 [ %.pre88, %._crit_edge60 ], [ %85, %84 ]
  %.not43 = icmp eq i32 %91, 0
  br i1 %.not43, label %94, label %92

92:                                               ; preds = %._crit_edge64
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %.pre89 = load i32, ptr @num_workers, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %92, %._crit_edge64
  %95 = phi i32 [ %.pre89, %92 ], [ %90, %._crit_edge64 ]
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.lr.ph63, %94
  %97 = phi i32 [ %95, %94 ], [ %70, %.lr.ph63 ]
  %98 = load ptr, ptr @counters, align 8, !tbaa !5
  %wide.trip.count84 = zext nneg i32 %97 to i64
  %xtraiter98 = and i64 %wide.trip.count84, 3
  %99 = icmp ult i32 %97, 4
  br i1 %99, label %._crit_edge69.loopexit.unr-lcssa, label %.lr.ph68.new

.lr.ph68.new:                                     ; preds = %.lr.ph68
  %unroll_iter102 = and i64 %wide.trip.count84, 2147483644
  br label %100

100:                                              ; preds = %100, %.lr.ph68.new
  %indvars.iv81 = phi i64 [ 0, %.lr.ph68.new ], [ %indvars.iv.next82.3, %100 ]
  %.04165 = phi i64 [ 0, %.lr.ph68.new ], [ %112, %100 ]
  %niter103 = phi i64 [ 0, %.lr.ph68.new ], [ %niter103.next.3, %100 ]
  %101 = getelementptr inbounds %struct.counter, ptr %98, i64 %indvars.iv81
  %102 = load i64, ptr %101, align 64, !tbaa !11
  %103 = add nsw i64 %102, %.04165
  %indvars.iv.next82 = or disjoint i64 %indvars.iv81, 1
  %104 = getelementptr inbounds %struct.counter, ptr %98, i64 %indvars.iv.next82
  %105 = load i64, ptr %104, align 64, !tbaa !11
  %106 = add nsw i64 %105, %103
  %indvars.iv.next82.1 = or disjoint i64 %indvars.iv81, 2
  %107 = getelementptr inbounds %struct.counter, ptr %98, i64 %indvars.iv.next82.1
  %108 = load i64, ptr %107, align 64, !tbaa !11
  %109 = add nsw i64 %108, %106
  %indvars.iv.next82.2 = or disjoint i64 %indvars.iv81, 3
  %110 = getelementptr inbounds %struct.counter, ptr %98, i64 %indvars.iv.next82.2
  %111 = load i64, ptr %110, align 64, !tbaa !11
  %112 = add nsw i64 %111, %109
  %indvars.iv.next82.3 = add nuw nsw i64 %indvars.iv81, 4
  %niter103.next.3 = add i64 %niter103, 4
  %niter103.ncmp.3 = icmp eq i64 %niter103.next.3, %unroll_iter102
  br i1 %niter103.ncmp.3, label %._crit_edge69.loopexit.unr-lcssa, label %100, !llvm.loop !25

._crit_edge69.loopexit.unr-lcssa:                 ; preds = %100, %.lr.ph68
  %.lcssa.ph = phi i64 [ poison, %.lr.ph68 ], [ %112, %100 ]
  %indvars.iv81.unr = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next82.3, %100 ]
  %.04165.unr = phi i64 [ 0, %.lr.ph68 ], [ %112, %100 ]
  %lcmp.mod100.not = icmp eq i64 %xtraiter98, 0
  br i1 %lcmp.mod100.not, label %._crit_edge69, label %.epil.preheader97

.epil.preheader97:                                ; preds = %._crit_edge69.loopexit.unr-lcssa, %.epil.preheader97
  %indvars.iv81.epil = phi i64 [ %indvars.iv.next82.epil, %.epil.preheader97 ], [ %indvars.iv81.unr, %._crit_edge69.loopexit.unr-lcssa ]
  %.04165.epil = phi i64 [ %115, %.epil.preheader97 ], [ %.04165.unr, %._crit_edge69.loopexit.unr-lcssa ]
  %epil.iter99 = phi i64 [ %epil.iter99.next, %.epil.preheader97 ], [ 0, %._crit_edge69.loopexit.unr-lcssa ]
  %113 = getelementptr inbounds %struct.counter, ptr %98, i64 %indvars.iv81.epil
  %114 = load i64, ptr %113, align 64, !tbaa !11
  %115 = add nsw i64 %114, %.04165.epil
  %indvars.iv.next82.epil = add nuw nsw i64 %indvars.iv81.epil, 1
  %epil.iter99.next = add i64 %epil.iter99, 1
  %epil.iter99.cmp.not = icmp eq i64 %epil.iter99.next, %xtraiter98
  br i1 %epil.iter99.cmp.not, label %._crit_edge69, label %.epil.preheader97, !llvm.loop !26

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit.unr-lcssa, %.epil.preheader97, %94
  %.041.lcssa = phi i64 [ 0, %94 ], [ %.lcssa.ph, %._crit_edge69.loopexit.unr-lcssa ], [ %115, %.epil.preheader97 ]
  %116 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.not44 = icmp eq i32 %116, 0
  %117 = sitofp i64 %.041.lcssa to double
  %118 = fdiv double %117, %69
  %119 = fmul double %118, 0x3EB0C6F7A0B5ED8D
  br i1 %.not44, label %122, label %120

120:                                              ; preds = %._crit_edge69
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef %.041.lcssa, double noundef %69, double noundef %119)
  br label %125

122:                                              ; preds = %._crit_edge69
  %123 = fdiv double 1.000000e+02, %119
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %123, double noundef %119)
  br label %125

125:                                              ; preds = %122, %120
  %126 = load i32, ptr @verbose_flag, align 4, !tbaa !9
  %.not45 = icmp eq i32 %126, 0
  br i1 %.not45, label %129, label %127

127:                                              ; preds = %125
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %129

129:                                              ; preds = %127, %125
  %.not46 = icmp eq ptr %5, null
  br i1 %.not46, label %131, label %130

130:                                              ; preds = %129
  call void @free(ptr noundef nonnull %5)
  br label %131

131:                                              ; preds = %130, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret i32 0
}

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

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

declare i32 @usleep(i32 noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @pthread_cond_broadcast(ptr noundef) local_unnamed_addr #5

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress 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 #8 = { "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 = { allocsize(0) }
attributes #11 = { cold }
attributes #12 = { nounwind willreturn memory(none) }
attributes #13 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"counter", !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !15}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15, !24}
!24 = !{!"llvm.loop.unswitch.partial.disable"}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !17}


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