; LLVM IR from itchio/go-brotli :: tools (brotli)

; 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.Context = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, [20 x i32], i64, i64, i32, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.Context, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 248, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %11 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 0
  store i32 11, ptr %11, align 8, !tbaa !11
  %12 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 1
  store i32 22, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 2
  store i32 0, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 3
  store i32 0, ptr %14, align 4, !tbaa !16
  %15 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 4
  store i32 1, ptr %15, align 8, !tbaa !17
  %16 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 7
  store i32 0, ptr %16, align 4, !tbaa !18
  %17 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 5
  store i32 0, ptr %17, align 4, !tbaa !19
  %18 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 6
  store i32 0, ptr %18, align 8, !tbaa !20
  %19 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 8
  store i32 0, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 9
  store ptr null, ptr %20, align 8, !tbaa !22
  %21 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 10
  store ptr @.str, ptr %21, align 8, !tbaa !23
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %30, %2
  %23 = load i32, ptr %9, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 20
  br i1 %24, label %25, label %33

25:                                               ; preds = %22
  %26 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 11
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [20 x i32], ptr %26, i64 0, i64 %28
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %25
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %9, align 4, !tbaa !5
  br label %22, !llvm.loop !24

33:                                               ; preds = %22
  %34 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 12
  store i64 1, ptr %34, align 8, !tbaa !26
  %35 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 13
  store i64 0, ptr %35, align 8, !tbaa !27
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 14
  store i32 %36, ptr %37, align 8, !tbaa !28
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 15
  store ptr %38, ptr %39, align 8, !tbaa !29
  %40 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 16
  store ptr null, ptr %40, align 8, !tbaa !30
  %41 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 17
  store i32 0, ptr %41, align 8, !tbaa !31
  %42 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 18
  store i32 0, ptr %42, align 4, !tbaa !32
  %43 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 19
  store i32 0, ptr %43, align 8, !tbaa !33
  %44 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  store ptr null, ptr %44, align 8, !tbaa !34
  %45 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 23
  store ptr null, ptr %45, align 8, !tbaa !35
  %46 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 24
  store ptr null, ptr %46, align 8, !tbaa !36
  %47 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 25
  store ptr null, ptr %47, align 8, !tbaa !37
  %48 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 26
  store ptr null, ptr %48, align 8, !tbaa !38
  %49 = call i32 @ParseParams(ptr noundef %7)
  store i32 %49, ptr %6, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %58, label %52

52:                                               ; preds = %33
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 4
  br i1 %57, label %58, label %94

58:                                               ; preds = %55, %52, %33
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %93

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %62 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 12
  %63 = load i64, ptr %62, align 8, !tbaa !26
  %64 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 10
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = call i64 @strlen(ptr noundef %65) #7
  %67 = add i64 %63, %66
  %68 = add i64 %67, 1
  store i64 %68, ptr %10, align 8, !tbaa !39
  %69 = load i64, ptr %10, align 8, !tbaa !39
  %70 = call noalias ptr @malloc(i64 noundef %69) #8
  %71 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 16
  store ptr %70, ptr %71, align 8, !tbaa !30
  %72 = call noalias ptr @malloc(i64 noundef 131072) #8
  %73 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  store ptr %72, ptr %73, align 8, !tbaa !34
  %74 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 16
  %75 = load ptr, ptr %74, align 8, !tbaa !30
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %81

77:                                               ; preds = %61
  %78 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  %79 = load ptr, ptr %78, align 8, !tbaa !34
  %80 = icmp ne ptr %79, null
  br i1 %80, label %84, label %81

81:                                               ; preds = %77, %61
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.1) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %92

84:                                               ; preds = %77
  %85 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  %86 = load ptr, ptr %85, align 8, !tbaa !34
  %87 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 21
  store ptr %86, ptr %87, align 8, !tbaa !40
  %88 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  %89 = load ptr, ptr %88, align 8, !tbaa !34
  %90 = getelementptr inbounds i8, ptr %89, i64 65536
  %91 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 22
  store ptr %90, ptr %91, align 8, !tbaa !41
  br label %92

92:                                               ; preds = %84, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %93

93:                                               ; preds = %92, %58
  br label %94

94:                                               ; preds = %93, %55
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 5, ptr %6, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %97, %94
  %99 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %99, label %106 [
    i32 5, label %114
    i32 6, label %100
    i32 0, label %101
    i32 1, label %103
    i32 4, label %103
    i32 2, label %105
    i32 3, label %105
  ]

100:                                              ; preds = %98
  call void @PrintVersion()
  br label %114

101:                                              ; preds = %98
  %102 = call i32 @CompressFiles(ptr noundef %7)
  store i32 %102, ptr %8, align 4, !tbaa !5
  br label %114

103:                                              ; preds = %98, %98
  %104 = call i32 @DecompressFiles(ptr noundef %7)
  store i32 %104, ptr %8, align 4, !tbaa !5
  br label %114

105:                                              ; preds = %98, %98
  br label %106

106:                                              ; preds = %105, %98
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %107, i64 0
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = call ptr @FileName(ptr noundef %109)
  call void @PrintHelp(ptr noundef %110)
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 2
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %8, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %106, %103, %101, %100, %98
  %115 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 19
  %116 = load i32, ptr %115, align 8, !tbaa !33
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %114
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %118, %114
  %120 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 16
  %121 = load ptr, ptr %120, align 8, !tbaa !30
  call void @free(ptr noundef %121) #6
  %122 = getelementptr inbounds %struct.Context, ptr %7, i32 0, i32 20
  %123 = load ptr, ptr %122, align 8, !tbaa !34
  call void @free(ptr noundef %123) #6
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %127, label %126

126:                                              ; preds = %119
  call void @exit(i32 noundef 1) #9
  unreachable

127:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 248, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseParams(ptr noundef) #0

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

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

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

; 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 @PrintVersion() #0

; Function Attrs: nounwind uwtable
declare hidden i32 @CompressFiles(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @DecompressFiles(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @PrintHelp(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @FileName(ptr noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 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 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 #4 = { 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 #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !13, i64 136, !13, i64 144, !6, i64 152, !10, i64 160, !10, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !6, i64 12}
!17 = !{!12, !6, i64 16}
!18 = !{!12, !6, i64 28}
!19 = !{!12, !6, i64 20}
!20 = !{!12, !6, i64 24}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !10, i64 40}
!23 = !{!12, !10, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !13, i64 136}
!27 = !{!12, !13, i64 144}
!28 = !{!12, !6, i64 152}
!29 = !{!12, !10, i64 160}
!30 = !{!12, !10, i64 168}
!31 = !{!12, !6, i64 176}
!32 = !{!12, !6, i64 180}
!33 = !{!12, !6, i64 184}
!34 = !{!12, !10, i64 192}
!35 = !{!12, !10, i64 216}
!36 = !{!12, !10, i64 224}
!37 = !{!12, !10, i64 232}
!38 = !{!12, !10, i64 240}
!39 = !{!13, !13, i64 0}
!40 = !{!12, !10, i64 200}
!41 = !{!12, !10, i64 208}


; 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.Context = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, [20 x i32], i64, i64, i32, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.Context, align 16
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %3) #8
  store <4 x i32> <i32 11, i32 22, i32 0, i32 0>, ptr %3, align 16, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 1, ptr %4, align 16, !tbaa !9
  %5 = getelementptr inbounds i8, ptr %3, i64 20
  %6 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr null, ptr %6, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %3, i64 48
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  store ptr @.str, ptr %7, align 16, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %3, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false), !tbaa !5
  %9 = getelementptr inbounds i8, ptr %3, i64 136
  store i64 1, ptr %9, align 8, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %3, i64 144
  store i64 0, ptr %10, align 16, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %3, i64 152
  store i32 %0, ptr %11, align 8, !tbaa !17
  %12 = getelementptr inbounds i8, ptr %3, i64 160
  store ptr %1, ptr %12, align 16, !tbaa !18
  %13 = getelementptr inbounds i8, ptr %3, i64 168
  %14 = getelementptr inbounds i8, ptr %3, i64 184
  %15 = getelementptr inbounds i8, ptr %3, i64 192
  store ptr null, ptr %15, align 16, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %3, i64 216
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %13, i8 0, i64 20, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %16, i8 0, i64 32, i1 false)
  %17 = call i32 @ParseParams(ptr noundef nonnull %3)
  switch i32 %17, label %39 [
    i32 4, label %18
    i32 1, label %18
    i32 0, label %18
    i32 5, label %44
    i32 6, label %34
  ]

18:                                               ; preds = %2, %2, %2
  %19 = load i64, ptr %9, align 8, !tbaa !15
  %20 = load ptr, ptr %7, align 16, !tbaa !14
  %21 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %20) #9
  %22 = add i64 %19, 1
  %23 = add i64 %22, %21
  %24 = call noalias ptr @malloc(i64 noundef %23) #10
  store ptr %24, ptr %13, align 8, !tbaa !20
  %25 = call noalias dereferenceable_or_null(131072) ptr @malloc(i64 noundef 131072) #10
  store ptr %25, ptr %15, align 16, !tbaa !19
  %26 = icmp ne ptr %24, null
  %27 = icmp ne ptr %25, null
  %or.cond6 = and i1 %26, %27
  br i1 %or.cond6, label %28, label %.thread31

28:                                               ; preds = %18
  %29 = getelementptr inbounds i8, ptr %3, i64 200
  store ptr %25, ptr %29, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %25, i64 65536
  %31 = getelementptr inbounds i8, ptr %3, i64 208
  store ptr %30, ptr %31, align 16, !tbaa !22
  switch i32 %17, label %39 [
    i32 4, label %37
    i32 1, label %37
    i32 0, label %35
  ]

.thread31:                                        ; preds = %18
  %32 = load ptr, ptr @stderr, align 8, !tbaa !23
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1) #11
  br label %44

34:                                               ; preds = %2
  call void @PrintVersion()
  br label %44

35:                                               ; preds = %28
  %36 = call i32 @CompressFiles(ptr noundef nonnull %3)
  br label %44

37:                                               ; preds = %28, %28
  %38 = call i32 @DecompressFiles(ptr noundef nonnull %3)
  br label %44

39:                                               ; preds = %2, %28
  %40 = load ptr, ptr %1, align 8, !tbaa !23
  %41 = call ptr @FileName(ptr noundef %40)
  call void @PrintHelp(ptr noundef %41)
  %42 = icmp eq i32 %17, 2
  %43 = zext i1 %42 to i32
  br label %44

44:                                               ; preds = %2, %.thread31, %39, %37, %35, %34
  %.2 = phi i32 [ %43, %39 ], [ %38, %37 ], [ %36, %35 ], [ 1, %34 ], [ 0, %.thread31 ], [ 1, %2 ]
  %45 = load i32, ptr %14, align 8, !tbaa !24
  %.not25 = icmp ne i32 %45, 0
  %46 = load ptr, ptr %13, align 8, !tbaa !20
  call void @free(ptr noundef %46) #8
  %47 = load ptr, ptr %15, align 16, !tbaa !19
  call void @free(ptr noundef %47) #8
  %.not2633 = icmp eq i32 %.2, 0
  %.not26 = select i1 %.not25, i1 true, i1 %.not2633
  br i1 %.not26, label %48, label %49

48:                                               ; preds = %44
  call void @exit(i32 noundef 1) #12
  unreachable

49:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %3) #8
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseParams(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; 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 @PrintVersion() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @CompressFiles(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @DecompressFiles(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden ptr @FileName(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

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

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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { noreturn 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !12, i64 136, !12, i64 144, !6, i64 152, !11, i64 160, !11, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 40}
!14 = !{!10, !11, i64 48}
!15 = !{!10, !12, i64 136}
!16 = !{!10, !12, i64 144}
!17 = !{!10, !6, i64 152}
!18 = !{!10, !11, i64 160}
!19 = !{!10, !11, i64 192}
!20 = !{!10, !11, i64 168}
!21 = !{!10, !11, i64 200}
!22 = !{!10, !11, i64 208}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 184}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass