; LLVM IR from csviragh/robotsim :: src/utilities (file_utils)

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @FindCharOrComment(ptr noundef, i8 noundef signext) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @IniParseFile(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [256 x i8], align 16
  %8 = alloca [32 x i8], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %166, %3
  %17 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call ptr @fgets(ptr noundef %17, i32 noundef 256, ptr noundef %18)
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %167

21:                                               ; preds = %16
  %22 = load i32, ptr %14, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %14, align 4, !tbaa !9
  %24 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %25 = call ptr @RStrip(ptr noundef %24)
  %26 = call ptr @LSkip(ptr noundef %25)
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %28 = load i8, ptr %27, align 16, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %54

31:                                               ; preds = %21
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %54

36:                                               ; preds = %31
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %39 = icmp ugt ptr %37, %38
  br i1 %39, label %40, label %54

40:                                               ; preds = %36
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %44 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = call i32 %41(ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %53, label %48

48:                                               ; preds = %40
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %53, label %51

51:                                               ; preds = %48
  %52 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %52, ptr %15, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %51, %48, %40
  br label %166

54:                                               ; preds = %36, %31, %21
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 59
  br i1 %58, label %64, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 35
  br i1 %63, label %64, label %65

64:                                               ; preds = %59, %54
  br label %165

65:                                               ; preds = %59
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, 91
  br i1 %69, label %70, label %92

70:                                               ; preds = %65
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  %73 = call ptr @FindCharOrComment(ptr noundef %72, i8 noundef signext 93)
  store ptr %73, ptr %11, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %76, 93
  br i1 %77, label %78, label %85

78:                                               ; preds = %70
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %79, align 1, !tbaa !11
  %80 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 1
  %83 = call ptr @StrnCpy0(ptr noundef %80, ptr noundef %82, i32 noundef 32)
  %84 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  store i8 0, ptr %84, align 16, !tbaa !11
  br label %91

85:                                               ; preds = %70
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %90, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %89, ptr %15, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %88, %85
  br label %91

91:                                               ; preds = %90, %78
  br label %164

92:                                               ; preds = %65
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = sext i8 %94 to i32
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %163

97:                                               ; preds = %92
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i8, ptr %98, align 1, !tbaa !11
  %100 = sext i8 %99 to i32
  %101 = icmp ne i32 %100, 59
  br i1 %101, label %102, label %163

102:                                              ; preds = %97
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = call ptr @FindCharOrComment(ptr noundef %103, i8 noundef signext 61)
  store ptr %104, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i8, ptr %105, align 1, !tbaa !11
  %107 = sext i8 %106 to i32
  %108 = icmp ne i32 %107, 61
  br i1 %108, label %109, label %112

109:                                              ; preds = %102
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call ptr @FindCharOrComment(ptr noundef %110, i8 noundef signext 58)
  store ptr %111, ptr %11, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %109, %102
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %115, 61
  br i1 %116, label %122, label %117

117:                                              ; preds = %112
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = icmp eq i32 %120, 58
  br i1 %121, label %122, label %156

122:                                              ; preds = %117, %112
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %123, align 1, !tbaa !11
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = call ptr @RStrip(ptr noundef %124)
  store ptr %125, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 1
  %128 = call ptr @LSkip(ptr noundef %127)
  store ptr %128, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = call ptr @FindCharOrComment(ptr noundef %129, i8 noundef signext 0)
  store ptr %130, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = sext i8 %132 to i32
  %134 = icmp eq i32 %133, 58
  br i1 %134, label %135, label %137

135:                                              ; preds = %122
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %136, align 1, !tbaa !11
  br label %137

137:                                              ; preds = %135, %122
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = call ptr @RStrip(ptr noundef %138)
  %140 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = call ptr @StrnCpy0(ptr noundef %140, ptr noundef %141, i32 noundef 64)
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = call i32 %143(ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %147)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %155, label %150

150:                                              ; preds = %137
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %155, label %153

153:                                              ; preds = %150
  %154 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %154, ptr %15, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %153, %150, %137
  br label %162

156:                                              ; preds = %117
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %161, label %159

159:                                              ; preds = %156
  %160 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %160, ptr %15, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %159, %156
  br label %162

162:                                              ; preds = %161, %155
  br label %163

163:                                              ; preds = %162, %97, %92
  br label %164

164:                                              ; preds = %163, %91
  br label %165

165:                                              ; preds = %164, %64
  br label %166

166:                                              ; preds = %165, %53
  br label %16, !llvm.loop !12

167:                                              ; preds = %16
  %168 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #4
  ret i32 %168
}

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

; Function Attrs: nounwind uwtable
declare dso_local ptr @RStrip(ptr noundef) local_unnamed_addr #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: 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 dso_local ptr @LSkip(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @FindCharOrComment(ptr noundef, i8 noundef signext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @StrnCpy0(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @IniParseFile(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca [256 x i8], align 16
  %5 = alloca [32 x i8], align 16
  %6 = alloca [64 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  %7 = call ptr @fgets(ptr noundef nonnull %4, i32 noundef 256, ptr noundef %0)
  %.not65 = icmp eq ptr %7, null
  br i1 %.not65, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %46
  %.067 = phi i32 [ %.1, %46 ], [ 0, %3 ]
  %.04766 = phi i32 [ %8, %46 ], [ 0, %3 ]
  %8 = add nuw nsw i32 %.04766, 1
  %9 = call ptr @RStrip(ptr noundef nonnull %4)
  %10 = call ptr @LSkip(ptr noundef %9)
  %11 = load i8, ptr %6, align 16, !tbaa !5
  %.not52 = icmp eq i8 %11, 0
  %.pr = load i8, ptr %10, align 1, !tbaa !5
  br i1 %.not52, label %thread-pre-split, label %12

12:                                               ; preds = %.lr.ph
  %13 = icmp ne i8 %.pr, 0
  %14 = icmp ugt ptr %10, %4
  %or.cond = and i1 %13, %14
  br i1 %or.cond, label %15, label %thread-pre-split

15:                                               ; preds = %12
  %16 = call i32 %1(ptr noundef %2, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %10) #4
  %17 = icmp ne i32 %16, 0
  %18 = icmp ne i32 %.067, 0
  %or.cond4 = select i1 %17, i1 true, i1 %18
  %spec.select = select i1 %or.cond4, i32 %.067, i32 %8
  br label %46

thread-pre-split:                                 ; preds = %.lr.ph, %12
  switch i8 %.pr, label %27 [
    i8 59, label %46
    i8 35, label %46
    i8 91, label %19
    i8 0, label %46
  ]

19:                                               ; preds = %thread-pre-split
  %20 = getelementptr inbounds i8, ptr %10, i64 1
  %21 = call ptr @FindCharOrComment(ptr noundef nonnull %20, i8 noundef signext 93)
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = icmp eq i8 %22, 93
  br i1 %23, label %24, label %26

24:                                               ; preds = %19
  store i8 0, ptr %21, align 1, !tbaa !5
  %25 = call ptr @StrnCpy0(ptr noundef nonnull %5, ptr noundef nonnull %20, i32 noundef 32)
  store i8 0, ptr %6, align 16, !tbaa !5
  br label %46

26:                                               ; preds = %19
  %.not57 = icmp eq i32 %.067, 0
  %spec.select58 = select i1 %.not57, i32 %8, i32 %.067
  br label %46

27:                                               ; preds = %thread-pre-split
  %28 = call ptr @FindCharOrComment(ptr noundef nonnull %10, i8 noundef signext 61)
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %.not55 = icmp eq i8 %29, 61
  br i1 %.not55, label %.thread, label %30

30:                                               ; preds = %27
  %31 = call ptr @FindCharOrComment(ptr noundef nonnull %10, i8 noundef signext 58)
  %.pr61 = load i8, ptr %31, align 1, !tbaa !5
  switch i8 %.pr61, label %45 [
    i8 61, label %.thread
    i8 58, label %.thread
  ]

.thread:                                          ; preds = %27, %30, %30
  %.04864 = phi ptr [ %31, %30 ], [ %31, %30 ], [ %28, %27 ]
  store i8 0, ptr %.04864, align 1, !tbaa !5
  %32 = call ptr @RStrip(ptr noundef nonnull %10)
  %33 = getelementptr inbounds i8, ptr %.04864, i64 1
  %34 = call ptr @LSkip(ptr noundef nonnull %33)
  %35 = call ptr @FindCharOrComment(ptr noundef %34, i8 noundef signext 0)
  %36 = load i8, ptr %35, align 1, !tbaa !5
  %37 = icmp eq i8 %36, 58
  br i1 %37, label %38, label %39

38:                                               ; preds = %.thread
  store i8 0, ptr %35, align 1, !tbaa !5
  br label %39

39:                                               ; preds = %38, %.thread
  %40 = call ptr @RStrip(ptr noundef %34)
  %41 = call ptr @StrnCpy0(ptr noundef nonnull %6, ptr noundef %32, i32 noundef 64)
  %42 = call i32 %1(ptr noundef %2, ptr noundef nonnull %5, ptr noundef %32, ptr noundef %34) #4
  %43 = icmp ne i32 %42, 0
  %44 = icmp ne i32 %.067, 0
  %or.cond6 = select i1 %43, i1 true, i1 %44
  %spec.select59 = select i1 %or.cond6, i32 %.067, i32 %8
  br label %46

45:                                               ; preds = %30
  %.not56 = icmp eq i32 %.067, 0
  %spec.select60 = select i1 %.not56, i32 %8, i32 %.067
  br label %46

46:                                               ; preds = %45, %39, %26, %15, %thread-pre-split, %thread-pre-split, %thread-pre-split, %24
  %.1 = phi i32 [ %.067, %thread-pre-split ], [ %.067, %24 ], [ %spec.select, %15 ], [ %.067, %thread-pre-split ], [ %spec.select58, %26 ], [ %.067, %thread-pre-split ], [ %spec.select59, %39 ], [ %spec.select60, %45 ]
  %47 = call ptr @fgets(ptr noundef nonnull %4, i32 noundef 256, ptr noundef %0)
  %.not = icmp eq ptr %47, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %46, %3
  %.0.lcssa = phi i32 [ 0, %3 ], [ %.1, %46 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #4
  ret i32 %.0.lcssa
}

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass