; LLVM IR from joltwallet/jolt_wallet :: components/console/argtable3 (argtable3)

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

@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
define dso_local ptr @arg_filen(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load i32, ptr %11, align 4, !tbaa !9
  %17 = load i32, ptr %10, align 4, !tbaa !9
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %21

19:                                               ; preds = %6
  %20 = load i32, ptr %10, align 4, !tbaa !9
  br label %23

21:                                               ; preds = %6
  %22 = load i32, ptr %11, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %21, %19
  %24 = phi i32 [ %20, %19 ], [ %22, %21 ]
  store i32 %24, ptr %11, align 4, !tbaa !9
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = mul i64 8, %26
  %28 = add i64 128, %27
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = mul i64 8, %30
  %32 = add i64 %28, %31
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = mul i64 8, %34
  %36 = add i64 %32, %35
  store i64 %36, ptr %13, align 8, !tbaa !11
  %37 = load i64, ptr %13, align 8, !tbaa !11
  %38 = call noalias ptr @malloc(i64 noundef %37) #4
  store ptr %38, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %140

41:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.arg_file, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %struct.arg_hdr, ptr %43, i32 0, i32 0
  store i8 2, ptr %44, align 8, !tbaa !13
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.arg_file, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.arg_hdr, ptr %47, i32 0, i32 1
  store ptr %45, ptr %48, align 8, !tbaa !16
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.arg_file, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.arg_hdr, ptr %51, i32 0, i32 2
  store ptr %49, ptr %52, align 8, !tbaa !17
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.arg_file, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.arg_hdr, ptr %55, i32 0, i32 4
  store ptr %53, ptr %56, align 8, !tbaa !18
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %41
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  br label %62

61:                                               ; preds = %41
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi ptr [ %60, %59 ], [ @.str.7, %61 ]
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.arg_file, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.arg_hdr, ptr %65, i32 0, i32 3
  store ptr %63, ptr %66, align 8, !tbaa !19
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.arg_file, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.arg_hdr, ptr %69, i32 0, i32 5
  store i32 %67, ptr %70, align 8, !tbaa !20
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.arg_file, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.arg_hdr, ptr %73, i32 0, i32 6
  store i32 %71, ptr %74, align 4, !tbaa !21
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.arg_file, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %struct.arg_hdr, ptr %77, i32 0, i32 7
  store ptr %75, ptr %78, align 8, !tbaa !22
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.arg_file, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds %struct.arg_hdr, ptr %80, i32 0, i32 8
  store ptr @arg_file_resetfn, ptr %81, align 8, !tbaa !23
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.arg_file, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.arg_hdr, ptr %83, i32 0, i32 9
  store ptr @arg_file_scanfn, ptr %84, align 8, !tbaa !24
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.arg_file, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.arg_hdr, ptr %86, i32 0, i32 10
  store ptr @arg_file_checkfn, ptr %87, align 8, !tbaa !25
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.arg_file, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.arg_hdr, ptr %89, i32 0, i32 11
  store ptr @arg_file_errorfn, ptr %90, align 8, !tbaa !26
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.arg_file, ptr %91, i64 1
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.arg_file, ptr %93, i32 0, i32 2
  store ptr %92, ptr %94, align 8, !tbaa !27
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.arg_file, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.arg_file, ptr %101, i32 0, i32 3
  store ptr %100, ptr %102, align 8, !tbaa !28
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.arg_file, ptr %103, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !28
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.arg_file, ptr %109, i32 0, i32 4
  store ptr %108, ptr %110, align 8, !tbaa !29
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.arg_file, ptr %111, i32 0, i32 1
  store i32 0, ptr %112, align 8, !tbaa !30
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %136, %62
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %139

117:                                              ; preds = %113
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.arg_file, ptr %118, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !27
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  store ptr @.str.8, ptr %123, align 8, !tbaa !5
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.arg_file, ptr %124, i32 0, i32 3
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  store ptr @.str.8, ptr %129, align 8, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.arg_file, ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !29
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  store ptr @.str.8, ptr %135, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %117
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %15, align 4, !tbaa !9
  br label %113, !llvm.loop !31

139:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %140

140:                                              ; preds = %139, %23
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret ptr %144
}

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"arg_file", !15, i64 0, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!15 = !{!"arg_hdr", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!16 = !{!14, !6, i64 8}
!17 = !{!14, !6, i64 16}
!18 = !{!14, !6, i64 32}
!19 = !{!14, !6, i64 24}
!20 = !{!14, !10, i64 40}
!21 = !{!14, !10, i64 44}
!22 = !{!14, !6, i64 48}
!23 = !{!14, !6, i64 56}
!24 = !{!14, !6, i64 64}
!25 = !{!14, !6, i64 72}
!26 = !{!14, !6, i64 80}
!27 = !{!14, !6, i64 104}
!28 = !{!14, !6, i64 112}
!29 = !{!14, !6, i64 120}
!30 = !{!14, !10, i64 96}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1

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

; Function Attrs: nofree nounwind memory(readwrite, argmem: write) uwtable
define dso_local noundef ptr @arg_filen(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = tail call i32 @llvm.smax.i32(i32 %4, i32 %3)
  %8 = sext i32 %7 to i64
  %reass.mul = mul nsw i64 %8, 24
  %9 = add nsw i64 %reass.mul, 128
  %10 = tail call noalias ptr @malloc(i64 noundef %9) #4
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %.loopexit, label %11

11:                                               ; preds = %6
  store i8 2, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %0, ptr %12, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %1, ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %5, ptr %14, align 8, !tbaa !14
  %.not48 = icmp eq ptr %2, null
  %15 = select i1 %.not48, ptr @.str.7, ptr %2
  %16 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %15, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 %3, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %10, i64 44
  store i32 %7, ptr %18, align 4, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %10, i64 48
  store ptr %10, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %10, i64 56
  store ptr @arg_file_resetfn, ptr %20, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %10, i64 64
  store ptr @arg_file_scanfn, ptr %21, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %10, i64 72
  store ptr @arg_file_checkfn, ptr %22, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %10, i64 80
  store ptr @arg_file_errorfn, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %10, i64 128
  %25 = getelementptr inbounds i8, ptr %10, i64 104
  store ptr %24, ptr %25, align 8, !tbaa !23
  %26 = getelementptr inbounds ptr, ptr %24, i64 %8
  %27 = getelementptr inbounds i8, ptr %10, i64 112
  store ptr %26, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds ptr, ptr %26, i64 %8
  %29 = getelementptr inbounds i8, ptr %10, i64 120
  store ptr %28, ptr %29, align 8, !tbaa !25
  %30 = getelementptr inbounds i8, ptr %10, i64 96
  store i32 0, ptr %30, align 8, !tbaa !26
  %31 = icmp sgt i32 %7, 0
  br i1 %31, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %11
  %wide.trip.count = zext nneg i32 %7 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %32 = icmp eq i32 %7, 1
  br i1 %32, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %33 = load ptr, ptr %25, align 8, !tbaa !23
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  store ptr @.str.8, ptr %34, align 8, !tbaa !27
  %35 = load ptr, ptr %27, align 8, !tbaa !24
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv
  store ptr @.str.8, ptr %36, align 8, !tbaa !27
  %37 = load ptr, ptr %29, align 8, !tbaa !25
  %38 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv
  store ptr @.str.8, ptr %38, align 8, !tbaa !27
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %39 = load ptr, ptr %25, align 8, !tbaa !23
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv.next
  store ptr @.str.8, ptr %40, align 8, !tbaa !27
  %41 = load ptr, ptr %27, align 8, !tbaa !24
  %42 = getelementptr inbounds ptr, ptr %41, i64 %indvars.iv.next
  store ptr @.str.8, ptr %42, align 8, !tbaa !27
  %43 = load ptr, ptr %29, align 8, !tbaa !25
  %44 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv.next
  store ptr @.str.8, ptr %44, align 8, !tbaa !27
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !28

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit.loopexit.unr-lcssa
  %45 = load ptr, ptr %25, align 8, !tbaa !23
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv.unr
  store ptr @.str.8, ptr %46, align 8, !tbaa !27
  %47 = load ptr, ptr %27, align 8, !tbaa !24
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv.unr
  store ptr @.str.8, ptr %48, align 8, !tbaa !27
  %49 = load ptr, ptr %29, align 8, !tbaa !25
  %50 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv.unr
  store ptr @.str.8, ptr %50, align 8, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.epil, %.loopexit.loopexit.unr-lcssa, %11, %6
  ret ptr %10
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

attributes #0 = { 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 #1 = { nofree nounwind memory(readwrite, argmem: write) 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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"arg_file", !7, i64 0, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!7 = !{!"arg_hdr", !8, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 44, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 24}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 44}
!18 = !{!6, !10, i64 48}
!19 = !{!6, !10, i64 56}
!20 = !{!6, !10, i64 64}
!21 = !{!6, !10, i64 72}
!22 = !{!6, !10, i64 80}
!23 = !{!6, !10, i64 104}
!24 = !{!6, !10, i64 112}
!25 = !{!6, !10, i64 120}
!26 = !{!6, !11, i64 96}
!27 = !{!10, !10, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass