; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/png (pngerror)

; 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.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i64, i64, i64, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i64, i64, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i64, i64, i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, i32, ptr, i8, i16, i16, i16, i64, i64, i8, i8, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i64, i64, %struct.png_unknown_chunk_t, i64, i64, ptr }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_row_info_struct = type { i64, i64, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

; Function Attrs: nounwind uwtable
define dso_local void @png_error(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [16 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  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 16, ptr %5) #2
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %88

10:                                               ; preds = %2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.png_struct_def, ptr %11, i32 0, i32 13
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = and i64 %13, 786432
  %15 = icmp ne i64 %14, 0
  br i1 %15, label %16, label %87

16:                                               ; preds = %10
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load i8, ptr %17, align 1, !tbaa !20
  %19 = sext i8 %18 to i32
  %20 = icmp eq i32 %19, 35
  br i1 %20, label %21, label %75

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 1, ptr %6, align 4, !tbaa !21
  br label %22

22:                                               ; preds = %35, %21
  %23 = load i32, ptr %6, align 4, !tbaa !21
  %24 = icmp slt i32 %23, 15
  br i1 %24, label %25, label %38

25:                                               ; preds = %22
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !21
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !20
  %31 = sext i8 %30 to i32
  %32 = icmp eq i32 %31, 32
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  br label %38

34:                                               ; preds = %25
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %6, align 4, !tbaa !21
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %6, align 4, !tbaa !21
  br label %22, !llvm.loop !22

38:                                               ; preds = %33, %22
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.png_struct_def, ptr %39, i32 0, i32 13
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = and i64 %41, 524288
  %43 = icmp ne i64 %42, 0
  br i1 %43, label %44, label %69

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !21
  br label %45

45:                                               ; preds = %60, %44
  %46 = load i32, ptr %7, align 4, !tbaa !21
  %47 = load i32, ptr %6, align 4, !tbaa !21
  %48 = sub nsw i32 %47, 1
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %50, label %63

50:                                               ; preds = %45
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i32, ptr %7, align 4, !tbaa !21
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i8, ptr %51, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !20
  %57 = load i32, ptr %7, align 4, !tbaa !21
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %58
  store i8 %56, ptr %59, align 1, !tbaa !20
  br label %60

60:                                               ; preds = %50
  %61 = load i32, ptr %7, align 4, !tbaa !21
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !21
  br label %45, !llvm.loop !24

63:                                               ; preds = %45
  %64 = load i32, ptr %7, align 4, !tbaa !21
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %66
  store i8 0, ptr %67, align 1, !tbaa !20
  %68 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  store ptr %68, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %74

69:                                               ; preds = %38
  %70 = load i32, ptr %6, align 4, !tbaa !21
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds i8, ptr %71, i64 %72
  store ptr %73, ptr %4, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %69, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  br label %86

75:                                               ; preds = %16
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.png_struct_def, ptr %76, i32 0, i32 13
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = and i64 %78, 524288
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %75
  %82 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  store i8 48, ptr %82, align 16, !tbaa !20
  %83 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 1
  store i8 0, ptr %83, align 1, !tbaa !20
  %84 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  store ptr %84, ptr %4, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %81, %75
  br label %86

86:                                               ; preds = %85, %74
  br label %87

87:                                               ; preds = %86, %10
  br label %88

88:                                               ; preds = %87, %2
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %102

91:                                               ; preds = %88
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.png_struct_def, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !25
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %102

96:                                               ; preds = %91
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_struct_def, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  call void %99(ptr noundef %100, ptr noundef %101)
  br label %102

102:                                              ; preds = %96, %91, %88
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_default_error(ptr noundef %103, ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #2
  ret void
}

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

; 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 hidden void @png_default_error(ptr noundef, ptr noundef) #0

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 }

!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 288}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !7, i64 272, !7, i64 273, !11, i64 280, !11, i64 288, !11, i64 296, !12, i64 304, !6, i64 416, !11, i64 424, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !13, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !14, i64 568, !11, i64 592, !11, i64 600, !6, i64 608, !15, i64 616, !15, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !15, i64 638, !7, i64 640, !16, i64 644, !17, i64 648, !17, i64 658, !6, i64 672, !11, i64 680, !11, i64 688, !13, i64 696, !16, i64 700, !16, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !18, i64 760, !18, i64 765, !6, i64 776, !17, i64 784, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !11, i64 872, !11, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !13, i64 920, !13, i64 924, !11, i64 928, !11, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !7, i64 984, !7, i64 985, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !11, i64 1040, !6, i64 1048, !6, i64 1056, !13, i64 1064, !6, i64 1072, !7, i64 1080, !15, i64 1082, !15, i64 1084, !15, i64 1086, !11, i64 1088, !11, i64 1096, !7, i64 1104, !7, i64 1105, !11, i64 1112, !11, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !7, i64 1184, !11, i64 1192, !11, i64 1200, !19, i64 1208, !11, i64 1240, !11, i64 1248, !6, i64 1256}
!11 = !{!"long", !7, i64 0}
!12 = !{!"z_stream_s", !6, i64 0, !13, i64 8, !11, i64 16, !6, i64 24, !13, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !11, i64 96, !11, i64 104}
!13 = !{!"int", !7, i64 0}
!14 = !{!"png_row_info_struct", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!20 = !{!7, !7, i64 0}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!10, !6, i64 200}


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

; Function Attrs: nounwind uwtable
define dso_local void @png_error(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.thread36, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 288
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = and i64 %6, 786432
  %.not29 = icmp eq i64 %7, 0
  br i1 %.not29, label %.thread, label %8

8:                                                ; preds = %4
  %9 = load i8, ptr %1, align 1, !tbaa !19
  %10 = icmp eq i8 %9, 35
  br i1 %10, label %.preheader38.preheader, label %63

.preheader38.preheader:                           ; preds = %8
  %11 = getelementptr i8, ptr %1, i64 1
  %12 = load i8, ptr %11, align 1, !tbaa !19
  %.not43 = icmp eq i8 %12, 32
  br i1 %.not43, label %.thread44, label %.preheader38.1

.preheader38.1:                                   ; preds = %.preheader38.preheader
  %13 = getelementptr inbounds i8, ptr %1, i64 2
  %14 = load i8, ptr %13, align 1, !tbaa !19
  %15 = icmp eq i8 %14, 32
  br i1 %15, label %52, label %.preheader38.2

.preheader38.2:                                   ; preds = %.preheader38.1
  %16 = getelementptr inbounds i8, ptr %1, i64 3
  %17 = load i8, ptr %16, align 1, !tbaa !19
  %18 = icmp eq i8 %17, 32
  br i1 %18, label %52, label %.preheader38.3

.preheader38.3:                                   ; preds = %.preheader38.2
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %20 = load i8, ptr %19, align 1, !tbaa !19
  %21 = icmp eq i8 %20, 32
  br i1 %21, label %52, label %.preheader38.4

.preheader38.4:                                   ; preds = %.preheader38.3
  %22 = getelementptr inbounds i8, ptr %1, i64 5
  %23 = load i8, ptr %22, align 1, !tbaa !19
  %24 = icmp eq i8 %23, 32
  br i1 %24, label %52, label %.preheader38.5

.preheader38.5:                                   ; preds = %.preheader38.4
  %25 = getelementptr inbounds i8, ptr %1, i64 6
  %26 = load i8, ptr %25, align 1, !tbaa !19
  %27 = icmp eq i8 %26, 32
  br i1 %27, label %52, label %.preheader38.6

.preheader38.6:                                   ; preds = %.preheader38.5
  %28 = getelementptr inbounds i8, ptr %1, i64 7
  %29 = load i8, ptr %28, align 1, !tbaa !19
  %30 = icmp eq i8 %29, 32
  br i1 %30, label %52, label %.preheader38.7

.preheader38.7:                                   ; preds = %.preheader38.6
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load i8, ptr %31, align 1, !tbaa !19
  %33 = icmp eq i8 %32, 32
  br i1 %33, label %52, label %.preheader38.8

.preheader38.8:                                   ; preds = %.preheader38.7
  %34 = getelementptr inbounds i8, ptr %1, i64 9
  %35 = load i8, ptr %34, align 1, !tbaa !19
  %36 = icmp eq i8 %35, 32
  br i1 %36, label %52, label %.preheader38.9

.preheader38.9:                                   ; preds = %.preheader38.8
  %37 = getelementptr inbounds i8, ptr %1, i64 10
  %38 = load i8, ptr %37, align 1, !tbaa !19
  %39 = icmp eq i8 %38, 32
  br i1 %39, label %52, label %.preheader38.10

.preheader38.10:                                  ; preds = %.preheader38.9
  %40 = getelementptr inbounds i8, ptr %1, i64 11
  %41 = load i8, ptr %40, align 1, !tbaa !19
  %42 = icmp eq i8 %41, 32
  br i1 %42, label %52, label %.preheader38.11

.preheader38.11:                                  ; preds = %.preheader38.10
  %43 = getelementptr inbounds i8, ptr %1, i64 12
  %44 = load i8, ptr %43, align 1, !tbaa !19
  %45 = icmp eq i8 %44, 32
  br i1 %45, label %52, label %.preheader38.12

.preheader38.12:                                  ; preds = %.preheader38.11
  %46 = getelementptr inbounds i8, ptr %1, i64 13
  %47 = load i8, ptr %46, align 1, !tbaa !19
  %48 = icmp eq i8 %47, 32
  br i1 %48, label %52, label %.preheader38.13

.preheader38.13:                                  ; preds = %.preheader38.12
  %49 = getelementptr inbounds i8, ptr %1, i64 14
  %50 = load i8, ptr %49, align 1, !tbaa !19
  %51 = icmp eq i8 %50, 32
  %spec.select = select i1 %51, i32 14, i32 15
  br label %52

52:                                               ; preds = %.preheader38.13, %.preheader38.12, %.preheader38.11, %.preheader38.10, %.preheader38.9, %.preheader38.8, %.preheader38.7, %.preheader38.6, %.preheader38.5, %.preheader38.4, %.preheader38.3, %.preheader38.2, %.preheader38.1
  %.024.lcssa = phi i32 [ 2, %.preheader38.1 ], [ 3, %.preheader38.2 ], [ 4, %.preheader38.3 ], [ 5, %.preheader38.4 ], [ 6, %.preheader38.5 ], [ 7, %.preheader38.6 ], [ 8, %.preheader38.7 ], [ 9, %.preheader38.8 ], [ 10, %.preheader38.9 ], [ 11, %.preheader38.10 ], [ 12, %.preheader38.11 ], [ 13, %.preheader38.12 ], [ %spec.select, %.preheader38.13 ]
  %53 = and i64 %6, 524288
  %.not31 = icmp eq i64 %53, 0
  br i1 %.not31, label %60, label %.preheader

.thread44:                                        ; preds = %.preheader38.preheader
  %54 = and i64 %6, 524288
  %.not3146 = icmp eq i64 %54, 0
  br i1 %.not3146, label %60, label %._crit_edge

.preheader:                                       ; preds = %52
  br i1 %.not43, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %55 = add nsw i32 %.024.lcssa, -1
  %56 = zext nneg i32 %55 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %3, ptr nonnull align 1 %11, i64 %56, i1 false), !tbaa !19
  %57 = add nsw i32 %.024.lcssa, -2
  %58 = zext nneg i32 %57 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.thread44, %.lr.ph.preheader, %.preheader
  %.0.lcssa = phi i64 [ -1, %.preheader ], [ %58, %.lr.ph.preheader ], [ -1, %.thread44 ]
  %59 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 %.0.lcssa
  store i8 0, ptr %59, align 1, !tbaa !19
  br label %.thread

60:                                               ; preds = %.thread44, %52
  %.024.lcssa48 = phi i32 [ 1, %.thread44 ], [ %.024.lcssa, %52 ]
  %61 = zext nneg i32 %.024.lcssa48 to i64
  %62 = getelementptr inbounds i8, ptr %1, i64 %61
  br label %.thread

63:                                               ; preds = %8
  %64 = and i64 %6, 524288
  %.not30 = icmp eq i64 %64, 0
  br i1 %.not30, label %.thread, label %65

65:                                               ; preds = %63
  store i8 48, ptr %3, align 16, !tbaa !19
  %66 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 0, ptr %66, align 1, !tbaa !19
  br label %.thread

.thread:                                          ; preds = %60, %._crit_edge, %65, %63, %4
  %.134 = phi ptr [ %1, %4 ], [ %1, %63 ], [ %3, %65 ], [ %3, %._crit_edge ], [ %62, %60 ]
  %67 = getelementptr inbounds i8, ptr %0, i64 200
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %.not32 = icmp eq ptr %68, null
  br i1 %.not32, label %.thread36, label %69

69:                                               ; preds = %.thread
  call void %68(ptr noundef nonnull %0, ptr noundef %.134) #3
  br label %.thread36

.thread36:                                        ; preds = %2, %69, %.thread
  %.135 = phi ptr [ %.134, %69 ], [ %.134, %.thread ], [ %1, %2 ]
  call void @png_default_error(ptr noundef %0, ptr noundef %.135)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  ret void
}

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

; 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 hidden void @png_default_error(ptr noundef, ptr noundef) local_unnamed_addr #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) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !10, i64 288}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !11, i64 304, !9, i64 416, !10, i64 424, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !12, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !9, i64 520, !9, i64 528, !9, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !13, i64 568, !10, i64 592, !10, i64 600, !9, i64 608, !14, i64 616, !14, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !14, i64 638, !7, i64 640, !15, i64 644, !16, i64 648, !16, i64 658, !9, i64 672, !10, i64 680, !10, i64 688, !12, i64 696, !15, i64 700, !15, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !9, i64 744, !9, i64 752, !17, i64 760, !17, i64 765, !9, i64 776, !16, i64 784, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !9, i64 856, !9, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !12, i64 920, !12, i64 924, !10, i64 928, !10, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !7, i64 984, !7, i64 985, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !10, i64 1040, !9, i64 1048, !9, i64 1056, !12, i64 1064, !9, i64 1072, !7, i64 1080, !14, i64 1082, !14, i64 1084, !14, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !9, i64 1128, !9, i64 1136, !9, i64 1144, !9, i64 1152, !9, i64 1160, !9, i64 1168, !9, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !18, i64 1208, !10, i64 1240, !10, i64 1248, !9, i64 1256}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !12, i64 8, !10, i64 16, !9, i64 24, !12, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !9, i64 200}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass