; LLVM IR from Water-Melon/Melon :: src (mln_lex)

; 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.mln_string_t = type { ptr, i64, i32 }
%struct.mln_lex_s = type { ptr, ptr, ptr, ptr, %struct.mln_lex_hooks_t, ptr, ptr, ptr, ptr, i64, i64, i32, i8, ptr, ptr }
%struct.mln_lex_hooks_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mln_lex_input_t = type { i32, i32, ptr, ptr, ptr, ptr, i64, i64 }
%struct.dirent = type { i64, i64, i16, i8, [256 x i8] }

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @mln_lex_input_new(ptr noundef nonnull, i32 noundef, ptr noundef nonnull, ptr noundef nonnull, i64 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind
declare i32 @access(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @mln_lex_input_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_lex_push_input_file_stream(ptr noundef nonnull %0, ptr noundef nonnull %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca [1024 x i8], align 16
  %9 = alloca %struct.stat, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.mln_string_t, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mln_string_t, ptr %17, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !11
  %20 = icmp ne i64 %19, 0
  br i1 %20, label %21, label %106

21:                                               ; preds = %2
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mln_string_t, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %24, i64 0
  %26 = load i8, ptr %25, align 1, !tbaa !15
  %27 = zext i8 %26 to i32
  %28 = icmp eq i32 %27, 64
  br i1 %28, label %29, label %106

29:                                               ; preds = %21
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mln_lex_s, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = icmp eq ptr %32, null
  br i1 %33, label %41, label %34

34:                                               ; preds = %29
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.mln_lex_s, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds %struct.mln_lex_input_t, ptr %37, i32 0, i32 3
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %34, %29
  %42 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %43 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %42, i64 noundef 1023, ptr noundef @.str) #6
  store i32 %43, ptr %10, align 4, !tbaa !9
  br label %54

44:                                               ; preds = %34
  %45 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mln_lex_s, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.mln_lex_input_t, ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %51 = getelementptr inbounds %struct.mln_string_t, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %45, i64 noundef 1023, ptr noundef @.str.1, ptr noundef %52) #6
  store i32 %53, ptr %10, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %44, %41
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.mln_string_t, ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !11
  %58 = sub i64 %57, 1
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = sub i64 1024, %60
  %62 = icmp uge i64 %58, %61
  br i1 %62, label %63, label %84

63:                                               ; preds = %54
  %64 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %64, i64 %66
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mln_string_t, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %71 = getelementptr inbounds i8, ptr %70, i64 1
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = sub i64 1024, %73
  %75 = sub i64 %74, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %67, ptr align 1 %71, i64 %75, i1 false)
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = sub i64 1024, %77
  %79 = sub i64 %78, 1
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = add i64 %81, %79
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %10, align 4, !tbaa !9
  br label %105

84:                                               ; preds = %54
  %85 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %85, i64 %87
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.mln_string_t, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = getelementptr inbounds i8, ptr %91, i64 1
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mln_string_t, ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = sub i64 %95, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %88, ptr align 1 %92, i64 %96, i1 false)
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.mln_string_t, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = sub i64 %99, 1
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = add i64 %102, %100
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %10, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %84, %63
  br label %125

106:                                              ; preds = %21, %2
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.mln_string_t, ptr %107, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = icmp ugt i64 %109, 1023
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  br label %116

112:                                              ; preds = %106
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mln_string_t, ptr %113, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %112, %111
  %117 = phi i64 [ 1023, %111 ], [ %115, %112 ]
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.mln_string_t, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %119, ptr align 1 %122, i64 %124, i1 false)
  br label %125

125:                                              ; preds = %116, %105
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %127
  store i8 0, ptr %128, align 1, !tbaa !15
  %129 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %130 = call i32 @access(ptr noundef %129, i32 noundef 0) #6
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %135

132:                                              ; preds = %125
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.mln_lex_s, ptr %133, i32 0, i32 11
  store i32 11, ptr %134, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

135:                                              ; preds = %125
  %136 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %137 = call i32 @stat(ptr noundef %136, ptr noundef %9) #6
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %139, label %142

139:                                              ; preds = %135
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.mln_lex_s, ptr %140, i32 0, i32 11
  store i32 11, ptr %141, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

142:                                              ; preds = %135
  %143 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 3
  %144 = load i32, ptr %143, align 8, !tbaa !22
  %145 = and i32 %144, 61440
  %146 = icmp eq i32 %145, 16384
  br i1 %146, label %147, label %286

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %148 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %149 = call ptr @opendir(ptr noundef %148)
  store ptr %149, ptr %15, align 8, !tbaa !5
  %150 = icmp eq ptr %149, null
  br i1 %150, label %151, label %154

151:                                              ; preds = %147
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mln_lex_s, ptr %152, i32 0, i32 11
  store i32 11, ptr %153, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %283

154:                                              ; preds = %147
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %10, align 4, !tbaa !9
  %157 = sext i32 %155 to i64
  %158 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %157
  store i8 47, ptr %158, align 1, !tbaa !15
  br label %159

159:                                              ; preds = %277, %228, %221, %154
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = call ptr @readdir(ptr noundef %160)
  store ptr %161, ptr %14, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %280

163:                                              ; preds = %159
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.dirent, ptr %164, i32 0, i32 4
  %166 = getelementptr inbounds [256 x i8], ptr %165, i64 0, i64 0
  %167 = call i64 @strlen(ptr noundef %166) #7
  %168 = trunc i64 %167 to i32
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = sub i64 1023, %170
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = icmp ult i64 %171, %173
  br i1 %174, label %175, label %180

175:                                              ; preds = %163
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = sub i64 1023, %177
  %179 = trunc i64 %178 to i32
  store i32 %179, ptr %12, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %175, %163
  %181 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %181, i64 %183
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.dirent, ptr %185, i32 0, i32 4
  %187 = getelementptr inbounds [256 x i8], ptr %186, i64 0, i64 0
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %184, ptr align 1 %187, i64 %189, i1 false)
  %190 = load i32, ptr %10, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = add nsw i32 %190, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %193
  store i8 0, ptr %194, align 1, !tbaa !15
  %195 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %196 = getelementptr inbounds %struct.mln_string_t, ptr %13, i32 0, i32 0
  store ptr %195, ptr %196, align 8, !tbaa !14
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = add nsw i32 %197, %198
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds %struct.mln_string_t, ptr %13, i32 0, i32 1
  store i64 %200, ptr %201, align 8, !tbaa !11
  %202 = getelementptr inbounds %struct.mln_string_t, ptr %13, i32 0, i32 2
  %203 = load i32, ptr %202, align 8
  %204 = and i32 %203, -2
  %205 = or i32 %204, 1
  store i32 %205, ptr %202, align 8
  %206 = getelementptr inbounds %struct.mln_string_t, ptr %13, i32 0, i32 2
  %207 = load i32, ptr %206, align 8
  %208 = and i32 %207, -3
  %209 = or i32 %208, 0
  store i32 %209, ptr %206, align 8
  %210 = getelementptr inbounds %struct.mln_string_t, ptr %13, i32 0, i32 2
  %211 = load i32, ptr %210, align 8
  %212 = and i32 %211, 3
  %213 = or i32 %212, 4
  store i32 %213, ptr %210, align 8
  store ptr %13, ptr %16, align 8, !tbaa !5
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %13, ptr %5, align 8, !tbaa !5
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.dirent, ptr %215, i32 0, i32 4
  %217 = getelementptr inbounds [256 x i8], ptr %216, i64 0, i64 0
  %218 = load i8, ptr %217, align 1, !tbaa !15
  %219 = sext i8 %218 to i32
  %220 = icmp eq i32 %219, 46
  br i1 %220, label %221, label %222

221:                                              ; preds = %180
  br label %159, !llvm.loop !25

222:                                              ; preds = %180
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.dirent, ptr %223, i32 0, i32 3
  %225 = load i8, ptr %224, align 2, !tbaa !27
  %226 = zext i8 %225 to i32
  %227 = icmp ne i32 %226, 8
  br i1 %227, label %228, label %229

228:                                              ; preds = %222
  br label %159, !llvm.loop !25

229:                                              ; preds = %222
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.mln_lex_s, ptr %232, i32 0, i32 10
  %234 = load i64, ptr %233, align 8, !tbaa !30
  %235 = call ptr @mln_lex_input_new(ptr noundef %230, i32 noundef 1, ptr noundef %231, ptr noundef %6, i64 noundef %234)
  store ptr %235, ptr %7, align 8, !tbaa !5
  %236 = icmp eq ptr %235, null
  br i1 %236, label %237, label %241

237:                                              ; preds = %229
  %238 = load i32, ptr %6, align 4, !tbaa !9
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.mln_lex_s, ptr %239, i32 0, i32 11
  store i32 %238, ptr %240, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %283

241:                                              ; preds = %229
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.mln_lex_s, ptr %242, i32 0, i32 2
  %244 = load ptr, ptr %243, align 8, !tbaa !16
  %245 = icmp ne ptr %244, null
  br i1 %245, label %246, label %264

246:                                              ; preds = %241
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.mln_lex_s, ptr %247, i32 0, i32 3
  %249 = load ptr, ptr %248, align 8, !tbaa !31
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.mln_lex_s, ptr %250, i32 0, i32 2
  %252 = load ptr, ptr %251, align 8, !tbaa !16
  %253 = call i32 @mln_stack_push(ptr noundef %249, ptr noundef %252)
  %254 = icmp slt i32 %253, 0
  br i1 %254, label %255, label %261

255:                                              ; preds = %246
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_lex_input_free(ptr noundef %256)
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.mln_lex_s, ptr %257, i32 0, i32 11
  store i32 1, ptr %258, align 8, !tbaa !21
  %259 = load ptr, ptr %15, align 8, !tbaa !5
  %260 = call i32 @closedir(ptr noundef %259)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %283

261:                                              ; preds = %246
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.mln_lex_s, ptr %262, i32 0, i32 2
  store ptr null, ptr %263, align 8, !tbaa !16
  br label %264

264:                                              ; preds = %261, %241
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.mln_lex_s, ptr %265, i32 0, i32 3
  %267 = load ptr, ptr %266, align 8, !tbaa !31
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = call i32 @mln_stack_push(ptr noundef %267, ptr noundef %268)
  %270 = icmp slt i32 %269, 0
  br i1 %270, label %271, label %277

271:                                              ; preds = %264
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_lex_input_free(ptr noundef %272)
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.mln_lex_s, ptr %273, i32 0, i32 11
  store i32 1, ptr %274, align 8, !tbaa !21
  %275 = load ptr, ptr %15, align 8, !tbaa !5
  %276 = call i32 @closedir(ptr noundef %275)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %283

277:                                              ; preds = %264
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.mln_lex_s, ptr %278, i32 0, i32 10
  store i64 1, ptr %279, align 8, !tbaa !30
  br label %159, !llvm.loop !25

280:                                              ; preds = %159
  %281 = load ptr, ptr %15, align 8, !tbaa !5
  %282 = call i32 @closedir(ptr noundef %281)
  store i32 0, ptr %11, align 4
  br label %283

283:                                              ; preds = %280, %271, %255, %237, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %284 = load i32, ptr %11, align 4
  switch i32 %284, label %334 [
    i32 0, label %285
  ]

285:                                              ; preds = %283
  br label %333

286:                                              ; preds = %142
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.mln_lex_s, ptr %289, i32 0, i32 10
  %291 = load i64, ptr %290, align 8, !tbaa !30
  %292 = call ptr @mln_lex_input_new(ptr noundef %287, i32 noundef 1, ptr noundef %288, ptr noundef %6, i64 noundef %291)
  store ptr %292, ptr %7, align 8, !tbaa !5
  %293 = icmp eq ptr %292, null
  br i1 %293, label %294, label %298

294:                                              ; preds = %286
  %295 = load i32, ptr %6, align 4, !tbaa !9
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.mln_lex_s, ptr %296, i32 0, i32 11
  store i32 %295, ptr %297, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

298:                                              ; preds = %286
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.mln_lex_s, ptr %299, i32 0, i32 2
  %301 = load ptr, ptr %300, align 8, !tbaa !16
  %302 = icmp ne ptr %301, null
  br i1 %302, label %303, label %319

303:                                              ; preds = %298
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.mln_lex_s, ptr %304, i32 0, i32 3
  %306 = load ptr, ptr %305, align 8, !tbaa !31
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.mln_lex_s, ptr %307, i32 0, i32 2
  %309 = load ptr, ptr %308, align 8, !tbaa !16
  %310 = call i32 @mln_stack_push(ptr noundef %306, ptr noundef %309)
  %311 = icmp slt i32 %310, 0
  br i1 %311, label %312, label %316

312:                                              ; preds = %303
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_lex_input_free(ptr noundef %313)
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.mln_lex_s, ptr %314, i32 0, i32 11
  store i32 1, ptr %315, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

316:                                              ; preds = %303
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.mln_lex_s, ptr %317, i32 0, i32 2
  store ptr null, ptr %318, align 8, !tbaa !16
  br label %319

319:                                              ; preds = %316, %298
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.mln_lex_s, ptr %320, i32 0, i32 3
  %322 = load ptr, ptr %321, align 8, !tbaa !31
  %323 = load ptr, ptr %7, align 8, !tbaa !5
  %324 = call i32 @mln_stack_push(ptr noundef %322, ptr noundef %323)
  %325 = icmp slt i32 %324, 0
  br i1 %325, label %326, label %330

326:                                              ; preds = %319
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_lex_input_free(ptr noundef %327)
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.mln_lex_s, ptr %328, i32 0, i32 11
  store i32 1, ptr %329, align 8, !tbaa !21
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

330:                                              ; preds = %319
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.mln_lex_s, ptr %331, i32 0, i32 10
  store i64 1, ptr %332, align 8, !tbaa !30
  br label %333

333:                                              ; preds = %330, %285
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %334

334:                                              ; preds = %333, %326, %312, %294, %283, %139, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %335 = load i32, ptr %3, align 4
  ret i32 %335
}

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

; Function Attrs: nounwind
declare i32 @stat(ptr noundef, ptr noundef) #2

declare ptr @opendir(ptr noundef) #5

declare ptr @readdir(ptr noundef) #5

declare i32 @mln_stack_push(ptr noundef, ptr noundef) #5

declare i32 @closedir(ptr noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"", !6, i64 0, !13, i64 8, !13, i64 16, !13, i64 16, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"mln_lex_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !13, i64 576, !13, i64 584, !10, i64 592, !10, i64 596, !10, i64 596, !6, i64 600, !6, i64 608}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504}
!19 = !{!20, !6, i64 16}
!20 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 48}
!21 = !{!17, !10, i64 592}
!22 = !{!23, !10, i64 24}
!23 = !{!"stat", !13, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !24, i64 72, !24, i64 88, !24, i64 104, !7, i64 120}
!24 = !{!"timespec", !13, i64 0, !13, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !7, i64 18}
!28 = !{!"dirent", !13, i64 0, !13, i64 8, !29, i64 16, !7, i64 18, !7, i64 19}
!29 = !{!"short", !7, i64 0}
!30 = !{!17, !13, i64 584}
!31 = !{!17, !6, i64 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.mln_string_t = type { ptr, i64, i32 }

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

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

; 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
declare dso_local ptr @mln_lex_input_new(ptr noundef nonnull, i32 noundef, ptr noundef nonnull, ptr noundef nonnull, i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @mln_lex_push_input_file_stream(ptr noundef nonnull %0, ptr noundef nonnull %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  %4 = alloca [1024 x i8], align 16
  %5 = alloca %struct.stat, align 8
  %6 = alloca %struct.mln_string_t, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #7
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %.not = icmp eq i64 %8, 0
  %.pre = load ptr, ptr %1, align 8, !tbaa !13
  br i1 %.not, label %39, label %9

9:                                                ; preds = %2
  %10 = load i8, ptr %.pre, align 1, !tbaa !14
  %11 = icmp eq i8 %10, 64
  br i1 %11, label %12, label %39

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = icmp eq ptr %14, null
  br i1 %15, label %20, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %14, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %22

20:                                               ; preds = %16, %12
  %21 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 1023, ptr noundef nonnull @.str) #7
  br label %25

22:                                               ; preds = %16
  %23 = load ptr, ptr %18, align 8, !tbaa !13
  %24 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 1023, ptr noundef nonnull @.str.1, ptr noundef %23) #7
  br label %25

25:                                               ; preds = %22, %20
  %.077 = phi i32 [ %21, %20 ], [ %24, %22 ]
  %26 = load i64, ptr %7, align 8, !tbaa !9
  %27 = add i64 %26, -1
  %28 = sext i32 %.077 to i64
  %29 = sub nsw i64 1024, %28
  %.not90 = icmp ult i64 %27, %29
  %30 = getelementptr inbounds i8, ptr %4, i64 %28
  %31 = load ptr, ptr %1, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %31, i64 1
  br i1 %.not90, label %35, label %33

33:                                               ; preds = %25
  %34 = sub nsw i64 1023, %28
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %30, ptr nonnull align 1 %32, i64 %34, i1 false)
  br label %41

35:                                               ; preds = %25
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %30, ptr nonnull align 1 %32, i64 %27, i1 false)
  %36 = trunc i64 %26 to i32
  %37 = add i32 %.077, -1
  %38 = add i32 %37, %36
  br label %41

39:                                               ; preds = %9, %2
  %spec.select = tail call i64 @llvm.umin.i64(i64 %8, i64 1023)
  %40 = trunc nuw nsw i64 %spec.select to i32
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %4, ptr align 1 %.pre, i64 %spec.select, i1 false)
  br label %41

41:                                               ; preds = %33, %35, %39
  %.178 = phi i32 [ 1023, %33 ], [ %38, %35 ], [ %40, %39 ]
  %42 = sext i32 %.178 to i64
  %43 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %42
  store i8 0, ptr %43, align 1, !tbaa !14
  %44 = call i32 @access(ptr noundef nonnull %4, i32 noundef 0) #7
  %.not91 = icmp eq i32 %44, 0
  br i1 %.not91, label %47, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 11, ptr %46, align 8, !tbaa !20
  br label %142

47:                                               ; preds = %41
  %48 = call i32 @stat(ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 11, ptr %51, align 8, !tbaa !20
  br label %142

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %5, i64 24
  %54 = load i32, ptr %53, align 8, !tbaa !21
  %55 = and i32 %54, 61440
  %56 = icmp eq i32 %55, 16384
  br i1 %56, label %57, label %115

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %58 = call ptr @opendir(ptr noundef nonnull %4)
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 11, ptr %61, align 8, !tbaa !20
  br label %.critedge

62:                                               ; preds = %57
  %63 = add nsw i32 %.178, 1
  store i8 47, ptr %43, align 1, !tbaa !14
  %64 = tail call ptr @readdir(ptr noundef nonnull %58) #7
  %.not93100 = icmp eq ptr %64, null
  br i1 %.not93100, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %62
  %65 = sext i32 %63 to i64
  %66 = sub nsw i64 1023, %65
  %67 = getelementptr inbounds i8, ptr %4, i64 %65
  %68 = getelementptr inbounds i8, ptr %6, i64 8
  %69 = getelementptr inbounds i8, ptr %6, i64 16
  %70 = getelementptr inbounds i8, ptr %0, i64 584
  %71 = getelementptr inbounds i8, ptr %0, i64 16
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  br label %73

73:                                               ; preds = %.lr.ph, %.backedge
  %74 = phi ptr [ %64, %.lr.ph ], [ %113, %.backedge ]
  %75 = getelementptr inbounds i8, ptr %74, i64 19
  %76 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %75) #8
  %sext = shl i64 %76, 32
  %77 = ashr exact i64 %sext, 32
  %78 = icmp ult i64 %66, %77
  %spec.select97 = select i1 %78, i64 %66, i64 %76
  %.075 = trunc i64 %spec.select97 to i32
  %sext94 = shl i64 %spec.select97, 32
  %79 = ashr exact i64 %sext94, 32
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %67, ptr nonnull align 1 %75, i64 %79, i1 false)
  %80 = add nsw i32 %63, %.075
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %81
  store i8 0, ptr %82, align 1, !tbaa !14
  store ptr %4, ptr %6, align 8, !tbaa !13
  store i64 %81, ptr %68, align 8, !tbaa !9
  store i32 5, ptr %69, align 8
  %83 = load i8, ptr %75, align 1, !tbaa !14
  %84 = icmp eq i8 %83, 46
  br i1 %84, label %.backedge, label %85

85:                                               ; preds = %73
  %86 = getelementptr inbounds i8, ptr %74, i64 18
  %87 = load i8, ptr %86, align 2, !tbaa !24
  %.not95 = icmp eq i8 %87, 8
  br i1 %.not95, label %88, label %.backedge

88:                                               ; preds = %85
  %89 = load i64, ptr %70, align 8, !tbaa !27
  %90 = call ptr @mln_lex_input_new(ptr noundef %0, i32 noundef 1, ptr noundef %6, ptr noundef %3, i64 noundef %89)
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %95

92:                                               ; preds = %88
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 %93, ptr %94, align 8, !tbaa !20
  br label %.critedge

95:                                               ; preds = %88
  %96 = load ptr, ptr %71, align 8, !tbaa !15
  %.not96 = icmp eq ptr %96, null
  br i1 %.not96, label %105, label %97

97:                                               ; preds = %95
  %98 = load ptr, ptr %72, align 8, !tbaa !28
  %99 = call i32 @mln_stack_push(ptr noundef %98, ptr noundef nonnull %96) #7
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %97
  call void @mln_lex_input_free(ptr noundef nonnull %90)
  %102 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 1, ptr %102, align 8, !tbaa !20
  %103 = call i32 @closedir(ptr noundef nonnull %58)
  br label %.critedge

104:                                              ; preds = %97
  store ptr null, ptr %71, align 8, !tbaa !15
  br label %105

105:                                              ; preds = %104, %95
  %106 = load ptr, ptr %72, align 8, !tbaa !28
  %107 = call i32 @mln_stack_push(ptr noundef %106, ptr noundef nonnull %90) #7
  %108 = icmp slt i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %105
  call void @mln_lex_input_free(ptr noundef nonnull %90)
  %110 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 1, ptr %110, align 8, !tbaa !20
  %111 = call i32 @closedir(ptr noundef nonnull %58)
  br label %.critedge

112:                                              ; preds = %105
  store i64 1, ptr %70, align 8, !tbaa !27
  br label %.backedge

.backedge:                                        ; preds = %112, %73, %85
  %113 = call ptr @readdir(ptr noundef nonnull %58) #7
  %.not93 = icmp eq ptr %113, null
  br i1 %.not93, label %._crit_edge, label %73, !llvm.loop !29

._crit_edge:                                      ; preds = %.backedge, %62
  %114 = call i32 @closedir(ptr noundef nonnull %58)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %142

115:                                              ; preds = %52
  %116 = getelementptr inbounds i8, ptr %0, i64 584
  %117 = load i64, ptr %116, align 8, !tbaa !27
  %118 = call ptr @mln_lex_input_new(ptr noundef %0, i32 noundef 1, ptr noundef %1, ptr noundef %3, i64 noundef %117)
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %123

120:                                              ; preds = %115
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 %121, ptr %122, align 8, !tbaa !20
  br label %142

123:                                              ; preds = %115
  %124 = getelementptr inbounds i8, ptr %0, i64 16
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %.not92 = icmp eq ptr %125, null
  br i1 %.not92, label %134, label %126

126:                                              ; preds = %123
  %127 = getelementptr inbounds i8, ptr %0, i64 24
  %128 = load ptr, ptr %127, align 8, !tbaa !28
  %129 = call i32 @mln_stack_push(ptr noundef %128, ptr noundef nonnull %125) #7
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %126
  call void @mln_lex_input_free(ptr noundef nonnull %118)
  %132 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 1, ptr %132, align 8, !tbaa !20
  br label %142

133:                                              ; preds = %126
  store ptr null, ptr %124, align 8, !tbaa !15
  br label %134

134:                                              ; preds = %133, %123
  %135 = getelementptr inbounds i8, ptr %0, i64 24
  %136 = load ptr, ptr %135, align 8, !tbaa !28
  %137 = call i32 @mln_stack_push(ptr noundef %136, ptr noundef nonnull %118) #7
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %134
  call void @mln_lex_input_free(ptr noundef nonnull %118)
  %140 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 1, ptr %140, align 8, !tbaa !20
  br label %142

141:                                              ; preds = %134
  store i64 1, ptr %116, align 8, !tbaa !27
  br label %142

.critedge:                                        ; preds = %109, %101, %92, %60
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %142

142:                                              ; preds = %141, %._crit_edge, %.critedge, %139, %131, %120, %50, %45
  %.1 = phi i32 [ -1, %45 ], [ -1, %50 ], [ -1, %120 ], [ -1, %131 ], [ -1, %139 ], [ -1, %.critedge ], [ 0, %._crit_edge ], [ 0, %141 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret i32 %.1
}

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @opendir(ptr nocapture noundef readonly) local_unnamed_addr #2

declare ptr @readdir(ptr noundef) local_unnamed_addr #5

declare i32 @mln_stack_push(ptr noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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, !12, i64 8}
!10 = !{!"", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 16, !12, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !11, i64 16}
!16 = !{!"mln_lex_s", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !17, i64 32, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !12, i64 576, !12, i64 584, !6, i64 592, !6, i64 596, !6, i64 596, !11, i64 600, !11, i64 608}
!17 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504}
!18 = !{!19, !11, i64 16}
!19 = !{!"", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40, !12, i64 48}
!20 = !{!16, !6, i64 592}
!21 = !{!22, !6, i64 24}
!22 = !{!"stat", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !23, i64 72, !23, i64 88, !23, i64 104, !7, i64 120}
!23 = !{!"timespec", !12, i64 0, !12, i64 8}
!24 = !{!25, !7, i64 18}
!25 = !{!"dirent", !12, i64 0, !12, i64 8, !26, i64 16, !7, i64 18, !7, i64 19}
!26 = !{!"short", !7, i64 0}
!27 = !{!16, !12, i64 584}
!28 = !{!16, !11, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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