; LLVM IR from EyalAr/lwip :: src/lib/gif (gifalloc)

; 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.GifFileType = type { i32, i32, i32, i32, i8, ptr, i32, %struct.GifImageDesc, ptr, i32, ptr, i32, ptr, ptr }
%struct.GifImageDesc = type { i32, i32, i32, i32, i8, ptr }
%struct.SavedImage = type { %struct.GifImageDesc, ptr, i32, ptr }
%struct.ColorMapObject = type { i32, i32, i8, ptr }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @GifMakeMapObject(i32 noundef, ptr noundef) #1

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

; 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) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @FreeLastSavedImage(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @GifMakeSavedImage(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.GifFileType, ptr %8, i32 0, i32 8
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %16

12:                                               ; preds = %2
  %13 = call noalias ptr @malloc(i64 noundef 56) #6
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.GifFileType, ptr %14, i32 0, i32 8
  store ptr %13, ptr %15, align 8, !tbaa !9
  br label %29

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.GifFileType, ptr %17, i32 0, i32 8
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.GifFileType, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = add nsw i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = mul i64 56, %24
  %26 = call ptr @realloc(ptr noundef %19, i64 noundef %25) #7
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.GifFileType, ptr %27, i32 0, i32 8
  store ptr %26, ptr %28, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %16, %12
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.GifFileType, ptr %30, i32 0, i32 8
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  store ptr null, ptr %3, align 8
  br label %157

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.GifFileType, ptr %36, i32 0, i32 8
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.GifFileType, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %40, align 8, !tbaa !14
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 8, !tbaa !14
  %43 = sext i32 %41 to i64
  %44 = getelementptr inbounds %struct.SavedImage, ptr %38, i64 %43
  store ptr %44, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 1 %45, i8 0, i64 56, i1 false)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %154

48:                                               ; preds = %35
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %49, ptr align 8 %50, i64 56, i1 false)
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.SavedImage, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.GifImageDesc, ptr %52, i32 0, i32 5
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %81

56:                                               ; preds = %48
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SavedImage, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.GifImageDesc, ptr %58, i32 0, i32 5
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = getelementptr inbounds %struct.ColorMapObject, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !17
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.SavedImage, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %struct.GifImageDesc, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = getelementptr inbounds %struct.ColorMapObject, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = call ptr @GifMakeMapObject(i32 noundef %62, ptr noundef %68)
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SavedImage, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %struct.GifImageDesc, ptr %71, i32 0, i32 5
  store ptr %69, ptr %72, align 8, !tbaa !15
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.SavedImage, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.GifImageDesc, ptr %74, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %56
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  call void @FreeLastSavedImage(ptr noundef %79)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

80:                                               ; preds = %56
  br label %81

81:                                               ; preds = %80, %48
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SavedImage, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.GifImageDesc, ptr %83, i32 0, i32 3
  %85 = load i32, ptr %84, align 4, !tbaa !20
  %86 = sext i32 %85 to i64
  %87 = mul i64 1, %86
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SavedImage, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.GifImageDesc, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !21
  %92 = sext i32 %91 to i64
  %93 = mul i64 %87, %92
  %94 = call noalias ptr @malloc(i64 noundef %93) #6
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.SavedImage, ptr %95, i32 0, i32 1
  store ptr %94, ptr %96, align 8, !tbaa !22
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SavedImage, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = icmp eq ptr %99, null
  br i1 %100, label %101, label %103

101:                                              ; preds = %81
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  call void @FreeLastSavedImage(ptr noundef %102)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

103:                                              ; preds = %81
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SavedImage, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SavedImage, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.SavedImage, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.GifImageDesc, ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 4, !tbaa !20
  %114 = sext i32 %113 to i64
  %115 = mul i64 1, %114
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SavedImage, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.GifImageDesc, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !21
  %120 = sext i32 %119 to i64
  %121 = mul i64 %115, %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %106, ptr align 1 %109, i64 %121, i1 false)
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SavedImage, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !23
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %153

126:                                              ; preds = %103
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.SavedImage, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !24
  %130 = sext i32 %129 to i64
  %131 = mul i64 24, %130
  %132 = call noalias ptr @malloc(i64 noundef %131) #6
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SavedImage, ptr %133, i32 0, i32 3
  store ptr %132, ptr %134, align 8, !tbaa !23
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.SavedImage, ptr %135, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !23
  %138 = icmp eq ptr %137, null
  br i1 %138, label %139, label %141

139:                                              ; preds = %126
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  call void @FreeLastSavedImage(ptr noundef %140)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

141:                                              ; preds = %126
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.SavedImage, ptr %142, i32 0, i32 3
  %144 = load ptr, ptr %143, align 8, !tbaa !23
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SavedImage, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !23
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.SavedImage, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %149, align 8, !tbaa !24
  %151 = sext i32 %150 to i64
  %152 = mul i64 24, %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %147, i64 %152, i1 false)
  br label %153

153:                                              ; preds = %141, %103
  br label %154

154:                                              ; preds = %153, %35
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %155, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

156:                                              ; preds = %154, %139, %101, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %157

157:                                              ; preds = %156, %34
  %158 = load ptr, ptr %3, align 8
  ret ptr %158
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(1) }
attributes #8 = { 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, !6, i64 72}
!10 = !{!"GifFileType", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !7, i64 16, !6, i64 24, !11, i64 32, !12, i64 40, !6, i64 72, !11, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !6, i64 112}
!11 = !{!"int", !7, i64 0}
!12 = !{!"GifImageDesc", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !13, i64 16, !6, i64 24}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!10, !11, i64 32}
!15 = !{!16, !6, i64 24}
!16 = !{!"SavedImage", !12, i64 0, !6, i64 32, !11, i64 40, !6, i64 48}
!17 = !{!18, !11, i64 0}
!18 = !{!"ColorMapObject", !11, i64 0, !11, i64 4, !13, i64 8, !6, i64 16}
!19 = !{!18, !6, i64 16}
!20 = !{!16, !11, i64 12}
!21 = !{!16, !11, i64 8}
!22 = !{!16, !6, i64 32}
!23 = !{!16, !6, i64 48}
!24 = !{!16, !11, i64 40}


; 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.SavedImage = type { %struct.GifImageDesc, ptr, i32, ptr }
%struct.GifImageDesc = type { i32, i32, i32, i32, i8, ptr }

; Function Attrs: nounwind uwtable
declare dso_local ptr @GifMakeMapObject(i32 noundef, ptr noundef) local_unnamed_addr #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: 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) #2

; 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 #3

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @GifMakeSavedImage(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call noalias dereferenceable_or_null(56) ptr @malloc(i64 noundef 56) #5
  br label %15

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !13
  %11 = add nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = mul nsw i64 %12, 56
  %14 = tail call ptr @realloc(ptr noundef nonnull %4, i64 noundef %13) #6
  br label %15

15:                                               ; preds = %8, %6
  %storemerge = phi ptr [ %14, %8 ], [ %7, %6 ]
  store ptr %storemerge, ptr %3, align 8, !tbaa !5
  %16 = icmp eq ptr %storemerge, null
  br i1 %16, label %63, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 8, !tbaa !13
  %21 = sext i32 %19 to i64
  %22 = getelementptr inbounds %struct.SavedImage, ptr %storemerge, i64 %21
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(56) %22, i8 0, i64 56, i1 false)
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %63, label %23

23:                                               ; preds = %17
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %1, i64 56, i1 false)
  %24 = getelementptr inbounds i8, ptr %22, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %.not42 = icmp eq ptr %25, null
  br i1 %.not42, label %35, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = load i32, ptr %28, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %28, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = tail call ptr @GifMakeMapObject(i32 noundef %29, ptr noundef %31)
  store ptr %32, ptr %24, align 8, !tbaa !14
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %26
  tail call void @FreeLastSavedImage(ptr noundef nonnull %0)
  br label %63

35:                                               ; preds = %26, %23
  %36 = getelementptr inbounds i8, ptr %1, i64 12
  %37 = load i32, ptr %36, align 4, !tbaa !19
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %1, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !20
  %41 = sext i32 %40 to i64
  %42 = mul nsw i64 %41, %38
  %43 = tail call noalias ptr @malloc(i64 noundef %42) #5
  %44 = getelementptr inbounds i8, ptr %22, i64 32
  store ptr %43, ptr %44, align 8, !tbaa !21
  %45 = icmp eq ptr %43, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %35
  tail call void @FreeLastSavedImage(ptr noundef nonnull %0)
  br label %63

47:                                               ; preds = %35
  %48 = getelementptr inbounds i8, ptr %1, i64 32
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %43, ptr align 1 %49, i64 %42, i1 false)
  %50 = getelementptr inbounds i8, ptr %22, i64 48
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %.not43 = icmp eq ptr %51, null
  br i1 %.not43, label %63, label %52

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %1, i64 40
  %54 = load i32, ptr %53, align 8, !tbaa !23
  %55 = sext i32 %54 to i64
  %56 = mul nsw i64 %55, 24
  %57 = tail call noalias ptr @malloc(i64 noundef %56) #5
  store ptr %57, ptr %50, align 8, !tbaa !22
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %52
  tail call void @FreeLastSavedImage(ptr noundef nonnull %0)
  br label %63

60:                                               ; preds = %52
  %61 = getelementptr inbounds i8, ptr %1, i64 48
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %57, ptr align 8 %62, i64 %56, i1 false)
  br label %63

63:                                               ; preds = %34, %46, %59, %47, %60, %17, %15
  %.1 = phi ptr [ null, %15 ], [ null, %34 ], [ null, %46 ], [ null, %59 ], [ %22, %47 ], [ %22, %60 ], [ %22, %17 ]
  ret ptr %.1
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { nounwind allocsize(1) }

!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 72}
!6 = !{!"GifFileType", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !8, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !10, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"GifImageDesc", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16, !10, i64 24}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!15, !10, i64 24}
!15 = !{!"SavedImage", !11, i64 0, !10, i64 32, !7, i64 40, !10, i64 48}
!16 = !{!17, !7, i64 0}
!17 = !{!"ColorMapObject", !7, i64 0, !7, i64 4, !12, i64 8, !10, i64 16}
!18 = !{!17, !10, i64 16}
!19 = !{!15, !7, i64 12}
!20 = !{!15, !7, i64 8}
!21 = !{!15, !10, i64 32}
!22 = !{!15, !10, i64 48}
!23 = !{!15, !7, i64 40}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass