; LLVM IR from seppo0010/rlite :: src (rlite)

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

@identifier = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_header_deserialize(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %15 = load ptr, ptr @identifier, align 8, !tbaa !5
  %16 = call i64 @strlen(ptr noundef %15) #7
  %17 = trunc i64 %16 to i32
  store i32 %17, ptr %11, align 4, !tbaa !9
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr @identifier, align 8, !tbaa !5
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = call i32 @memcmp(ptr noundef %18, ptr noundef %19, i64 noundef %21) #7
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %28

24:                                               ; preds = %4
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = load ptr, ptr @identifier, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.18, ptr noundef %26) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %140

28:                                               ; preds = %4
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %29, i64 %31
  %33 = call i32 @get_4bytes(ptr noundef %32)
  %34 = sext i32 %33 to i64
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.rlite, ptr %35, i32 0, i32 6
  store i64 %34, ptr %36, align 8, !tbaa !11
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = add nsw i32 %38, 4
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %37, i64 %40
  %42 = call i32 @get_4bytes(ptr noundef %41)
  %43 = sext i32 %42 to i64
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.rlite, ptr %44, i32 0, i32 5
  store i64 %43, ptr %45, align 8, !tbaa !14
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.rlite, ptr %46, i32 0, i32 0
  store i64 %43, ptr %47, align 8, !tbaa !15
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add nsw i32 %49, 8
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %48, i64 %51
  %53 = call i32 @get_4bytes(ptr noundef %52)
  %54 = sext i32 %53 to i64
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.rlite, ptr %55, i32 0, i32 4
  store i64 %54, ptr %56, align 8, !tbaa !16
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.rlite, ptr %57, i32 0, i32 1
  store i64 %54, ptr %58, align 8, !tbaa !17
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = add nsw i32 %60, 12
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %59, i64 %62
  %64 = call i32 @get_4bytes(ptr noundef %63)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.rlite, ptr %65, i32 0, i32 11
  store i32 %64, ptr %66, align 4, !tbaa !18
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.rlite, ptr %67, i32 0, i32 2
  store i32 %64, ptr %68, align 8, !tbaa !19
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.rlite, ptr %69, i32 0, i32 12
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  call void @free(ptr noundef %71) #6
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.rlite, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  call void @free(ptr noundef %74) #6
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.rlite, ptr %75, i32 0, i32 11
  %77 = load i32, ptr %76, align 4, !tbaa !18
  %78 = add nsw i32 %77, 6
  %79 = sext i32 %78 to i64
  %80 = mul i64 8, %79
  %81 = call noalias ptr @malloc(i64 noundef %80) #8
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.rlite, ptr %82, i32 0, i32 12
  store ptr %81, ptr %83, align 8, !tbaa !20
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.rlite, ptr %84, i32 0, i32 12
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = icmp ne ptr %86, null
  br i1 %87, label %89, label %88

88:                                               ; preds = %28
  store i32 4, ptr %10, align 4, !tbaa !9
  br label %138

89:                                               ; preds = %28
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.rlite, ptr %90, i32 0, i32 11
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = add nsw i32 %92, 6
  %94 = sext i32 %93 to i64
  %95 = mul i64 8, %94
  %96 = call noalias ptr @malloc(i64 noundef %95) #8
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.rlite, ptr %97, i32 0, i32 3
  store ptr %96, ptr %98, align 8, !tbaa !21
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.rlite, ptr %99, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = icmp ne ptr %101, null
  br i1 %102, label %104, label %103

103:                                              ; preds = %89
  store i32 4, ptr %10, align 4, !tbaa !9
  br label %138

104:                                              ; preds = %89
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = add nsw i32 %105, 16
  %107 = sext i32 %106 to i64
  store i64 %107, ptr %14, align 8, !tbaa !22
  store i64 0, ptr %13, align 8, !tbaa !22
  br label %108

108:                                              ; preds = %134, %104
  %109 = load i64, ptr %13, align 8, !tbaa !22
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.rlite, ptr %110, i32 0, i32 11
  %112 = load i32, ptr %111, align 4, !tbaa !18
  %113 = add nsw i32 %112, 6
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %109, %114
  br i1 %115, label %116, label %137

116:                                              ; preds = %108
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i64, ptr %14, align 8, !tbaa !22
  %119 = getelementptr inbounds i8, ptr %117, i64 %118
  %120 = call i32 @get_4bytes(ptr noundef %119)
  %121 = sext i32 %120 to i64
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.rlite, ptr %122, i32 0, i32 12
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = load i64, ptr %13, align 8, !tbaa !22
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  store i64 %121, ptr %126, align 8, !tbaa !22
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.rlite, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !21
  %130 = load i64, ptr %13, align 8, !tbaa !22
  %131 = getelementptr inbounds i64, ptr %129, i64 %130
  store i64 %121, ptr %131, align 8, !tbaa !22
  %132 = load i64, ptr %14, align 8, !tbaa !22
  %133 = add nsw i64 %132, 4
  store i64 %133, ptr %14, align 8, !tbaa !22
  br label %134

134:                                              ; preds = %116
  %135 = load i64, ptr %13, align 8, !tbaa !22
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %13, align 8, !tbaa !22
  br label %108, !llvm.loop !23

137:                                              ; preds = %108
  br label %138

138:                                              ; preds = %137, %103, %88
  %139 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %139, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %140

140:                                              ; preds = %138, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %141 = load i32, ptr %5, align 4
  ret i32 %141
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(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 willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #2

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

declare i32 @get_4bytes(ptr noundef) #4

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

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 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 #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 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 48}
!12 = !{!"rlite", !13, i64 0, !13, i64 8, !10, i64 16, !6, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !6, i64 80, !13, i64 88, !13, i64 96, !6, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 40}
!15 = !{!12, !13, i64 0}
!16 = !{!12, !13, i64 32}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !10, i64 76}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !6, i64 80}
!21 = !{!12, !6, i64 24}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

@identifier = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 5) i32 @rl_header_deserialize(ptr nocapture noundef %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = load ptr, ptr @identifier, align 8, !tbaa !5
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #7
  %sext = shl i64 %6, 32
  %7 = ashr exact i64 %sext, 32
  %bcmp = tail call i32 @bcmp(ptr %3, ptr %5, i64 %7)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %11, label %8

8:                                                ; preds = %4
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.18, ptr noundef %5) #8
  br label %.loopexit

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %3, i64 %7
  %13 = tail call i32 @get_4bytes(ptr noundef %12) #9
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %14, ptr %15, align 8, !tbaa !9
  %sext40 = add i64 %sext, 17179869184
  %16 = ashr exact i64 %sext40, 32
  %17 = getelementptr inbounds i8, ptr %3, i64 %16
  %18 = tail call i32 @get_4bytes(ptr noundef %17) #9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %19, ptr %20, align 8, !tbaa !13
  store i64 %19, ptr %0, align 8, !tbaa !14
  %sext41 = add i64 %sext, 34359738368
  %21 = ashr exact i64 %sext41, 32
  %22 = getelementptr inbounds i8, ptr %3, i64 %21
  %23 = tail call i32 @get_4bytes(ptr noundef %22) #9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %24, ptr %25, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %24, ptr %26, align 8, !tbaa !16
  %sext42 = add i64 %sext, 51539607552
  %27 = ashr exact i64 %sext42, 32
  %28 = getelementptr inbounds i8, ptr %3, i64 %27
  %29 = tail call i32 @get_4bytes(ptr noundef %28) #9
  %30 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %29, ptr %30, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %29, ptr %31, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %0, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  tail call void @free(ptr noundef %33) #9
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  tail call void @free(ptr noundef %35) #9
  %36 = load i32, ptr %30, align 4, !tbaa !17
  %37 = add nsw i32 %36, 6
  %38 = sext i32 %37 to i64
  %39 = shl nsw i64 %38, 3
  %40 = tail call noalias ptr @malloc(i64 noundef %39) #10
  store ptr %40, ptr %32, align 8, !tbaa !19
  %.not43 = icmp eq ptr %40, null
  br i1 %.not43, label %.loopexit, label %41

41:                                               ; preds = %11
  %42 = tail call noalias ptr @malloc(i64 noundef %39) #10
  store ptr %42, ptr %34, align 8, !tbaa !20
  %.not44 = icmp eq ptr %42, null
  br i1 %.not44, label %.loopexit, label %43

43:                                               ; preds = %41
  %44 = icmp sgt i32 %36, -6
  br i1 %44, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %43
  %sext45 = add i64 %sext, 68719476736
  %45 = ashr exact i64 %sext45, 32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.047 = phi i64 [ %53, %.lr.ph ], [ %45, %.lr.ph.preheader ]
  %.03746 = phi i64 [ %54, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %46 = getelementptr inbounds i8, ptr %3, i64 %.047
  %47 = tail call i32 @get_4bytes(ptr noundef %46) #9
  %48 = sext i32 %47 to i64
  %49 = load ptr, ptr %32, align 8, !tbaa !19
  %50 = getelementptr inbounds i64, ptr %49, i64 %.03746
  store i64 %48, ptr %50, align 8, !tbaa !21
  %51 = load ptr, ptr %34, align 8, !tbaa !20
  %52 = getelementptr inbounds i64, ptr %51, i64 %.03746
  store i64 %48, ptr %52, align 8, !tbaa !21
  %53 = add nsw i64 %.047, 4
  %54 = add nuw nsw i64 %.03746, 1
  %55 = load i32, ptr %30, align 4, !tbaa !17
  %56 = add nsw i32 %55, 6
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %54, %57
  br i1 %58, label %.lr.ph, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph, %43, %11, %41, %8
  %.038 = phi i32 [ 1, %8 ], [ 4, %11 ], [ 4, %41 ], [ 0, %43 ], [ 0, %.lr.ph ]
  ret i32 %.038
}

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

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

declare i32 @get_4bytes(ptr noundef) local_unnamed_addr #3

; 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #6

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 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 #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nofree nounwind willreturn memory(argmem: read) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind }
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, !11, i64 48}
!10 = !{!"rlite", !11, i64 0, !11, i64 8, !12, i64 16, !6, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !6, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !6, i64 80, !11, i64 88, !11, i64 96, !6, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 40}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !11, i64 32}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !12, i64 76}
!18 = !{!10, !12, i64 16}
!19 = !{!10, !6, i64 80}
!20 = !{!10, !6, i64 24}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass