; LLVM IR from yettabaa/FdF :: fdf_parsing (get_data)

; 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.s_get_data = type { i32, i32, i32, ptr, ptr }
%struct.s_colect = type { i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, %struct.s_mlx }
%struct.s_mlx = type { ptr, ptr, ptr, ptr, i32, i32, i32 }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @get_data(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.s_get_data, align 8
  %6 = 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 32, ptr %5) #4
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds ptr, ptr %7, i64 1
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.s_colect, ptr %10, i32 0, i32 0
  %12 = call ptr @get_next_line(ptr noundef %9, ptr noundef %11)
  %13 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 4
  store ptr %12, ptr %13, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.s_colect, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 8, !tbaa !12
  %17 = sext i32 %16 to i64
  %18 = mul i64 8, %17
  %19 = call noalias ptr @malloc(i64 noundef %18) #5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.s_colect, ptr %20, i32 0, i32 2
  store ptr %19, ptr %21, align 8, !tbaa !16
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.s_colect, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !12
  %25 = sext i32 %24 to i64
  %26 = mul i64 8, %25
  %27 = call noalias ptr @malloc(i64 noundef %26) #5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_colect, ptr %28, i32 0, i32 3
  store ptr %27, ptr %29, align 8, !tbaa !17
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.s_colect, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %39

34:                                               ; preds = %2
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.s_colect, ptr %35, i32 0, i32 3
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = icmp ne ptr %37, null
  br i1 %38, label %40, label %39

39:                                               ; preds = %34, %2
  store i32 1, ptr %6, align 4
  br label %183

40:                                               ; preds = %34
  %41 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  store i32 0, ptr %41, align 4, !tbaa !18
  %42 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !18
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %43, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 2
  %50 = call ptr @ft_split_count(ptr noundef %48, i8 noundef signext 32, ptr noundef %49)
  %51 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 3
  store ptr %50, ptr %51, align 8, !tbaa !19
  %52 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 2
  %53 = load i32, ptr %52, align 8, !tbaa !20
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.s_colect, ptr %54, i32 0, i32 1
  store i32 %53, ptr %55, align 4, !tbaa !21
  br label %56

56:                                               ; preds = %179, %40
  %57 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !18
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %57, align 4, !tbaa !18
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s_colect, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = icmp sle i32 %59, %62
  br i1 %63, label %64, label %180

64:                                               ; preds = %56
  %65 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 0
  store i32 -1, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s_colect, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = sext i32 %68 to i64
  %70 = mul i64 4, %69
  %71 = call noalias ptr @malloc(i64 noundef %70) #5
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.s_colect, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !18
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %74, i64 %78
  store ptr %71, ptr %79, align 8, !tbaa !5
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.s_colect, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !21
  %83 = sext i32 %82 to i64
  %84 = mul i64 4, %83
  %85 = call noalias ptr @malloc(i64 noundef %84) #5
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.s_colect, ptr %86, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !17
  %89 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !18
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %88, i64 %92
  store ptr %85, ptr %93, align 8, !tbaa !5
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.s_colect, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !18
  %99 = sub nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %96, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %115

104:                                              ; preds = %64
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.s_colect, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  %108 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %109 = load i32, ptr %108, align 4, !tbaa !18
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %107, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = icmp ne ptr %113, null
  br i1 %114, label %116, label %115

115:                                              ; preds = %104, %64
  store i32 1, ptr %6, align 4
  br label %183

116:                                              ; preds = %104
  br label %117

117:                                              ; preds = %125, %116
  %118 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !22
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %118, align 8, !tbaa !22
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.s_colect, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !21
  %124 = icmp slt i32 %120, %123
  br i1 %124, label %125, label %159

125:                                              ; preds = %117
  %126 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !22
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %127, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.s_colect, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds ptr, ptr %135, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !22
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i32, ptr %141, i64 %144
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.s_colect, ptr %146, i32 0, i32 3
  %148 = load ptr, ptr %147, align 8, !tbaa !17
  %149 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !18
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %148, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 0
  %156 = load i32, ptr %155, align 8, !tbaa !22
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i32, ptr %154, i64 %157
  call void @zc(ptr noundef %132, ptr noundef %145, ptr noundef %158)
  br label %117, !llvm.loop !23

159:                                              ; preds = %117
  %160 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !19
  call void @free_strs(ptr noundef %161)
  %162 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !18
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %163, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 2
  %170 = call ptr @ft_split_count(ptr noundef %168, i8 noundef signext 32, ptr noundef %169)
  %171 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 3
  store ptr %170, ptr %171, align 8, !tbaa !19
  %172 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 2
  %173 = load i32, ptr %172, align 8, !tbaa !20
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.s_colect, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !21
  %177 = icmp slt i32 %173, %176
  br i1 %177, label %178, label %179

178:                                              ; preds = %159
  call void @ft_error(ptr noundef @.str)
  br label %179

179:                                              ; preds = %178, %159
  br label %56, !llvm.loop !25

180:                                              ; preds = %56
  %181 = getelementptr inbounds %struct.s_get_data, ptr %5, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  call void @free_strs(ptr noundef %182)
  store i32 0, ptr %6, align 4
  br label %183

183:                                              ; preds = %180, %115, %39
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  %184 = load i32, ptr %6, align 4
  switch i32 %184, label %186 [
    i32 0, label %185
    i32 1, label %185
  ]

185:                                              ; preds = %183, %183
  ret void

186:                                              ; preds = %183
  unreachable
}

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

declare ptr @get_next_line(ptr noundef, ptr noundef) #2

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

declare ptr @ft_split_count(ptr noundef, i8 noundef signext, ptr noundef) #2

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

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

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

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 = { "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 }
attributes #5 = { 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, !6, i64 24}
!10 = !{!"s_get_data", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"s_colect", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !15, i64 104}
!14 = !{!"double", !7, i64 0}
!15 = !{!"s_mlx", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40}
!16 = !{!13, !6, i64 8}
!17 = !{!13, !6, i64 16}
!18 = !{!10, !11, i64 4}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !11, i64 8}
!21 = !{!13, !11, i64 4}
!22 = !{!10, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @get_data(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.s_get_data, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call ptr @get_next_line(ptr noundef %5, ptr noundef %0) #4
  %7 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %6, ptr %7, align 8, !tbaa !9
  %8 = load i32, ptr %0, align 8, !tbaa !12
  %9 = sext i32 %8 to i64
  %10 = shl nsw i64 %9, 3
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %11, ptr %12, align 8, !tbaa !16
  %13 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %13, ptr %14, align 8, !tbaa !17
  %.not = icmp eq ptr %11, null
  %.not20 = icmp eq ptr %13, null
  %or.cond = or i1 %.not, %.not20
  br i1 %or.cond, label %.loopexit, label %15

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 0, ptr %16, align 4, !tbaa !18
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = call ptr @ft_split_count(ptr noundef %17, i8 noundef signext 32, ptr noundef nonnull %18) #4
  %20 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !19
  %21 = load i32, ptr %18, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %21, ptr %22, align 4, !tbaa !21
  %23 = load i32, ptr %16, align 4, !tbaa !18
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %16, align 4, !tbaa !18
  %25 = load i32, ptr %0, align 8, !tbaa !12
  %.not21.not24 = icmp slt i32 %23, %25
  br i1 %.not21.not24, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %15, %80
  %26 = phi i32 [ %82, %80 ], [ %24, %15 ]
  %27 = phi i32 [ %81, %80 ], [ %23, %15 ]
  %28 = load i32, ptr %22, align 4, !tbaa !21
  %29 = sext i32 %28 to i64
  %30 = shl nsw i64 %29, 2
  %31 = call noalias ptr @malloc(i64 noundef %30) #5
  %32 = load ptr, ptr %12, align 8, !tbaa !16
  %33 = sext i32 %26 to i64
  %34 = getelementptr ptr, ptr %32, i64 %33
  %35 = getelementptr i8, ptr %34, i64 -8
  store ptr %31, ptr %35, align 8, !tbaa !5
  %36 = call noalias ptr @malloc(i64 noundef %30) #5
  %37 = load ptr, ptr %14, align 8, !tbaa !17
  %38 = getelementptr ptr, ptr %37, i64 %33
  %39 = getelementptr i8, ptr %38, i64 -8
  store ptr %36, ptr %39, align 8, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !16
  %41 = sext i32 %27 to i64
  %42 = getelementptr inbounds ptr, ptr %40, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %.not22 = icmp eq ptr %43, null
  br i1 %.not22, label %.loopexit, label %44

44:                                               ; preds = %.lr.ph26
  %45 = load ptr, ptr %14, align 8, !tbaa !17
  %46 = getelementptr inbounds ptr, ptr %45, i64 %41
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %.not23 = icmp eq ptr %47, null
  br i1 %.not23, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %44
  store i32 0, ptr %3, align 8, !tbaa !22
  %48 = icmp sgt i32 %28, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %49 = phi i32 [ %66, %.lr.ph ], [ 0, %.preheader ]
  %50 = load ptr, ptr %20, align 8, !tbaa !19
  %51 = sext i32 %49 to i64
  %52 = getelementptr inbounds ptr, ptr %50, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !16
  %55 = load i32, ptr %16, align 4, !tbaa !18
  %56 = add nsw i32 %55, -1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %54, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i32, ptr %59, i64 %51
  %61 = load ptr, ptr %14, align 8, !tbaa !17
  %62 = getelementptr inbounds ptr, ptr %61, i64 %57
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 %51
  call void @zc(ptr noundef %53, ptr noundef %60, ptr noundef %64)
  %65 = load i32, ptr %3, align 8, !tbaa !22
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %3, align 8, !tbaa !22
  %67 = load i32, ptr %22, align 4, !tbaa !21
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %.lr.ph, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %69 = load ptr, ptr %20, align 8, !tbaa !19
  call void @free_strs(ptr noundef %69)
  %70 = load ptr, ptr %7, align 8, !tbaa !9
  %71 = load i32, ptr %16, align 4, !tbaa !18
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = call ptr @ft_split_count(ptr noundef %74, i8 noundef signext 32, ptr noundef nonnull %18) #4
  store ptr %75, ptr %20, align 8, !tbaa !19
  %76 = load i32, ptr %18, align 8, !tbaa !20
  %77 = load i32, ptr %22, align 4, !tbaa !21
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %._crit_edge
  call void @ft_error(ptr noundef nonnull @.str)
  br label %80

80:                                               ; preds = %79, %._crit_edge
  %81 = load i32, ptr %16, align 4, !tbaa !18
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %16, align 4, !tbaa !18
  %83 = load i32, ptr %0, align 8, !tbaa !12
  %.not21.not = icmp slt i32 %81, %83
  br i1 %.not21.not, label %.lr.ph26, label %._crit_edge27, !llvm.loop !25

._crit_edge27:                                    ; preds = %80, %15
  %84 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free_strs(ptr noundef %84)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph26, %44, %2, %._crit_edge27
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret void
}

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

declare ptr @get_next_line(ptr noundef, ptr 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

declare ptr @ft_split_count(ptr noundef, i8 noundef signext, ptr noundef) local_unnamed_addr #2

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

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

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

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 = { "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 = { nounwind }
attributes #5 = { 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, !6, i64 24}
!10 = !{!"s_get_data", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"s_colect", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !15, i64 104}
!14 = !{!"double", !7, i64 0}
!15 = !{!"s_mlx", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40}
!16 = !{!13, !6, i64 8}
!17 = !{!13, !6, i64 16}
!18 = !{!10, !11, i64 4}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !11, i64 8}
!21 = !{!13, !11, i64 4}
!22 = !{!10, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass