; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngwutil)

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

@__const.png_write_iTXt.png_iTXt = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [35 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) #2

declare void @png_warning(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @png_check_keyword(ptr noundef, ptr noundef, ptr noundef) #2

declare void @png_free(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @png_text_compress(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @png_write_compressed_data_out(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_iTXt(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [5 x i8], align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca [2 x i8], align 1
  %21 = alloca %struct.compression_state, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 5, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 @__const.png_write_iTXt.png_iTXt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #5
  %23 = getelementptr inbounds %struct.compression_state, ptr %21, i32 0, i32 2
  store i32 0, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds %struct.compression_state, ptr %21, i32 0, i32 3
  store i32 0, ptr %24, align 8, !tbaa !13
  %25 = getelementptr inbounds %struct.compression_state, ptr %21, i32 0, i32 4
  store ptr null, ptr %25, align 8, !tbaa !14
  %26 = getelementptr inbounds %struct.compression_state, ptr %21, i32 0, i32 0
  store ptr null, ptr %26, align 8, !tbaa !15
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = call i64 @png_check_keyword(ptr noundef %27, ptr noundef %28, ptr noundef %19)
  store i64 %29, ptr %15, align 8, !tbaa !16
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %6
  store i32 1, ptr %22, align 4
  br label %118

32:                                               ; preds = %6
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = call i64 @png_check_keyword(ptr noundef %33, ptr noundef %34, ptr noundef %18)
  store i64 %35, ptr %14, align 8, !tbaa !16
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_warning(ptr noundef %38, ptr noundef @.str.39)
  store ptr null, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !16
  br label %39

39:                                               ; preds = %37, %32
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i64 0, ptr %16, align 8, !tbaa !16
  br label %46

43:                                               ; preds = %39
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call i64 @strlen(ptr noundef %44) #6
  store i64 %45, ptr %16, align 8, !tbaa !16
  br label %46

46:                                               ; preds = %43, %42
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i64 0, ptr %17, align 8, !tbaa !16
  br label %53

50:                                               ; preds = %46
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call i64 @strlen(ptr noundef %51) #6
  store i64 %52, ptr %17, align 8, !tbaa !16
  br label %53

53:                                               ; preds = %50, %49
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load i64, ptr %17, align 8, !tbaa !16
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = sub nsw i32 %57, 2
  %59 = call i32 @png_text_compress(ptr noundef %54, ptr noundef %55, i64 noundef %56, i32 noundef %58, ptr noundef %21)
  %60 = sext i32 %59 to i64
  store i64 %60, ptr %17, align 8, !tbaa !16
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
  %63 = load i64, ptr %15, align 8, !tbaa !16
  %64 = add i64 5, %63
  %65 = load i64, ptr %14, align 8, !tbaa !16
  %66 = add i64 %64, %65
  %67 = load i64, ptr %16, align 8, !tbaa !16
  %68 = add i64 %66, %67
  %69 = load i64, ptr %17, align 8, !tbaa !16
  %70 = add i64 %68, %69
  %71 = trunc i64 %70 to i32
  call void @png_write_chunk_start(ptr noundef %61, ptr noundef %62, i32 noundef %71)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = load i64, ptr %15, align 8, !tbaa !16
  %75 = add i64 %74, 1
  call void @png_write_chunk_data(ptr noundef %72, ptr noundef %73, i64 noundef %75)
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %81, label %78

78:                                               ; preds = %53
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = icmp eq i32 %79, -1
  br i1 %80, label %81, label %83

81:                                               ; preds = %78, %53
  %82 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  store i8 0, ptr %82, align 1, !tbaa !18
  br label %85

83:                                               ; preds = %78
  %84 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  store i8 1, ptr %84, align 1, !tbaa !18
  br label %85

85:                                               ; preds = %83, %81
  %86 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
  store i8 0, ptr %86, align 1, !tbaa !18
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  call void @png_write_chunk_data(ptr noundef %87, ptr noundef %88, i64 noundef 2)
  %89 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  store i8 0, ptr %89, align 1, !tbaa !18
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %95

93:                                               ; preds = %85
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  br label %97

95:                                               ; preds = %85
  %96 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  br label %97

97:                                               ; preds = %95, %93
  %98 = phi ptr [ %94, %93 ], [ %96, %95 ]
  %99 = load i64, ptr %14, align 8, !tbaa !16
  %100 = add i64 %99, 1
  call void @png_write_chunk_data(ptr noundef %90, ptr noundef %98, i64 noundef %100)
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %106

104:                                              ; preds = %97
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  br label %108

106:                                              ; preds = %97
  %107 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  br label %108

108:                                              ; preds = %106, %104
  %109 = phi ptr [ %105, %104 ], [ %107, %106 ]
  %110 = load i64, ptr %16, align 8, !tbaa !16
  %111 = add i64 %110, 1
  call void @png_write_chunk_data(ptr noundef %101, ptr noundef %109, i64 noundef %111)
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_write_compressed_data_out(ptr noundef %112, ptr noundef %21)
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_write_chunk_end(ptr noundef %113)
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  call void @png_free(ptr noundef %114, ptr noundef %115)
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  call void @png_free(ptr noundef %116, ptr noundef %117)
  store i32 0, ptr %22, align 4
  br label %118

118:                                              ; preds = %108, %31
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %13) #5
  %119 = load i32, ptr %22, align 4
  switch i32 %119, label %121 [
    i32 0, label %120
    i32 1, label %120
  ]

120:                                              ; preds = %118, %118
  ret void

121:                                              ; preds = %118
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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, !10, i64 12}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!7, !7, i64 0}


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

@__const.png_write_iTXt.png_iTXt = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [35 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) local_unnamed_addr #2

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @png_check_keyword(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @png_text_compress(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @png_write_compressed_data_out(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_iTXt(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca [5 x i8], align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [2 x i8], align 1
  %11 = alloca %struct.compression_state, align 8
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %7, ptr noundef nonnull align 1 dereferenceable(5) @__const.png_write_iTXt.png_iTXt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  %12 = getelementptr inbounds i8, ptr %11, i64 12
  store i32 0, ptr %12, align 4, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %11, i64 16
  store i32 0, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr null, ptr %14, align 8, !tbaa !13
  store ptr null, ptr %11, align 8, !tbaa !14
  %15 = call i64 @png_check_keyword(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %9)
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %49, label %17

17:                                               ; preds = %6
  %18 = call i64 @png_check_keyword(ptr noundef %0, ptr noundef %3, ptr noundef nonnull %8)
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.39) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %20, %17
  %22 = icmp eq ptr %4, null
  br i1 %22, label %25, label %23

23:                                               ; preds = %21
  %24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #6
  br label %25

25:                                               ; preds = %21, %23
  %.033 = phi i64 [ %24, %23 ], [ 0, %21 ]
  %26 = icmp eq ptr %5, null
  br i1 %26, label %29, label %27

27:                                               ; preds = %25
  %28 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #6
  br label %29

29:                                               ; preds = %25, %27
  %.0 = phi i64 [ %28, %27 ], [ 0, %25 ]
  %30 = add nsw i32 %1, -2
  %31 = call i32 @png_text_compress(ptr noundef %0, ptr noundef %5, i64 noundef %.0, i32 noundef %30, ptr noundef nonnull %11)
  %32 = add i64 %15, 5
  %33 = add i64 %32, %18
  %34 = add i64 %33, %.033
  %35 = trunc i64 %34 to i32
  %36 = add i32 %31, %35
  call void @png_write_chunk_start(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %36)
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = add i64 %15, 1
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %37, i64 noundef %38)
  %39 = add i32 %1, 1
  %switch.and = and i32 %39, -3
  %switch.selectcmp = icmp ne i32 %switch.and, 0
  %40 = zext i1 %switch.selectcmp to i8
  store i8 %40, ptr %10, align 1, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %10, i64 1
  store i8 0, ptr %41, align 1, !tbaa !15
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef nonnull %10, i64 noundef 2)
  store i8 0, ptr %10, align 1, !tbaa !15
  %42 = load ptr, ptr %8, align 8
  %.not = icmp eq ptr %42, null
  %43 = select i1 %.not, ptr %10, ptr %42
  %44 = add i64 %18, 1
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef nonnull %43, i64 noundef %44)
  %45 = select i1 %22, ptr %10, ptr %4
  %46 = add i64 %.033, 1
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef nonnull %45, i64 noundef %46)
  call void @png_write_compressed_data_out(ptr noundef %0, ptr noundef nonnull %11)
  call void @png_write_chunk_end(ptr noundef %0)
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_free(ptr noundef %0, ptr noundef %47) #5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  call void @png_free(ptr noundef %0, ptr noundef %48) #5
  br label %49

49:                                               ; preds = %6, %29
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %7) #5
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 12}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 0}
!15 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass