; LLVM IR from umgefahren/server-language-benchmark :: C (store)

; 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.Store = type { ptr, i64, i64, i64, ptr, ptr, i64, double }
%struct.Record = type { ptr, i32, ptr, i32, i64 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
define dso_local ptr @store_new_dump(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Store, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = call ptr @c_hash_map_all_records(ptr noundef %21, ptr noundef %5)
  store ptr %22, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr @.str, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call i64 @strlen(ptr noundef %24) #8
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call i64 @strlen(ptr noundef %26) #8
  %28 = add i64 %25, %27
  %29 = mul i64 1, %28
  %30 = call ptr @realloc(ptr noundef %23, i64 noundef %29) #9
  store ptr %30, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call ptr @strcat(ptr noundef %31, ptr noundef %32) #7
  store ptr %33, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %116, %2
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = load i64, ptr %5, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %119

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr @.str.2, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.Record, ptr %40, i64 %41
  %43 = getelementptr inbounds %struct.Record, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  store ptr %44, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr @.str.3, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i64, ptr %8, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.Record, ptr %45, i64 %46
  %48 = getelementptr inbounds %struct.Record, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  store ptr %49, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr @.str.4, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.Record, ptr %50, i64 %51
  %53 = getelementptr inbounds %struct.Record, ptr %52, i32 0, i32 4
  %54 = call ptr @ctime(ptr noundef %53) #7
  store ptr %54, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr @.str.5, ptr %15, align 8, !tbaa !5
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = load i64, ptr %5, align 8, !tbaa !9
  %57 = sub i64 %56, 1
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %39
  store ptr @.str.6, ptr %15, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %59, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call i64 @strlen(ptr noundef %61) #8
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call i64 @strlen(ptr noundef %63) #8
  %65 = add i64 %62, %64
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = call i64 @strlen(ptr noundef %66) #8
  %68 = add i64 %65, %67
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call i64 @strlen(ptr noundef %69) #8
  %71 = add i64 %68, %70
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = call i64 @strlen(ptr noundef %72) #8
  %74 = add i64 %71, %73
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call i64 @strlen(ptr noundef %75) #8
  %77 = add i64 %74, %76
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = call i64 @strlen(ptr noundef %78) #8
  %80 = add i64 %77, %79
  store i64 %80, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %81 = load i64, ptr %16, align 8, !tbaa !9
  %82 = mul i64 1, %81
  %83 = call noalias ptr @malloc(i64 noundef %82) #10
  store ptr %83, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = call ptr @strcat(ptr noundef %84, ptr noundef %85) #7
  store ptr %86, ptr %17, align 8, !tbaa !5
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = call ptr @strcat(ptr noundef %87, ptr noundef %88) #7
  store ptr %89, ptr %17, align 8, !tbaa !5
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = call ptr @strcat(ptr noundef %90, ptr noundef %91) #7
  store ptr %92, ptr %17, align 8, !tbaa !5
  %93 = load ptr, ptr %17, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = call ptr @strcat(ptr noundef %93, ptr noundef %94) #7
  store ptr %95, ptr %17, align 8, !tbaa !5
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = call ptr @strcat(ptr noundef %96, ptr noundef %97) #7
  store ptr %98, ptr %17, align 8, !tbaa !5
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = call ptr @strcat(ptr noundef %99, ptr noundef %100) #7
  store ptr %101, ptr %17, align 8, !tbaa !5
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = call ptr @strcat(ptr noundef %102, ptr noundef %103) #7
  store ptr %104, ptr %17, align 8, !tbaa !5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = call i64 @strlen(ptr noundef %106) #8
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = call i64 @strlen(ptr noundef %108) #8
  %110 = add i64 %107, %109
  %111 = mul i64 1, %110
  %112 = call ptr @realloc(ptr noundef %105, i64 noundef %111) #9
  store ptr %112, ptr %4, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  %115 = call ptr @strcat(ptr noundef %113, ptr noundef %114) #7
  store ptr %115, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %116

116:                                              ; preds = %60
  %117 = load i64, ptr %8, align 8, !tbaa !9
  %118 = add i64 %117, 1
  store i64 %118, ptr %8, align 8, !tbaa !9
  br label %34, !llvm.loop !18

119:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store ptr @.str.1, ptr %18, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = call i64 @strlen(ptr noundef %121) #8
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = call i64 @strlen(ptr noundef %123) #8
  %125 = add i64 %122, %124
  %126 = mul i64 1, %125
  %127 = call ptr @realloc(ptr noundef %120, i64 noundef %126) #9
  store ptr %127, ptr %4, align 8, !tbaa !5
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = call ptr @strcat(ptr noundef %128, ptr noundef %129) #7
  store ptr %130, ptr %4, align 8, !tbaa !5
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.Store, ptr %131, i32 0, i32 5
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = call i32 @pthread_rwlock_wrlock(ptr noundef %133) #7
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Store, ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  call void @free(ptr noundef %137) #7
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call i64 @strlen(ptr noundef %138) #8
  %140 = mul i64 1, %139
  %141 = call noalias ptr @malloc(i64 noundef %140) #10
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.Store, ptr %142, i32 0, i32 4
  store ptr %141, ptr %143, align 8, !tbaa !21
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Store, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !21
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call ptr @strcpy(ptr noundef %146, ptr noundef %147) #7
  %149 = call i64 @time(ptr noundef null) #7
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.Store, ptr %150, i32 0, i32 6
  store i64 %149, ptr %151, align 8, !tbaa !22
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.Store, ptr %152, i32 0, i32 5
  %154 = load ptr, ptr %153, align 8, !tbaa !20
  %155 = call i32 @pthread_rwlock_unlock(ptr noundef %154) #7
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret ptr %156
}

declare ptr @c_hash_map_all_records(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

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

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

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

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

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

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 "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 = { 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 #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 allocsize(1) "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(read) "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 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(1) }
attributes #10 = { nounwind allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"Store", !6, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !13, i64 56}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"Record", !6, i64 0, !16, i64 8, !6, i64 16, !16, i64 24, !10, i64 32}
!16 = !{!"int", !7, i64 0}
!17 = !{!15, !6, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 40}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !10, i64 48}


; 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.Record = type { ptr, i32, ptr, i32, i64 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @time(ptr 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) #0

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

; Function Attrs: inlinehint nounwind uwtable
define dso_local noundef ptr @store_new_dump(ptr nocapture noundef %0, ptr nocapture noundef %1) local_unnamed_addr #4 {
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 0, ptr %3, align 8, !tbaa !5
  %4 = load ptr, ptr %0, align 8, !tbaa !9
  %5 = call ptr @c_hash_map_all_records(ptr noundef %4, ptr noundef nonnull %3) #9
  %6 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #10
  %7 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str) #10
  %8 = add i64 %7, %6
  %9 = call ptr @realloc(ptr noundef %1, i64 noundef %8) #11
  %10 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str) #9
  %11 = load i64, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.0.lcssa = phi ptr [ %9, %2 ], [ %62, %.lr.ph ]
  %12 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0.lcssa) #10
  %13 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.1) #10
  %14 = add i64 %13, %12
  %15 = call ptr @realloc(ptr noundef %.0.lcssa, i64 noundef %14) #11
  %16 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.1) #9
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = call i32 @pthread_rwlock_wrlock(ptr noundef %18) #9
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  call void @free(ptr noundef %21) #9
  %22 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %15) #10
  %23 = call noalias ptr @malloc(i64 noundef %22) #12
  store ptr %23, ptr %20, align 8, !tbaa !14
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) %15) #9
  %25 = call i64 @time(ptr noundef null) #9
  %26 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %25, ptr %26, align 8, !tbaa !15
  %27 = load ptr, ptr %17, align 8, !tbaa !13
  %28 = call i32 @pthread_rwlock_unlock(ptr noundef %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret ptr %15

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.057 = phi ptr [ %62, %.lr.ph ], [ %9, %2 ]
  %.05556 = phi i64 [ %64, %.lr.ph ], [ 0, %2 ]
  %29 = getelementptr inbounds %struct.Record, ptr %5, i64 %.05556
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %29, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %29, i64 32
  %34 = call ptr @ctime(ptr noundef nonnull %33) #9
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = add i64 %35, -1
  %37 = icmp ult i64 %.05556, %36
  %spec.store.select = select i1 %37, ptr @.str.6, ptr @.str.5
  %38 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.2) #10
  %39 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %30) #10
  %40 = add i64 %39, %38
  %41 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.3) #10
  %42 = add i64 %40, %41
  %43 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #10
  %44 = add i64 %42, %43
  %45 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.4) #10
  %46 = add i64 %44, %45
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %34) #10
  %48 = add i64 %46, %47
  %49 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %spec.store.select) #10
  %50 = add i64 %48, %49
  %51 = call noalias ptr @malloc(i64 noundef %50) #12
  %52 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %53 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) %30) #9
  %54 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %55 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) %32) #9
  %56 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %57 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) %34) #9
  %58 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) %spec.store.select) #9
  %59 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.057) #10
  %60 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %51) #10
  %61 = add i64 %60, %59
  %62 = call ptr @realloc(ptr noundef %.057, i64 noundef %61) #11
  %63 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %62, ptr noundef nonnull dereferenceable(1) %51) #9
  %64 = add nuw i64 %.05556, 1
  %65 = icmp ult i64 %64, %35
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !20
}

declare ptr @c_hash_map_all_records(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: nounwind
declare ptr @ctime(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

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

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 = { 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 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 #4 = { 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 #5 = { "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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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(read) }
attributes #11 = { nounwind allocsize(1) }
attributes #12 = { nounwind allocsize(0) }

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


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