; 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.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.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
@.str.2 = external hidden unnamed_addr constant [6 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

declare ptr @mln_alloc_m(ptr noundef, i64 noundef) #1

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

declare void @mln_alloc_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_lex_input_new(ptr noundef nonnull %0, i32 noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [1024 x i8], align 16
  %18 = alloca [1024 x i8], align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mln_lex_s, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = call ptr @mln_alloc_m(ptr noundef %24, i64 noundef 56)
  store ptr %25, ptr %13, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %29

27:                                               ; preds = %5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %28, align 4, !tbaa !9
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %309

29:                                               ; preds = %5
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.mln_lex_input_t, ptr %31, i32 0, i32 0
  store i32 %30, ptr %32, align 8, !tbaa !16
  %33 = load i64, ptr %11, align 8, !tbaa !11
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.mln_lex_input_t, ptr %34, i32 0, i32 7
  store i64 %33, ptr %35, align 8, !tbaa !18
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mln_lex_s, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = call ptr @mln_string_pool_dup(ptr noundef %38, ptr noundef %39)
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.mln_lex_input_t, ptr %41, i32 0, i32 2
  store ptr %40, ptr %42, align 8, !tbaa !19
  %43 = icmp eq ptr %40, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %29
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %45)
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %46, align 4, !tbaa !9
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %309

47:                                               ; preds = %29
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mln_lex_input_t, ptr %48, i32 0, i32 3
  store ptr null, ptr %49, align 8, !tbaa !20
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %69

52:                                               ; preds = %47
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.mln_lex_input_t, ptr %53, i32 0, i32 1
  store i32 -1, ptr %54, align 4, !tbaa !21
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.mln_lex_input_t, ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  %58 = getelementptr inbounds %struct.mln_string_t, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mln_lex_input_t, ptr %60, i32 0, i32 4
  store ptr %59, ptr %61, align 8, !tbaa !24
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.mln_lex_input_t, ptr %62, i32 0, i32 5
  store ptr %59, ptr %63, align 8, !tbaa !25
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mln_string_t, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !26
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.mln_lex_input_t, ptr %67, i32 0, i32 6
  store i64 %66, ptr %68, align 8, !tbaa !27
  br label %307

69:                                               ; preds = %47
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %300

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 1024, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 1024, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store ptr null, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.mln_string_t, ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !26
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %77, label %135

77:                                               ; preds = %72
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.mln_string_t, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  %81 = getelementptr inbounds i8, ptr %80, i64 0
  %82 = load i8, ptr %81, align 1, !tbaa !28
  %83 = zext i8 %82 to i32
  %84 = icmp eq i32 %83, 64
  br i1 %84, label %85, label %135

85:                                               ; preds = %77
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.mln_lex_s, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  %89 = icmp eq ptr %88, null
  br i1 %89, label %97, label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mln_lex_s, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = getelementptr inbounds %struct.mln_lex_input_t, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %100

97:                                               ; preds = %90, %85
  %98 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %99 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %98, i64 noundef 1023, ptr noundef @.str) #8
  store i32 %99, ptr %15, align 4, !tbaa !9
  br label %110

100:                                              ; preds = %90
  %101 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mln_lex_s, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !29
  %105 = getelementptr inbounds %struct.mln_lex_input_t, ptr %104, i32 0, i32 3
  %106 = load ptr, ptr %105, align 8, !tbaa !20
  %107 = getelementptr inbounds %struct.mln_string_t, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  %109 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %101, i64 noundef 1023, ptr noundef @.str.1, ptr noundef %108) #8
  store i32 %109, ptr %15, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %100, %97
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mln_string_t, ptr %111, i32 0, i32 1
  %113 = load i64, ptr %112, align 8, !tbaa !26
  %114 = sub i64 %113, 1
  %115 = icmp uge i64 %114, 1024
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %122

117:                                              ; preds = %110
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.mln_string_t, ptr %118, i32 0, i32 1
  %120 = load i64, ptr %119, align 8, !tbaa !26
  %121 = sub i64 %120, 1
  br label %122

122:                                              ; preds = %117, %116
  %123 = phi i64 [ 1023, %116 ], [ %121, %117 ]
  %124 = trunc i64 %123 to i32
  store i32 %124, ptr %16, align 4, !tbaa !9
  %125 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %125, i64 %127
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.mln_string_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = getelementptr inbounds i8, ptr %131, i64 1
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %128, ptr align 1 %132, i64 %134, i1 false)
  br label %154

135:                                              ; preds = %77, %72
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mln_string_t, ptr %136, i32 0, i32 1
  %138 = load i64, ptr %137, align 8, !tbaa !26
  %139 = icmp uge i64 %138, 1024
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  br label %145

141:                                              ; preds = %135
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mln_string_t, ptr %142, i32 0, i32 1
  %144 = load i64, ptr %143, align 8, !tbaa !26
  br label %145

145:                                              ; preds = %141, %140
  %146 = phi i64 [ 1023, %140 ], [ %144, %141 ]
  %147 = trunc i64 %146 to i32
  store i32 %147, ptr %16, align 4, !tbaa !9
  %148 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.mln_string_t, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !22
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %148, ptr align 1 %151, i64 %153, i1 false)
  br label %154

154:                                              ; preds = %145, %122
  %155 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %156 = load i8, ptr %155, align 16, !tbaa !28
  %157 = sext i8 %156 to i32
  %158 = icmp eq i32 %157, 47
  br i1 %158, label %159, label %169

159:                                              ; preds = %154
  %160 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %161 = call i32 (ptr, i32, ...) @open(ptr noundef %160, i32 noundef 0)
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.mln_lex_input_t, ptr %162, i32 0, i32 1
  store i32 %161, ptr %163, align 4, !tbaa !21
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = call i32 @mln_lex_base_dir(ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167)
  store i32 %168, ptr %12, align 4, !tbaa !9
  br label %279

169:                                              ; preds = %154
  %170 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %171 = call i32 @access(ptr noundef %170, i32 noundef 0) #8
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %183, label %173

173:                                              ; preds = %169
  %174 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %175 = call i32 (ptr, i32, ...) @open(ptr noundef %174, i32 noundef 0)
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.mln_lex_input_t, ptr %176, i32 0, i32 1
  store i32 %175, ptr %177, align 4, !tbaa !21
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = call i32 @mln_lex_base_dir(ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %181)
  store i32 %182, ptr %12, align 4, !tbaa !9
  br label %278

183:                                              ; preds = %169
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mln_lex_s, ptr %184, i32 0, i32 13
  %186 = load ptr, ptr %185, align 8, !tbaa !30
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %259

188:                                              ; preds = %183
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mln_lex_s, ptr %189, i32 0, i32 13
  %191 = load ptr, ptr %190, align 8, !tbaa !30
  %192 = getelementptr inbounds %struct.mln_string_t, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !22
  %194 = call ptr @getenv(ptr noundef %193) #8
  store ptr %194, ptr %19, align 8, !tbaa !5
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %259

196:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = call ptr @strchr(ptr noundef %197, i32 noundef 59) #9
  store ptr %198, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %224, %196
  %200 = load ptr, ptr %20, align 8, !tbaa !5
  %201 = icmp ne ptr %200, null
  br i1 %201, label %202, label %229

202:                                              ; preds = %199
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  store i8 0, ptr %203, align 1, !tbaa !28
  %204 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %205 = load ptr, ptr %19, align 8, !tbaa !5
  %206 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %207 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %204, i64 noundef 1023, ptr noundef @.str.2, ptr noundef %205, ptr noundef %206) #8
  store i32 %207, ptr %15, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 %209
  store i8 0, ptr %210, align 1, !tbaa !28
  %211 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %212 = call i32 @access(ptr noundef %211, i32 noundef 0) #8
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %224, label %214

214:                                              ; preds = %202
  %215 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %216 = call i32 (ptr, i32, ...) @open(ptr noundef %215, i32 noundef 0)
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.mln_lex_input_t, ptr %217, i32 0, i32 1
  store i32 %216, ptr %218, align 4, !tbaa !21
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = call i32 @mln_lex_base_dir(ptr noundef %219, ptr noundef %220, ptr noundef %221, ptr noundef %222)
  store i32 %223, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %229

224:                                              ; preds = %202
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  %226 = getelementptr inbounds i8, ptr %225, i64 1
  store ptr %226, ptr %19, align 8, !tbaa !5
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = call ptr @strchr(ptr noundef %227, i32 noundef 59) #9
  store ptr %228, ptr %20, align 8, !tbaa !5
  br label %199, !llvm.loop !31

229:                                              ; preds = %214, %199
  %230 = load i32, ptr %21, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %255, label %232

232:                                              ; preds = %229
  %233 = load ptr, ptr %19, align 8, !tbaa !5
  %234 = load i8, ptr %233, align 1, !tbaa !28
  %235 = icmp ne i8 %234, 0
  br i1 %235, label %236, label %253

236:                                              ; preds = %232
  %237 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %238 = load ptr, ptr %19, align 8, !tbaa !5
  %239 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %240 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %237, i64 noundef 1023, ptr noundef @.str.2, ptr noundef %238, ptr noundef %239) #8
  store i32 %240, ptr %15, align 4, !tbaa !9
  %241 = load i32, ptr %15, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 %242
  store i8 0, ptr %243, align 1, !tbaa !28
  %244 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %245 = call i32 (ptr, i32, ...) @open(ptr noundef %244, i32 noundef 0)
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.mln_lex_input_t, ptr %246, i32 0, i32 1
  store i32 %245, ptr %247, align 4, !tbaa !21
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load ptr, ptr %13, align 8, !tbaa !5
  %250 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = call i32 @mln_lex_base_dir(ptr noundef %248, ptr noundef %249, ptr noundef %250, ptr noundef %251)
  store i32 %252, ptr %12, align 4, !tbaa !9
  br label %254

253:                                              ; preds = %232
  store i32 4, ptr %14, align 4
  br label %256

254:                                              ; preds = %236
  br label %255

255:                                              ; preds = %254, %229
  store i32 0, ptr %14, align 4
  br label %256

256:                                              ; preds = %255, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %257 = load i32, ptr %14, align 4
  switch i32 %257, label %297 [
    i32 0, label %258
    i32 4, label %260
  ]

258:                                              ; preds = %256
  br label %277

259:                                              ; preds = %188, %183
  br label %260

260:                                              ; preds = %259, %256
  %261 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %262 = call ptr @mln_path_melang_lib()
  %263 = getelementptr inbounds [1024 x i8], ptr %17, i64 0, i64 0
  %264 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %261, i64 noundef 1023, ptr noundef @.str.2, ptr noundef %262, ptr noundef %263) #8
  store i32 %264, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 %266
  store i8 0, ptr %267, align 1, !tbaa !28
  %268 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %269 = call i32 (ptr, i32, ...) @open(ptr noundef %268, i32 noundef 0)
  %270 = load ptr, ptr %13, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.mln_lex_input_t, ptr %270, i32 0, i32 1
  store i32 %269, ptr %271, align 4, !tbaa !21
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = call i32 @mln_lex_base_dir(ptr noundef %272, ptr noundef %273, ptr noundef %274, ptr noundef %275)
  store i32 %276, ptr %12, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %260, %258
  br label %278

278:                                              ; preds = %277, %173
  br label %279

279:                                              ; preds = %278, %159
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.mln_lex_input_t, ptr %280, i32 0, i32 5
  store ptr null, ptr %281, align 8, !tbaa !25
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.mln_lex_input_t, ptr %282, i32 0, i32 4
  store ptr null, ptr %283, align 8, !tbaa !24
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.mln_lex_input_t, ptr %284, i32 0, i32 6
  store i64 4095, ptr %285, align 8, !tbaa !27
  %286 = load i32, ptr %12, align 4, !tbaa !9
  %287 = icmp slt i32 %286, 0
  br i1 %287, label %293, label %288

288:                                              ; preds = %279
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.mln_lex_input_t, ptr %289, i32 0, i32 1
  %291 = load i32, ptr %290, align 4, !tbaa !21
  %292 = icmp slt i32 %291, 0
  br i1 %292, label %293, label %296

293:                                              ; preds = %288, %279
  %294 = load ptr, ptr %13, align 8, !tbaa !5
  call void @mln_lex_input_free(ptr noundef %294)
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 7, ptr %295, align 4, !tbaa !9
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %297

296:                                              ; preds = %288
  store i32 0, ptr %14, align 4
  br label %297

297:                                              ; preds = %296, %293, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %298 = load i32, ptr %14, align 4
  switch i32 %298, label %309 [
    i32 0, label %299
  ]

299:                                              ; preds = %297
  br label %306

300:                                              ; preds = %69
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.mln_lex_input_t, ptr %301, i32 0, i32 2
  %303 = load ptr, ptr %302, align 8, !tbaa !19
  call void @mln_alloc_free(ptr noundef %303)
  %304 = load ptr, ptr %13, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %304)
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 10, ptr %305, align 4, !tbaa !9
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %309

306:                                              ; preds = %299
  br label %307

307:                                              ; preds = %306, %52
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %308, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %309

309:                                              ; preds = %307, %300, %297, %44, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %310 = load ptr, ptr %6, align 8
  ret ptr %310
}

declare ptr @mln_string_pool_dup(ptr noundef, ptr noundef) #1

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

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

; 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) #5

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_base_dir(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

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

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #4

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

declare ptr @mln_path_melang_lib() #1

; Function Attrs: nounwind uwtable
declare dso_local void @mln_lex_input_free(ptr 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"mln_lex_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !12, i64 576, !12, i64 584, !10, i64 592, !10, i64 596, !10, i64 596, !6, i64 600, !6, i64 608}
!15 = !{!"", !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}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 48}
!18 = !{!17, !12, i64 48}
!19 = !{!17, !6, i64 8}
!20 = !{!17, !6, i64 16}
!21 = !{!17, !10, i64 4}
!22 = !{!23, !6, i64 0}
!23 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 16, !12, i64 16}
!24 = !{!17, !6, i64 24}
!25 = !{!17, !6, i64 32}
!26 = !{!23, !12, i64 8}
!27 = !{!17, !12, i64 40}
!28 = !{!7, !7, i64 0}
!29 = !{!14, !6, i64 16}
!30 = !{!14, !6, i64 600}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 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

declare ptr @mln_alloc_m(ptr noundef, i64 noundef) 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

declare void @mln_alloc_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_lex_input_new(ptr noundef nonnull %0, i32 noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [1024 x i8], align 16
  %7 = alloca [1024 x i8], align 16
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = tail call ptr @mln_alloc_m(ptr noundef %8, i64 noundef 56) #11
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %5
  store i32 1, ptr %3, align 4, !tbaa !13
  br label %96

12:                                               ; preds = %5
  store i32 %1, ptr %9, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %9, i64 48
  store i64 %4, ptr %13, align 8, !tbaa !16
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = tail call ptr @mln_string_pool_dup(ptr noundef %14, ptr noundef nonnull %2) #11
  %16 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %15, ptr %16, align 8, !tbaa !17
  %17 = icmp eq ptr %15, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %12
  tail call void @mln_alloc_free(ptr noundef nonnull %9) #11
  store i32 1, ptr %3, align 4, !tbaa !13
  br label %96

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr null, ptr %20, align 8, !tbaa !18
  switch i32 %1, label %95 [
    i32 0, label %21
    i32 1, label %29
  ]

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 -1, ptr %22, align 4, !tbaa !19
  %23 = load ptr, ptr %15, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %9, i64 24
  store ptr %23, ptr %24, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %9, i64 32
  store ptr %23, ptr %25, align 8, !tbaa !23
  %26 = getelementptr inbounds i8, ptr %2, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !24
  %28 = getelementptr inbounds i8, ptr %9, i64 40
  store i64 %27, ptr %28, align 8, !tbaa !25
  br label %96

29:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %6, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #11
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  %31 = load i64, ptr %30, align 8, !tbaa !24
  %.not = icmp eq i64 %31, 0
  %.pre = load ptr, ptr %2, align 8, !tbaa !20
  br i1 %.not, label %55, label %32

32:                                               ; preds = %29
  %33 = load i8, ptr %.pre, align 1, !tbaa !26
  %34 = icmp eq i8 %33, 64
  br i1 %34, label %35, label %55

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = icmp eq ptr %37, null
  br i1 %38, label %43, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %37, i64 16
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %45

43:                                               ; preds = %39, %35
  %44 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 1023, ptr noundef nonnull @.str) #11
  br label %48

45:                                               ; preds = %39
  %46 = load ptr, ptr %41, align 8, !tbaa !20
  %47 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 1023, ptr noundef nonnull @.str.1, ptr noundef %46) #11
  br label %48

48:                                               ; preds = %45, %43
  %.083 = phi i32 [ %44, %43 ], [ %47, %45 ]
  %49 = load i64, ptr %30, align 8, !tbaa !24
  %50 = add i64 %49, -1
  %spec.select = tail call i64 @llvm.umin.i64(i64 %50, i64 1023)
  %51 = sext i32 %.083 to i64
  %52 = getelementptr inbounds i8, ptr %6, i64 %51
  %53 = load ptr, ptr %2, align 8, !tbaa !20
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %52, ptr nonnull align 1 %54, i64 %spec.select, i1 false)
  br label %56

55:                                               ; preds = %32, %29
  %spec.select104 = tail call i64 @llvm.umin.i64(i64 %31, i64 1023)
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr align 1 %.pre, i64 %spec.select104, i1 false)
  br label %56

56:                                               ; preds = %55, %48
  %57 = load i8, ptr %6, align 16, !tbaa !26
  %58 = icmp eq i8 %57, 47
  br i1 %58, label %.thread108, label %59

59:                                               ; preds = %56
  %60 = call i32 @access(ptr noundef nonnull %6, i32 noundef 0) #11
  %.not97 = icmp eq i32 %60, 0
  br i1 %.not97, label %.thread108, label %61

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %0, i64 600
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %.not98 = icmp eq ptr %63, null
  br i1 %.not98, label %79, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %63, align 8, !tbaa !20
  %66 = tail call ptr @getenv(ptr noundef %65) #11
  %.not99 = icmp eq ptr %66, null
  br i1 %.not99, label %79, label %67

67:                                               ; preds = %64
  %68 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %66, i32 noundef 59) #12
  %.not100116 = icmp eq ptr %68, null
  br i1 %.not100116, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %67, %73
  %.081118 = phi ptr [ %75, %73 ], [ %68, %67 ]
  %.082117 = phi ptr [ %74, %73 ], [ %66, %67 ]
  store i8 0, ptr %.081118, align 1, !tbaa !26
  %69 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 1023, ptr noundef nonnull @.str.2, ptr noundef nonnull %.082117, ptr noundef nonnull %6) #11
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %70
  store i8 0, ptr %71, align 1, !tbaa !26
  %72 = call i32 @access(ptr noundef nonnull %7, i32 noundef 0) #11
  %.not101 = icmp eq i32 %72, 0
  br i1 %.not101, label %.thread108, label %73

73:                                               ; preds = %.lr.ph
  %74 = getelementptr inbounds i8, ptr %.081118, i64 1
  %75 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %74, i32 noundef 59) #12
  %.not100 = icmp eq ptr %75, null
  br i1 %.not100, label %._crit_edge, label %.lr.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %73, %67
  %.082.lcssa = phi ptr [ %66, %67 ], [ %74, %73 ]
  %76 = load i8, ptr %.082.lcssa, align 1, !tbaa !26
  %.not103 = icmp eq i8 %76, 0
  br i1 %.not103, label %79, label %77

77:                                               ; preds = %._crit_edge
  %78 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 1023, ptr noundef nonnull @.str.2, ptr noundef nonnull %.082.lcssa, ptr noundef nonnull %6) #11
  br label %.thread108.sink.split

79:                                               ; preds = %._crit_edge, %61, %64
  %80 = call ptr @mln_path_melang_lib() #11
  %81 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 1023, ptr noundef nonnull @.str.2, ptr noundef %80, ptr noundef nonnull %6) #11
  br label %.thread108.sink.split

.thread108.sink.split:                            ; preds = %79, %77
  %.sink = phi i32 [ %78, %77 ], [ %81, %79 ]
  %82 = sext i32 %.sink to i64
  %83 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %82
  store i8 0, ptr %83, align 1, !tbaa !26
  br label %.thread108

.thread108:                                       ; preds = %.lr.ph, %.thread108.sink.split, %59, %56
  %.sink121 = phi ptr [ %6, %56 ], [ %6, %59 ], [ %7, %.thread108.sink.split ], [ %7, %.lr.ph ]
  %84 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %.sink121, i32 noundef 0) #11
  %85 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 %84, ptr %85, align 4, !tbaa !19
  %86 = call i32 @mln_lex_base_dir(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %.sink121, ptr noundef nonnull %3)
  %87 = getelementptr inbounds i8, ptr %9, i64 24
  %88 = getelementptr inbounds i8, ptr %9, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %87, i8 0, i64 16, i1 false)
  store i64 4095, ptr %88, align 8, !tbaa !25
  %89 = icmp slt i32 %86, 0
  br i1 %89, label %94, label %90

90:                                               ; preds = %.thread108
  %91 = getelementptr inbounds i8, ptr %9, i64 4
  %92 = load i32, ptr %91, align 4, !tbaa !19
  %93 = icmp slt i32 %92, 0
  br i1 %93, label %94, label %.thread112

.thread112:                                       ; preds = %90
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #11
  br label %96

94:                                               ; preds = %.thread108, %90
  call void @mln_lex_input_free(ptr noundef nonnull %9)
  store i32 7, ptr %3, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #11
  br label %96

95:                                               ; preds = %19
  tail call void @mln_alloc_free(ptr noundef nonnull %15) #11
  tail call void @mln_alloc_free(ptr noundef nonnull %9) #11
  store i32 10, ptr %3, align 4, !tbaa !13
  br label %96

96:                                               ; preds = %21, %.thread112, %94, %95, %18, %11
  %.186 = phi ptr [ null, %11 ], [ null, %18 ], [ null, %94 ], [ null, %95 ], [ %9, %.thread112 ], [ %9, %21 ]
  ret ptr %.186
}

declare ptr @mln_string_pool_dup(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; 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) #5

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_base_dir(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #8

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

declare ptr @mln_path_melang_lib() local_unnamed_addr #1

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

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

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


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