; LLVM IR from holzschu/ios_system :: text_cmds/csplit (csplit)

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

@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@sflag = external dso_local global i32, align 4
@kflag = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@prefix = external dso_local global ptr, align 8
@sufflen = external dso_local global i64, align 8
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@optarg = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@optind = external global i32, align 4
@infn = external dso_local global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@infile = external dso_local global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@doclean = external dso_local global i32, align 4
@lineno = external dso_local global i64, align 8
@nfiles = external dso_local global i64, align 8
@truncofs = external dso_local global i64, align 8
@overfile = external dso_local global ptr, align 8
@maxfiles = external dso_local global i64, align 8
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@reps = external dso_local global i64, align 8
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@currfile = external dso_local global [4096 x i8], align 16

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, 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 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %12 = call ptr @setlocale(i32 noundef 6, ptr noundef @.str.3) #7
  store i32 0, ptr @sflag, align 4, !tbaa !5
  store i32 0, ptr @kflag, align 4, !tbaa !5
  store ptr @.str.4, ptr @prefix, align 8, !tbaa !9
  store i64 2, ptr @sufflen, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %43, %2
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = call i32 @getopt(i32 noundef %14, ptr noundef %15, ptr noundef @.str.5) #7
  store i32 %16, ptr %7, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %18, label %44

18:                                               ; preds = %13
  %19 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %19, label %42 [
    i32 102, label %20
    i32 107, label %22
    i32 110, label %23
    i32 115, label %41
  ]

20:                                               ; preds = %18
  %21 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %21, ptr @prefix, align 8, !tbaa !9
  br label %43

22:                                               ; preds = %18
  store i32 1, ptr @kflag, align 4, !tbaa !5
  br label %43

23:                                               ; preds = %18
  %24 = call ptr @__errno_location() #8
  store i32 0, ptr %24, align 4, !tbaa !5
  %25 = load ptr, ptr @optarg, align 8, !tbaa !9
  %26 = call i64 @strtol(ptr noundef %25, ptr noundef %9, i32 noundef 10) #7
  store i64 %26, ptr @sufflen, align 8, !tbaa !11
  %27 = load i64, ptr @sufflen, align 8, !tbaa !11
  %28 = icmp sle i64 %27, 0
  br i1 %28, label %38, label %29

29:                                               ; preds = %23
  %30 = load ptr, ptr %9, align 8, !tbaa !9
  %31 = load i8, ptr %30, align 1, !tbaa !13
  %32 = sext i8 %31 to i32
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %38, label %34

34:                                               ; preds = %29
  %35 = call ptr @__errno_location() #8
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %34, %29, %23
  %39 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.6, ptr noundef %39) #9
  unreachable

40:                                               ; preds = %34
  br label %43

41:                                               ; preds = %18
  store i32 1, ptr @sflag, align 4, !tbaa !5
  br label %43

42:                                               ; preds = %18
  call void @usage()
  br label %43

43:                                               ; preds = %42, %41, %40, %22, %20
  br label %13, !llvm.loop !14

44:                                               ; preds = %13
  %45 = load i64, ptr @sufflen, align 8, !tbaa !11
  %46 = load ptr, ptr @prefix, align 8, !tbaa !9
  %47 = call i64 @strlen(ptr noundef %46) #10
  %48 = add i64 %45, %47
  %49 = icmp uge i64 %48, 4096
  br i1 %49, label %50, label %51

50:                                               ; preds = %44
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.7) #9
  unreachable

51:                                               ; preds = %44
  %52 = load i32, ptr @optind, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sub nsw i32 %53, %52
  store i32 %54, ptr %4, align 4, !tbaa !5
  %55 = load i32, ptr @optind, align 4, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = sext i32 %55 to i64
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  store ptr %58, ptr %5, align 8, !tbaa !9
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i32 1
  store ptr %60, ptr %5, align 8, !tbaa !9
  %61 = load ptr, ptr %59, align 8, !tbaa !9
  store ptr %61, ptr @infn, align 8, !tbaa !9
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %51
  call void @usage()
  br label %64

64:                                               ; preds = %63, %51
  %65 = load ptr, ptr @infn, align 8, !tbaa !9
  %66 = call i32 @strcmp(ptr noundef %65, ptr noundef @.str.8) #10
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %69, ptr @infile, align 8, !tbaa !9
  store ptr @.str.9, ptr @infn, align 8, !tbaa !9
  br label %77

70:                                               ; preds = %64
  %71 = load ptr, ptr @infn, align 8, !tbaa !9
  %72 = call noalias ptr @fopen(ptr noundef %71, ptr noundef @.str.10)
  store ptr %72, ptr @infile, align 8, !tbaa !9
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load ptr, ptr @infn, align 8, !tbaa !9
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.11, ptr noundef %75) #9
  unreachable

76:                                               ; preds = %70
  br label %77

77:                                               ; preds = %76, %68
  %78 = load i32, ptr @kflag, align 4, !tbaa !5
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %82, label %80

80:                                               ; preds = %77
  store i32 1, ptr @doclean, align 4, !tbaa !5
  %81 = call i32 @atexit(ptr noundef @cleanup) #7
  br label %82

82:                                               ; preds = %80, %77
  store i64 0, ptr @lineno, align 8, !tbaa !11
  store i64 0, ptr @nfiles, align 8, !tbaa !11
  store i64 0, ptr @truncofs, align 8, !tbaa !11
  store ptr null, ptr @overfile, align 8, !tbaa !9
  store i64 1, ptr @maxfiles, align 8, !tbaa !11
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %96, %82
  %84 = load i64, ptr %6, align 8, !tbaa !11
  %85 = load i64, ptr @sufflen, align 8, !tbaa !11
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %87, label %99

87:                                               ; preds = %83
  %88 = load i64, ptr @maxfiles, align 8, !tbaa !11
  %89 = icmp sgt i64 %88, 922337203685477580
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i64, ptr @sufflen, align 8, !tbaa !11
  %92 = load i64, ptr %6, align 8, !tbaa !11
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.12, i64 noundef %91, i64 noundef %92) #9
  unreachable

93:                                               ; preds = %87
  %94 = load i64, ptr @maxfiles, align 8, !tbaa !11
  %95 = mul nsw i64 %94, 10
  store i64 %95, ptr @maxfiles, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %93
  %97 = load i64, ptr %6, align 8, !tbaa !11
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %6, align 8, !tbaa !11
  br label %83, !llvm.loop !16

99:                                               ; preds = %83
  br label %100

100:                                              ; preds = %189, %99
  %101 = load i64, ptr @nfiles, align 8, !tbaa !11
  %102 = load i64, ptr @maxfiles, align 8, !tbaa !11
  %103 = sub nsw i64 %102, 1
  %104 = icmp slt i64 %101, %103
  br i1 %104, label %105, label %110

105:                                              ; preds = %100
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i32 1
  store ptr %107, ptr %5, align 8, !tbaa !9
  %108 = load ptr, ptr %106, align 8, !tbaa !9
  store ptr %108, ptr %8, align 8, !tbaa !9
  %109 = icmp ne ptr %108, null
  br label %110

110:                                              ; preds = %105, %100
  %111 = phi i1 [ false, %100 ], [ %109, %105 ]
  br i1 %111, label %112, label %190

112:                                              ; preds = %110
  %113 = load ptr, ptr %5, align 8, !tbaa !9
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %146

116:                                              ; preds = %112
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = load i8, ptr %118, align 1, !tbaa !13
  %120 = sext i8 %119 to i32
  %121 = icmp eq i32 %120, 123
  br i1 %121, label %122, label %146

122:                                              ; preds = %116
  %123 = call ptr @__errno_location() #8
  store i32 0, ptr %123, align 4, !tbaa !5
  %124 = load ptr, ptr %5, align 8, !tbaa !9
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %125, i64 1
  %127 = call i64 @strtol(ptr noundef %126, ptr noundef %9, i32 noundef 10) #7
  store i64 %127, ptr @reps, align 8, !tbaa !11
  %128 = load i64, ptr @reps, align 8, !tbaa !11
  %129 = icmp slt i64 %128, 0
  br i1 %129, label %139, label %130

130:                                              ; preds = %122
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  %132 = load i8, ptr %131, align 1, !tbaa !13
  %133 = sext i8 %132 to i32
  %134 = icmp ne i32 %133, 125
  br i1 %134, label %139, label %135

135:                                              ; preds = %130
  %136 = call ptr @__errno_location() #8
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %143

139:                                              ; preds = %135, %130, %122
  %140 = load ptr, ptr %5, align 8, !tbaa !9
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %141, i64 1
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.13, ptr noundef %142) #9
  unreachable

143:                                              ; preds = %135
  %144 = load ptr, ptr %5, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %144, i32 1
  store ptr %145, ptr %5, align 8, !tbaa !9
  br label %147

146:                                              ; preds = %116, %112
  store i64 0, ptr @reps, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %146, %143
  %148 = load ptr, ptr %8, align 8, !tbaa !9
  %149 = load i8, ptr %148, align 1, !tbaa !13
  %150 = sext i8 %149 to i32
  %151 = icmp eq i32 %150, 47
  br i1 %151, label %157, label %152

152:                                              ; preds = %147
  %153 = load ptr, ptr %8, align 8, !tbaa !9
  %154 = load i8, ptr %153, align 1, !tbaa !13
  %155 = sext i8 %154 to i32
  %156 = icmp eq i32 %155, 37
  br i1 %156, label %157, label %172

157:                                              ; preds = %152, %147
  br label %158

158:                                              ; preds = %169, %157
  %159 = load ptr, ptr %8, align 8, !tbaa !9
  call void @do_rexp(ptr noundef %159)
  br label %160

160:                                              ; preds = %158
  %161 = load i64, ptr @reps, align 8, !tbaa !11
  %162 = add nsw i64 %161, -1
  store i64 %162, ptr @reps, align 8, !tbaa !11
  %163 = icmp ne i64 %161, 0
  br i1 %163, label %164, label %169

164:                                              ; preds = %160
  %165 = load i64, ptr @nfiles, align 8, !tbaa !11
  %166 = load i64, ptr @maxfiles, align 8, !tbaa !11
  %167 = sub nsw i64 %166, 1
  %168 = icmp slt i64 %165, %167
  br label %169

169:                                              ; preds = %164, %160
  %170 = phi i1 [ false, %160 ], [ %168, %164 ]
  br i1 %170, label %158, label %171, !llvm.loop !17

171:                                              ; preds = %169
  br label %189

172:                                              ; preds = %152
  %173 = call ptr @__ctype_b_loc() #8
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  %175 = load ptr, ptr %8, align 8, !tbaa !9
  %176 = load i8, ptr %175, align 1, !tbaa !13
  %177 = zext i8 %176 to i32
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds i16, ptr %174, i64 %178
  %180 = load i16, ptr %179, align 2, !tbaa !18
  %181 = zext i16 %180 to i32
  %182 = and i32 %181, 2048
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %186

184:                                              ; preds = %172
  %185 = load ptr, ptr %8, align 8, !tbaa !9
  call void @do_lineno(ptr noundef %185)
  br label %188

186:                                              ; preds = %172
  %187 = load ptr, ptr %8, align 8, !tbaa !9
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.14, ptr noundef %187) #9
  unreachable

188:                                              ; preds = %184
  br label %189

189:                                              ; preds = %188, %171
  br label %100, !llvm.loop !20

190:                                              ; preds = %110
  %191 = load ptr, ptr @infile, align 8, !tbaa !9
  %192 = call i32 @feof(ptr noundef %191) #7
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %220, label %194

194:                                              ; preds = %190
  %195 = call ptr @newfile()
  store ptr %195, ptr %11, align 8, !tbaa !9
  br label %196

196:                                              ; preds = %206, %194
  %197 = call ptr @csplit_getline()
  store ptr %197, ptr %10, align 8, !tbaa !9
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %204

199:                                              ; preds = %196
  %200 = load ptr, ptr %10, align 8, !tbaa !9
  %201 = load ptr, ptr %11, align 8, !tbaa !9
  %202 = call i32 @fputs(ptr noundef %200, ptr noundef %201)
  %203 = icmp ne i32 %202, -1
  br label %204

204:                                              ; preds = %199, %196
  %205 = phi i1 [ false, %196 ], [ %203, %199 ]
  br i1 %205, label %206, label %207

206:                                              ; preds = %204
  br label %196, !llvm.loop !21

207:                                              ; preds = %204
  %208 = load i32, ptr @sflag, align 4, !tbaa !5
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %214, label %210

210:                                              ; preds = %207
  %211 = load ptr, ptr %11, align 8, !tbaa !9
  %212 = call i64 @ftello(ptr noundef %211)
  %213 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %212)
  br label %214

214:                                              ; preds = %210, %207
  %215 = load ptr, ptr %11, align 8, !tbaa !9
  %216 = call i32 @fclose(ptr noundef %215)
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %214
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.11, ptr noundef @currfile) #9
  unreachable

219:                                              ; preds = %214
  br label %220

220:                                              ; preds = %219, %190
  call void @toomuch(ptr noundef null, i64 noundef 0)
  store i32 0, ptr @doclean, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 0
}

; Function Attrs: nounwind
declare ptr @setlocale(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #5

; Function Attrs: nounwind
declare i32 @atexit(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @cleanup() #2

; Function Attrs: nounwind uwtable
declare dso_local void @do_rexp(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #4

; Function Attrs: nounwind uwtable
declare dso_local void @do_lineno(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @newfile() #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @csplit_getline() #2

declare i32 @fputs(ptr noundef, ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #1

declare i64 @ftello(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @toomuch(ptr noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 "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 willreturn memory(none) "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 "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 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { noreturn }
attributes #10 = { nounwind willreturn memory(read) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; 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.3 = external hidden unnamed_addr constant [1 x i8], align 1
@sflag = external dso_local local_unnamed_addr global i32, align 4
@kflag = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@prefix = external dso_local local_unnamed_addr global ptr, align 8
@sufflen = external dso_local local_unnamed_addr global i64, align 8
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@infn = external dso_local local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@infile = external dso_local local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@doclean = external dso_local local_unnamed_addr global i32, align 4
@lineno = external dso_local local_unnamed_addr global i64, align 8
@nfiles = external dso_local local_unnamed_addr global i64, align 8
@truncofs = external dso_local local_unnamed_addr global i64, align 8
@overfile = external dso_local local_unnamed_addr global ptr, align 8
@maxfiles = external dso_local local_unnamed_addr global i64, align 8
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@reps = external dso_local local_unnamed_addr global i64, align 8
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@currfile = external dso_local global [4096 x i8], align 16

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %4 = tail call ptr @setlocale(i32 noundef 6, ptr noundef nonnull @.str.3) #8
  store i32 0, ptr @sflag, align 4, !tbaa !5
  store i32 0, ptr @kflag, align 4, !tbaa !5
  store ptr @.str.4, ptr @prefix, align 8, !tbaa !9
  store i64 2, ptr @sufflen, align 8, !tbaa !11
  %5 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5) #8
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %25
  %7 = phi i32 [ %26, %25 ], [ %5, %2 ]
  switch i32 %7, label %24 [
    i32 102, label %8
    i32 107, label %10
    i32 110, label %11
    i32 115, label %23
  ]

8:                                                ; preds = %.lr.ph
  %9 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %9, ptr @prefix, align 8, !tbaa !9
  br label %25

10:                                               ; preds = %.lr.ph
  store i32 1, ptr @kflag, align 4, !tbaa !5
  br label %25

11:                                               ; preds = %.lr.ph
  %12 = tail call ptr @__errno_location() #9
  store i32 0, ptr %12, align 4, !tbaa !5
  %13 = load ptr, ptr @optarg, align 8, !tbaa !9
  %14 = call i64 @strtol(ptr noundef %13, ptr noundef nonnull %3, i32 noundef 10) #8
  store i64 %14, ptr @sufflen, align 8, !tbaa !11
  %15 = icmp slt i64 %14, 1
  br i1 %15, label %21, label %16

16:                                               ; preds = %11
  %17 = load ptr, ptr %3, align 8, !tbaa !9
  %18 = load i8, ptr %17, align 1, !tbaa !13
  %.not44 = icmp eq i8 %18, 0
  br i1 %.not44, label %19, label %21

19:                                               ; preds = %16
  %20 = load i32, ptr %12, align 4, !tbaa !5
  %.not45 = icmp eq i32 %20, 0
  br i1 %.not45, label %25, label %21

21:                                               ; preds = %19, %16, %11
  %22 = load ptr, ptr @optarg, align 8, !tbaa !9
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.6, ptr noundef %22) #10
  unreachable

23:                                               ; preds = %.lr.ph
  store i32 1, ptr @sflag, align 4, !tbaa !5
  br label %25

24:                                               ; preds = %.lr.ph
  tail call void @usage()
  br label %25

25:                                               ; preds = %19, %24, %23, %10, %8
  %26 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5) #8
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %25, %2
  %28 = load i64, ptr @sufflen, align 8, !tbaa !11
  %29 = load ptr, ptr @prefix, align 8, !tbaa !9
  %30 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %29) #11
  %31 = add i64 %30, %28
  %32 = icmp ugt i64 %31, 4095
  br i1 %32, label %33, label %34

33:                                               ; preds = %._crit_edge
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.7) #10
  unreachable

34:                                               ; preds = %._crit_edge
  %35 = load i32, ptr @optind, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %1, i64 %36
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %39, ptr @infn, align 8, !tbaa !9
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  tail call void @usage()
  %.pre = load ptr, ptr @infn, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %41, %34
  %43 = phi ptr [ %.pre, %41 ], [ %39, %34 ]
  %44 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.8) #11
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  %47 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %47, ptr @infile, align 8, !tbaa !9
  store ptr @.str.9, ptr @infn, align 8, !tbaa !9
  br label %53

48:                                               ; preds = %42
  %49 = tail call noalias ptr @fopen(ptr noundef %43, ptr noundef nonnull @.str.10)
  store ptr %49, ptr @infile, align 8, !tbaa !9
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = load ptr, ptr @infn, align 8, !tbaa !9
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.11, ptr noundef %52) #10
  unreachable

53:                                               ; preds = %48, %46
  %54 = load i32, ptr @kflag, align 4, !tbaa !5
  %.not = icmp eq i32 %54, 0
  br i1 %.not, label %55, label %57

55:                                               ; preds = %53
  store i32 1, ptr @doclean, align 4, !tbaa !5
  %56 = tail call i32 @atexit(ptr noundef nonnull @cleanup) #8
  br label %57

57:                                               ; preds = %55, %53
  store i64 0, ptr @lineno, align 8, !tbaa !11
  store i64 0, ptr @nfiles, align 8, !tbaa !11
  store i64 0, ptr @truncofs, align 8, !tbaa !11
  store ptr null, ptr @overfile, align 8, !tbaa !9
  store i64 1, ptr @maxfiles, align 8, !tbaa !11
  %58 = load i64, ptr @sufflen, align 8, !tbaa !11
  %59 = icmp sgt i64 %58, 0
  br i1 %59, label %.lr.ph53.preheader, label %.critedge

.lr.ph53.preheader:                               ; preds = %57
  store i64 10, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.not = icmp eq i64 %58, 1
  br i1 %exitcond63.not, label %.lr.ph55.preheader, label %.lr.ph53.1, !llvm.loop !16

60:                                               ; preds = %.lr.ph53.17
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.12, i64 noundef %58, i64 noundef 18) #10
  unreachable

.lr.ph53.1:                                       ; preds = %.lr.ph53.preheader
  store i64 100, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.1.not = icmp eq i64 %58, 2
  br i1 %exitcond63.1.not, label %.lr.ph55.preheader, label %.lr.ph53.2, !llvm.loop !16

.lr.ph53.2:                                       ; preds = %.lr.ph53.1
  store i64 1000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.2.not = icmp eq i64 %58, 3
  br i1 %exitcond63.2.not, label %.lr.ph55.preheader, label %.lr.ph53.3, !llvm.loop !16

.lr.ph53.3:                                       ; preds = %.lr.ph53.2
  store i64 10000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.3.not = icmp eq i64 %58, 4
  br i1 %exitcond63.3.not, label %.lr.ph55.preheader, label %.lr.ph53.4, !llvm.loop !16

.lr.ph53.4:                                       ; preds = %.lr.ph53.3
  store i64 100000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.4.not = icmp eq i64 %58, 5
  br i1 %exitcond63.4.not, label %.lr.ph55.preheader, label %.lr.ph53.5, !llvm.loop !16

.lr.ph53.5:                                       ; preds = %.lr.ph53.4
  store i64 1000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.5.not = icmp eq i64 %58, 6
  br i1 %exitcond63.5.not, label %.lr.ph55.preheader, label %.lr.ph53.6, !llvm.loop !16

.lr.ph53.6:                                       ; preds = %.lr.ph53.5
  store i64 10000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.6.not = icmp eq i64 %58, 7
  br i1 %exitcond63.6.not, label %.lr.ph55.preheader, label %.lr.ph53.7, !llvm.loop !16

.lr.ph53.7:                                       ; preds = %.lr.ph53.6
  store i64 100000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.7.not = icmp eq i64 %58, 8
  br i1 %exitcond63.7.not, label %.lr.ph55.preheader, label %.lr.ph53.8, !llvm.loop !16

.lr.ph53.8:                                       ; preds = %.lr.ph53.7
  store i64 1000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.8.not = icmp eq i64 %58, 9
  br i1 %exitcond63.8.not, label %.lr.ph55.preheader, label %.lr.ph53.9, !llvm.loop !16

.lr.ph53.9:                                       ; preds = %.lr.ph53.8
  store i64 10000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.9.not = icmp eq i64 %58, 10
  br i1 %exitcond63.9.not, label %.lr.ph55.preheader, label %.lr.ph53.10, !llvm.loop !16

.lr.ph53.10:                                      ; preds = %.lr.ph53.9
  store i64 100000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.10.not = icmp eq i64 %58, 11
  br i1 %exitcond63.10.not, label %.lr.ph55.preheader, label %.lr.ph53.11, !llvm.loop !16

.lr.ph53.11:                                      ; preds = %.lr.ph53.10
  store i64 1000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.11.not = icmp eq i64 %58, 12
  br i1 %exitcond63.11.not, label %.lr.ph55.preheader, label %.lr.ph53.12, !llvm.loop !16

.lr.ph53.12:                                      ; preds = %.lr.ph53.11
  store i64 10000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.12.not = icmp eq i64 %58, 13
  br i1 %exitcond63.12.not, label %.lr.ph55.preheader, label %.lr.ph53.13, !llvm.loop !16

.lr.ph53.13:                                      ; preds = %.lr.ph53.12
  store i64 100000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.13.not = icmp eq i64 %58, 14
  br i1 %exitcond63.13.not, label %.lr.ph55.preheader, label %.lr.ph53.14, !llvm.loop !16

.lr.ph53.14:                                      ; preds = %.lr.ph53.13
  store i64 1000000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.14.not = icmp eq i64 %58, 15
  br i1 %exitcond63.14.not, label %.lr.ph55.preheader, label %.lr.ph53.15, !llvm.loop !16

.lr.ph53.15:                                      ; preds = %.lr.ph53.14
  store i64 10000000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.15.not = icmp eq i64 %58, 16
  br i1 %exitcond63.15.not, label %.lr.ph55.preheader, label %.lr.ph53.16, !llvm.loop !16

.lr.ph53.16:                                      ; preds = %.lr.ph53.15
  store i64 100000000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.16.not = icmp eq i64 %58, 17
  br i1 %exitcond63.16.not, label %.lr.ph55.preheader, label %.lr.ph53.17, !llvm.loop !16

.lr.ph53.17:                                      ; preds = %.lr.ph53.16
  store i64 1000000000000000000, ptr @maxfiles, align 8, !tbaa !11
  %exitcond63.17.not = icmp eq i64 %58, 18
  br i1 %exitcond63.17.not, label %.lr.ph55.preheader, label %60, !llvm.loop !16

.lr.ph55.preheader:                               ; preds = %.lr.ph53.preheader, %.lr.ph53.1, %.lr.ph53.2, %.lr.ph53.3, %.lr.ph53.4, %.lr.ph53.5, %.lr.ph53.6, %.lr.ph53.7, %.lr.ph53.8, %.lr.ph53.9, %.lr.ph53.10, %.lr.ph53.11, %.lr.ph53.12, %.lr.ph53.13, %.lr.ph53.14, %.lr.ph53.15, %.lr.ph53.16, %.lr.ph53.17
  br label %.lr.ph55

.lr.ph55:                                         ; preds = %.lr.ph55.preheader, %.loopexit
  %.054 = phi ptr [ %.1, %.loopexit ], [ %38, %.lr.ph55.preheader ]
  %61 = getelementptr inbounds i8, ptr %.054, i64 8
  %62 = load ptr, ptr %.054, align 8, !tbaa !9
  %.not34 = icmp eq ptr %62, null
  br i1 %.not34, label %.critedge, label %63

63:                                               ; preds = %.lr.ph55
  %64 = load ptr, ptr %61, align 8, !tbaa !9
  %.not40 = icmp eq ptr %64, null
  br i1 %.not40, label %83, label %65

65:                                               ; preds = %63
  %66 = load i8, ptr %64, align 1, !tbaa !13
  %67 = icmp eq i8 %66, 123
  br i1 %67, label %68, label %83

68:                                               ; preds = %65
  %69 = tail call ptr @__errno_location() #9
  store i32 0, ptr %69, align 4, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %64, i64 1
  %71 = call i64 @strtol(ptr noundef nonnull %70, ptr noundef nonnull %3, i32 noundef 10) #8
  store i64 %71, ptr @reps, align 8, !tbaa !11
  %72 = icmp slt i64 %71, 0
  br i1 %72, label %78, label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %3, align 8, !tbaa !9
  %75 = load i8, ptr %74, align 1, !tbaa !13
  %.not41 = icmp eq i8 %75, 125
  br i1 %.not41, label %76, label %78

76:                                               ; preds = %73
  %77 = load i32, ptr %69, align 4, !tbaa !5
  %.not42 = icmp eq i32 %77, 0
  br i1 %.not42, label %81, label %78

78:                                               ; preds = %76, %73, %68
  %79 = load ptr, ptr %61, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 1
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.13, ptr noundef nonnull %80) #10
  unreachable

81:                                               ; preds = %76
  %82 = getelementptr inbounds i8, ptr %.054, i64 16
  br label %84

83:                                               ; preds = %65, %63
  store i64 0, ptr @reps, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %83, %81
  %.1 = phi ptr [ %82, %81 ], [ %61, %83 ]
  %85 = load i8, ptr %62, align 1, !tbaa !13
  switch i8 %85, label %95 [
    i8 47, label %.preheader
    i8 37, label %.preheader
  ]

.preheader:                                       ; preds = %84, %84
  br label %86

86:                                               ; preds = %.preheader, %86
  tail call void @do_rexp(ptr noundef nonnull %62)
  %87 = load i64, ptr @reps, align 8, !tbaa !11
  %88 = add nsw i64 %87, -1
  store i64 %88, ptr @reps, align 8, !tbaa !11
  %89 = icmp ne i64 %87, 0
  %90 = load i64, ptr @nfiles, align 8
  %91 = load i64, ptr @maxfiles, align 8
  %92 = add nsw i64 %91, -1
  %93 = icmp slt i64 %90, %92
  %94 = select i1 %89, i1 %93, i1 false
  br i1 %94, label %86, label %.loopexit, !llvm.loop !17

95:                                               ; preds = %84
  %96 = tail call ptr @__ctype_b_loc() #9
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = zext i8 %85 to i64
  %99 = getelementptr inbounds i16, ptr %97, i64 %98
  %100 = load i16, ptr %99, align 2, !tbaa !18
  %101 = and i16 %100, 2048
  %.not43 = icmp eq i16 %101, 0
  br i1 %.not43, label %103, label %102

102:                                              ; preds = %95
  tail call void @do_lineno(ptr noundef nonnull %62)
  %.pre64 = load i64, ptr @nfiles, align 8, !tbaa !11
  %.pre65 = load i64, ptr @maxfiles, align 8, !tbaa !11
  %.pre66 = add nsw i64 %.pre65, -1
  br label %.loopexit

103:                                              ; preds = %95
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.14, ptr noundef nonnull %62) #10
  unreachable

.loopexit:                                        ; preds = %86, %102
  %.pre-phi = phi i64 [ %.pre66, %102 ], [ %92, %86 ]
  %104 = phi i64 [ %.pre64, %102 ], [ %90, %86 ]
  %105 = icmp slt i64 %104, %.pre-phi
  br i1 %105, label %.lr.ph55, label %.critedge, !llvm.loop !20

.critedge:                                        ; preds = %.lr.ph55, %.loopexit, %57
  %106 = load ptr, ptr @infile, align 8, !tbaa !9
  %107 = tail call i32 @feof(ptr noundef %106) #8
  %.not35 = icmp eq i32 %107, 0
  br i1 %.not35, label %108, label %121

108:                                              ; preds = %.critedge
  %109 = tail call ptr @newfile()
  br label %110

110:                                              ; preds = %112, %108
  %111 = tail call ptr @csplit_getline()
  %.not36 = icmp eq ptr %111, null
  br i1 %.not36, label %.critedge2, label %112

112:                                              ; preds = %110
  %113 = tail call i32 @fputs(ptr noundef nonnull %111, ptr noundef %109)
  %.not37 = icmp eq i32 %113, -1
  br i1 %.not37, label %.critedge2, label %110, !llvm.loop !21

.critedge2:                                       ; preds = %110, %112
  %114 = load i32, ptr @sflag, align 4, !tbaa !5
  %.not38 = icmp eq i32 %114, 0
  br i1 %.not38, label %115, label %118

115:                                              ; preds = %.critedge2
  %116 = tail call i64 @ftello(ptr noundef %109)
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i64 noundef %116)
  br label %118

118:                                              ; preds = %115, %.critedge2
  %119 = tail call i32 @fclose(ptr noundef %109)
  %.not39 = icmp eq i32 %119, 0
  br i1 %.not39, label %121, label %120

120:                                              ; preds = %118
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.11, ptr noundef nonnull @currfile) #10
  unreachable

121:                                              ; preds = %118, %.critedge
  tail call void @toomuch(ptr noundef null, i64 noundef 0)
  store i32 0, ptr @doclean, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret i32 0
}

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare i32 @atexit(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @cleanup() #2

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @newfile() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @csplit_getline() local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i64 @ftello(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @toomuch(ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 nofree nounwind willreturn "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 "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; Effective O3 passes: ADCEPass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass