; 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_rbtree_attr = type { ptr, ptr, ptr, ptr, ptr }
%struct.mln_string_t = type { ptr, i64, i32 }
%struct.mln_lex_attr = type { ptr, ptr, ptr, i32, i32, ptr, ptr }
%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 }

@__const.mln_lex_init.k1 = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@__const.mln_lex_init.k2 = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8

; 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

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) #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 uwtable
declare dso_local void @mln_lex_input_free(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @mln_lex_macro_new(ptr noundef nonnull, ptr noundef nonnull, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @mln_lex_macro_free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_lex_init(ptr noundef nonnull %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.mln_rbtree_attr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.mln_string_t, align 8
  %8 = alloca %struct.mln_string_t, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @__const.mln_lex_init.k1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const.mln_lex_init.k2, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.mln_lex_attr, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = call ptr @mln_alloc_m(ptr noundef %15, i64 noundef 616)
  store ptr %16, ptr %11, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %1
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

19:                                               ; preds = %1
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.mln_lex_attr, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.mln_lex_s, ptr %23, i32 0, i32 0
  store ptr %22, ptr %24, align 8, !tbaa !12
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mln_lex_s, ptr %25, i32 0, i32 14
  store ptr null, ptr %26, align 8, !tbaa !16
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.mln_lex_s, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 0
  store ptr %29, ptr %30, align 8, !tbaa !17
  %31 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 1
  store ptr @mln_alloc_m, ptr %31, align 8, !tbaa !19
  %32 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 2
  store ptr @mln_alloc_free, ptr %32, align 8, !tbaa !20
  %33 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 3
  store ptr @mln_lex_macro_cmp, ptr %33, align 8, !tbaa !21
  %34 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 4
  store ptr @mln_lex_macro_free, ptr %34, align 8, !tbaa !22
  %35 = call ptr @mln_rbtree_new(ptr noundef %5)
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mln_lex_s, ptr %36, i32 0, i32 1
  store ptr %35, ptr %37, align 8, !tbaa !23
  %38 = icmp eq ptr %35, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %19
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %40)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

41:                                               ; preds = %19
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mln_lex_s, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  %45 = call ptr @mln_lex_macro_new(ptr noundef %44, ptr noundef %7, ptr noundef null)
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %53

47:                                               ; preds = %41
  br label %48

48:                                               ; preds = %165, %151, %126, %93, %80, %72, %60, %47
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mln_lex_s, ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  call void @mln_rbtree_free(ptr noundef %51)
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %52)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

53:                                               ; preds = %41
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.mln_lex_s, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = call ptr @mln_rbtree_node_new(ptr noundef %56, ptr noundef %57)
  store ptr %58, ptr %6, align 8, !tbaa !5
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %53
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mln_lex_macro_free(ptr noundef %61)
  br label %48

62:                                               ; preds = %53
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.mln_lex_s, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mln_rbtree_insert(ptr noundef %65, ptr noundef %66)
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.mln_lex_s, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !12
  %70 = call ptr @mln_lex_macro_new(ptr noundef %69, ptr noundef %8, ptr noundef null)
  store ptr %70, ptr %4, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %62
  br label %48

73:                                               ; preds = %62
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mln_lex_s, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call ptr @mln_rbtree_node_new(ptr noundef %76, ptr noundef %77)
  store ptr %78, ptr %6, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %82

80:                                               ; preds = %73
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mln_lex_macro_free(ptr noundef %81)
  br label %48

82:                                               ; preds = %73
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.mln_lex_s, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !23
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mln_rbtree_insert(ptr noundef %85, ptr noundef %86)
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.mln_lex_s, ptr %87, i32 0, i32 2
  store ptr null, ptr %88, align 8, !tbaa !24
  %89 = call ptr @mln_stack_init(ptr noundef @mln_lex_input_free, ptr noundef null)
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.mln_lex_s, ptr %90, i32 0, i32 3
  store ptr %89, ptr %91, align 8, !tbaa !25
  %92 = icmp eq ptr %89, null
  br i1 %92, label %93, label %94

93:                                               ; preds = %82
  br label %48

94:                                               ; preds = %82
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.mln_lex_attr, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !26
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %105

99:                                               ; preds = %94
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mln_lex_s, ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mln_lex_attr, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %101, ptr align 8 %104, i64 512, i1 false)
  br label %108

105:                                              ; preds = %94
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mln_lex_s, ptr %106, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %107, i8 0, i64 512, i1 false)
  br label %108

108:                                              ; preds = %105, %99
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.mln_lex_attr, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %182

113:                                              ; preds = %108
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.mln_lex_s, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !12
  %117 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 0
  store ptr %116, ptr %117, align 8, !tbaa !17
  %118 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 1
  store ptr @mln_alloc_m, ptr %118, align 8, !tbaa !19
  %119 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 2
  store ptr @mln_alloc_free, ptr %119, align 8, !tbaa !20
  %120 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 3
  store ptr @mln_lex_keywords_cmp, ptr %120, align 8, !tbaa !21
  %121 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %5, i32 0, i32 4
  store ptr @mln_lex_keyword_free, ptr %121, align 8, !tbaa !22
  %122 = call ptr @mln_rbtree_new(ptr noundef %5)
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.mln_lex_s, ptr %123, i32 0, i32 5
  store ptr %122, ptr %124, align 8, !tbaa !28
  %125 = icmp eq ptr %122, null
  br i1 %125, label %126, label %130

126:                                              ; preds = %113
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.mln_lex_s, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !25
  call void @mln_stack_destroy(ptr noundef %129)
  br label %48

130:                                              ; preds = %113
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.mln_lex_attr, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !27
  store ptr %133, ptr %9, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %178, %130
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.mln_string_t, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !29
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %181

139:                                              ; preds = %134
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mln_lex_attr, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !27
  %145 = ptrtoint ptr %141 to i64
  %146 = ptrtoint ptr %144 to i64
  %147 = sub i64 %145, %146
  %148 = sdiv exact i64 %147, 24
  %149 = call ptr @mln_lex_keyword_new(ptr noundef %140, i64 noundef %148)
  store ptr %149, ptr %10, align 8, !tbaa !5
  %150 = icmp eq ptr %149, null
  br i1 %150, label %151, label %158

151:                                              ; preds = %139
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mln_lex_s, ptr %152, i32 0, i32 5
  %154 = load ptr, ptr %153, align 8, !tbaa !28
  call void @mln_rbtree_free(ptr noundef %154)
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.mln_lex_s, ptr %155, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !25
  call void @mln_stack_destroy(ptr noundef %157)
  br label %48

158:                                              ; preds = %139
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.mln_lex_s, ptr %159, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = call ptr @mln_rbtree_node_new(ptr noundef %161, ptr noundef %162)
  store ptr %163, ptr %6, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %165, label %173

165:                                              ; preds = %158
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @mln_lex_keyword_free(ptr noundef %166)
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.mln_lex_s, ptr %167, i32 0, i32 5
  %169 = load ptr, ptr %168, align 8, !tbaa !28
  call void @mln_rbtree_free(ptr noundef %169)
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.mln_lex_s, ptr %170, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !25
  call void @mln_stack_destroy(ptr noundef %172)
  br label %48

173:                                              ; preds = %158
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.mln_lex_s, ptr %174, i32 0, i32 5
  %176 = load ptr, ptr %175, align 8, !tbaa !28
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mln_rbtree_insert(ptr noundef %176, ptr noundef %177)
  br label %178

178:                                              ; preds = %173
  %179 = load ptr, ptr %9, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.mln_string_t, ptr %179, i32 1
  store ptr %180, ptr %9, align 8, !tbaa !5
  br label %134, !llvm.loop !31

181:                                              ; preds = %134
  br label %185

182:                                              ; preds = %108
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.mln_lex_s, ptr %183, i32 0, i32 5
  store ptr null, ptr %184, align 8, !tbaa !28
  br label %185

185:                                              ; preds = %182, %181
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.mln_lex_s, ptr %186, i32 0, i32 6
  store ptr null, ptr %187, align 8, !tbaa !33
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.mln_lex_s, ptr %188, i32 0, i32 8
  store ptr null, ptr %189, align 8, !tbaa !34
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mln_lex_s, ptr %190, i32 0, i32 7
  store ptr null, ptr %191, align 8, !tbaa !35
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.mln_lex_s, ptr %192, i32 0, i32 9
  store i64 4095, ptr %193, align 8, !tbaa !36
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.mln_lex_s, ptr %194, i32 0, i32 10
  store i64 1, ptr %195, align 8, !tbaa !37
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mln_lex_s, ptr %196, i32 0, i32 11
  store i32 0, ptr %197, align 8, !tbaa !38
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.mln_lex_attr, ptr %198, i32 0, i32 3
  %200 = load i32, ptr %199, align 8
  %201 = and i32 %200, 1
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.mln_lex_s, ptr %202, i32 0, i32 12
  %204 = trunc i32 %201 to i8
  %205 = load i8, ptr %203, align 4
  %206 = and i8 %204, 1
  %207 = and i8 %205, -2
  %208 = or i8 %207, %206
  store i8 %208, ptr %203, align 4
  %209 = zext i8 %206 to i32
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.mln_lex_s, ptr %210, i32 0, i32 12
  %212 = load i8, ptr %211, align 4
  %213 = and i8 %212, -3
  %214 = or i8 %213, 0
  store i8 %214, ptr %211, align 4
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.mln_lex_attr, ptr %215, i32 0, i32 5
  %217 = load ptr, ptr %216, align 8, !tbaa !39
  %218 = icmp ne ptr %217, null
  br i1 %218, label %219, label %233

219:                                              ; preds = %185
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.mln_lex_s, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !12
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.mln_lex_attr, ptr %223, i32 0, i32 5
  %225 = load ptr, ptr %224, align 8, !tbaa !39
  %226 = call ptr @mln_string_pool_dup(ptr noundef %222, ptr noundef %225)
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.mln_lex_s, ptr %227, i32 0, i32 13
  store ptr %226, ptr %228, align 8, !tbaa !40
  %229 = icmp eq ptr %226, null
  br i1 %229, label %230, label %232

230:                                              ; preds = %219
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %231)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

232:                                              ; preds = %219
  br label %236

233:                                              ; preds = %185
  %234 = load ptr, ptr %11, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.mln_lex_s, ptr %234, i32 0, i32 13
  store ptr null, ptr %235, align 8, !tbaa !40
  br label %236

236:                                              ; preds = %233, %232
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.mln_lex_attr, ptr %237, i32 0, i32 6
  %239 = load ptr, ptr %238, align 8, !tbaa !41
  %240 = icmp ne ptr %239, null
  br i1 %240, label %241, label %275

241:                                              ; preds = %236
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.mln_lex_attr, ptr %242, i32 0, i32 4
  %244 = load i32, ptr %243, align 4, !tbaa !42
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %256

246:                                              ; preds = %241
  %247 = load ptr, ptr %11, align 8, !tbaa !5
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.mln_lex_attr, ptr %248, i32 0, i32 6
  %250 = load ptr, ptr %249, align 8, !tbaa !41
  %251 = call i32 @mln_lex_push_input_buf_stream(ptr noundef %247, ptr noundef %250)
  %252 = icmp slt i32 %251, 0
  br i1 %252, label %253, label %255

253:                                              ; preds = %246
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %254)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

255:                                              ; preds = %246
  br label %274

256:                                              ; preds = %241
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.mln_lex_attr, ptr %257, i32 0, i32 4
  %259 = load i32, ptr %258, align 4, !tbaa !42
  %260 = icmp eq i32 %259, 1
  br i1 %260, label %261, label %271

261:                                              ; preds = %256
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.mln_lex_attr, ptr %263, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !41
  %266 = call i32 @mln_lex_push_input_file_stream(ptr noundef %262, ptr noundef %265)
  %267 = icmp slt i32 %266, 0
  br i1 %267, label %268, label %270

268:                                              ; preds = %261
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %269)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

270:                                              ; preds = %261
  br label %273

271:                                              ; preds = %256
  %272 = load ptr, ptr %11, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %272)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

273:                                              ; preds = %270
  br label %274

274:                                              ; preds = %273, %255
  br label %275

275:                                              ; preds = %274, %236
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %276, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %277

277:                                              ; preds = %275, %271, %268, %253, %230, %48, %39, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %278 = load ptr, ptr %2, align 8
  ret ptr %278
}

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_lex_macro_cmp(ptr noundef, ptr noundef) #4

declare ptr @mln_rbtree_new(ptr noundef) #1

declare void @mln_rbtree_free(ptr noundef) #1

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

declare void @mln_rbtree_insert(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_lex_keywords_cmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @mln_lex_keyword_free(ptr noundef) #4

declare void @mln_stack_destroy(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mln_lex_keyword_new(ptr noundef, i64 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local void @mln_lex_destroy(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @mln_lex_push_input_buf_stream(ptr noundef nonnull, ptr noundef nonnull) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @mln_lex_push_input_file_stream(ptr noundef nonnull, ptr noundef nonnull) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"mln_lex_attr", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"mln_lex_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !15, i64 576, !15, i64 584, !11, i64 592, !11, i64 596, !11, i64 596, !6, i64 600, !6, i64 608}
!14 = !{!"", !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}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !6, i64 608}
!17 = !{!18, !6, i64 0}
!18 = !{!"mln_rbtree_attr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!19 = !{!18, !6, i64 8}
!20 = !{!18, !6, i64 16}
!21 = !{!18, !6, i64 24}
!22 = !{!18, !6, i64 32}
!23 = !{!13, !6, i64 8}
!24 = !{!13, !6, i64 16}
!25 = !{!13, !6, i64 24}
!26 = !{!10, !6, i64 16}
!27 = !{!10, !6, i64 8}
!28 = !{!13, !6, i64 544}
!29 = !{!30, !6, i64 0}
!30 = !{!"", !6, i64 0, !15, i64 8, !15, i64 16, !15, i64 16, !15, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!13, !6, i64 552}
!34 = !{!13, !6, i64 568}
!35 = !{!13, !6, i64 560}
!36 = !{!13, !15, i64 576}
!37 = !{!13, !15, i64 584}
!38 = !{!13, !11, i64 592}
!39 = !{!10, !6, i64 32}
!40 = !{!13, !6, i64 600}
!41 = !{!10, !6, i64 40}
!42 = !{!10, !11, i64 28}


; 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.mln_rbtree_attr = type { ptr, ptr, ptr, ptr, ptr }
%struct.mln_string_t = type { ptr, i64, i32 }

@__const.mln_lex_init.k1 = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@__const.mln_lex_init.k2 = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8

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

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) #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: nounwind uwtable
declare dso_local void @mln_lex_input_free(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @mln_lex_macro_new(ptr noundef nonnull, ptr noundef nonnull, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @mln_lex_macro_free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_lex_init(ptr nocapture noundef nonnull readonly %0) local_unnamed_addr #4 {
  %2 = alloca %struct.mln_rbtree_attr, align 8
  %3 = alloca %struct.mln_string_t, align 8
  %4 = alloca %struct.mln_string_t, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) @__const.mln_lex_init.k1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @__const.mln_lex_init.k2, i64 24, i1 false)
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = tail call ptr @mln_alloc_m(ptr noundef %5, i64 noundef 616) #6
  %7 = icmp eq ptr %6, null
  br i1 %7, label %124, label %8

8:                                                ; preds = %1
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  store ptr %9, ptr %6, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %6, i64 608
  store ptr null, ptr %10, align 8, !tbaa !15
  store ptr %9, ptr %2, align 8, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr @mln_alloc_m, ptr %11, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @mln_alloc_free, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @mln_lex_macro_cmp, ptr %13, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @mln_lex_macro_free, ptr %14, align 8, !tbaa !21
  %15 = call ptr @mln_rbtree_new(ptr noundef nonnull %2) #6
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %15, ptr %16, align 8, !tbaa !22
  %17 = icmp eq ptr %15, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %8
  call void @mln_alloc_free(ptr noundef nonnull %6) #6
  br label %124

19:                                               ; preds = %8
  %20 = load ptr, ptr %6, align 8, !tbaa !11
  %21 = call ptr @mln_lex_macro_new(ptr noundef %20, ptr noundef %3, ptr noundef null)
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %25

23:                                               ; preds = %40, %30, %19, %78, %73, %60, %39, %29
  %24 = load ptr, ptr %16, align 8, !tbaa !22
  call void @mln_rbtree_free(ptr noundef %24) #6
  call void @mln_alloc_free(ptr noundef nonnull %6) #6
  br label %124

25:                                               ; preds = %19
  %26 = load ptr, ptr %16, align 8, !tbaa !22
  %27 = call ptr @mln_rbtree_node_new(ptr noundef %26, ptr noundef nonnull %21) #6
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  call void @mln_lex_macro_free(ptr noundef nonnull %21)
  br label %23

30:                                               ; preds = %25
  %31 = load ptr, ptr %16, align 8, !tbaa !22
  call void @mln_rbtree_insert(ptr noundef %31, ptr noundef nonnull %27) #6
  %32 = load ptr, ptr %6, align 8, !tbaa !11
  %33 = call ptr @mln_lex_macro_new(ptr noundef %32, ptr noundef %4, ptr noundef null)
  %34 = icmp eq ptr %33, null
  br i1 %34, label %23, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %16, align 8, !tbaa !22
  %37 = call ptr @mln_rbtree_node_new(ptr noundef %36, ptr noundef nonnull %33) #6
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  call void @mln_lex_macro_free(ptr noundef nonnull %33)
  br label %23

40:                                               ; preds = %35
  %41 = load ptr, ptr %16, align 8, !tbaa !22
  call void @mln_rbtree_insert(ptr noundef %41, ptr noundef nonnull %37) #6
  %42 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr null, ptr %42, align 8, !tbaa !23
  %43 = call ptr @mln_stack_init(ptr noundef nonnull @mln_lex_input_free, ptr noundef null) #6
  %44 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %43, ptr %44, align 8, !tbaa !24
  %45 = icmp eq ptr %43, null
  br i1 %45, label %23, label %46

46:                                               ; preds = %40
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !25
  %.not = icmp eq ptr %48, null
  %49 = getelementptr inbounds i8, ptr %6, i64 32
  br i1 %.not, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %49, ptr noundef nonnull align 8 dereferenceable(512) %48, i64 512, i1 false)
  br label %52

51:                                               ; preds = %46
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %49, i8 0, i64 512, i1 false)
  br label %52

52:                                               ; preds = %51, %50
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %.not86 = icmp eq ptr %54, null
  br i1 %.not86, label %85, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr %6, align 8, !tbaa !11
  store ptr %56, ptr %2, align 8, !tbaa !16
  store ptr @mln_alloc_m, ptr %11, align 8, !tbaa !18
  store ptr @mln_alloc_free, ptr %12, align 8, !tbaa !19
  store ptr @mln_lex_keywords_cmp, ptr %13, align 8, !tbaa !20
  store ptr @mln_lex_keyword_free, ptr %14, align 8, !tbaa !21
  %57 = call ptr @mln_rbtree_new(ptr noundef nonnull %2) #6
  %58 = getelementptr inbounds i8, ptr %6, i64 544
  store ptr %57, ptr %58, align 8, !tbaa !27
  %59 = icmp eq ptr %57, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %55
  %61 = load ptr, ptr %44, align 8, !tbaa !24
  call void @mln_stack_destroy(ptr noundef %61) #6
  br label %23

62:                                               ; preds = %55
  %63 = load ptr, ptr %53, align 8, !tbaa !26
  %64 = load ptr, ptr %63, align 8, !tbaa !28
  %.not8791 = icmp eq ptr %64, null
  br i1 %.not8791, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %62, %81
  %.07492 = phi ptr [ %83, %81 ], [ %63, %62 ]
  %65 = load ptr, ptr %53, align 8, !tbaa !26
  %66 = ptrtoint ptr %.07492 to i64
  %67 = ptrtoint ptr %65 to i64
  %68 = sub i64 %66, %67
  %69 = sdiv exact i64 %68, 24
  %70 = call ptr @mln_lex_keyword_new(ptr noundef nonnull %.07492, i64 noundef %69)
  %71 = icmp eq ptr %70, null
  %72 = load ptr, ptr %58, align 8, !tbaa !27
  br i1 %71, label %73, label %75

73:                                               ; preds = %.lr.ph
  call void @mln_rbtree_free(ptr noundef %72) #6
  %74 = load ptr, ptr %44, align 8, !tbaa !24
  call void @mln_stack_destroy(ptr noundef %74) #6
  br label %23

75:                                               ; preds = %.lr.ph
  %76 = call ptr @mln_rbtree_node_new(ptr noundef %72, ptr noundef nonnull %70) #6
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  call void @mln_lex_keyword_free(ptr noundef nonnull %70)
  %79 = load ptr, ptr %58, align 8, !tbaa !27
  call void @mln_rbtree_free(ptr noundef %79) #6
  %80 = load ptr, ptr %44, align 8, !tbaa !24
  call void @mln_stack_destroy(ptr noundef %80) #6
  br label %23

81:                                               ; preds = %75
  %82 = load ptr, ptr %58, align 8, !tbaa !27
  call void @mln_rbtree_insert(ptr noundef %82, ptr noundef nonnull %76) #6
  %83 = getelementptr inbounds i8, ptr %.07492, i64 24
  %84 = load ptr, ptr %83, align 8, !tbaa !28
  %.not87 = icmp eq ptr %84, null
  br i1 %.not87, label %.loopexit, label %.lr.ph, !llvm.loop !30

85:                                               ; preds = %52
  %86 = getelementptr inbounds i8, ptr %6, i64 544
  store ptr null, ptr %86, align 8, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %81, %62, %85
  %87 = getelementptr inbounds i8, ptr %6, i64 552
  %88 = getelementptr inbounds i8, ptr %6, i64 576
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %87, i8 0, i64 24, i1 false)
  store i64 4095, ptr %88, align 8, !tbaa !32
  %89 = getelementptr inbounds i8, ptr %6, i64 584
  store i64 1, ptr %89, align 8, !tbaa !33
  %90 = getelementptr inbounds i8, ptr %6, i64 592
  store i32 0, ptr %90, align 8, !tbaa !34
  %91 = getelementptr inbounds i8, ptr %0, i64 24
  %92 = load i32, ptr %91, align 8
  %93 = getelementptr inbounds i8, ptr %6, i64 596
  %94 = trunc i32 %92 to i8
  %95 = and i8 %94, 1
  %96 = load i8, ptr %93, align 4
  %97 = and i8 %96, -4
  %98 = or disjoint i8 %97, %95
  store i8 %98, ptr %93, align 4
  %99 = getelementptr inbounds i8, ptr %0, i64 32
  %100 = load ptr, ptr %99, align 8, !tbaa !35
  %.not88 = icmp eq ptr %100, null
  br i1 %.not88, label %107, label %101

101:                                              ; preds = %.loopexit
  %102 = load ptr, ptr %6, align 8, !tbaa !11
  %103 = call ptr @mln_string_pool_dup(ptr noundef %102, ptr noundef nonnull %100) #6
  %104 = getelementptr inbounds i8, ptr %6, i64 600
  store ptr %103, ptr %104, align 8, !tbaa !36
  %105 = icmp eq ptr %103, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  call void @mln_lex_destroy(ptr noundef nonnull %6)
  br label %124

107:                                              ; preds = %.loopexit
  %108 = getelementptr inbounds i8, ptr %6, i64 600
  store ptr null, ptr %108, align 8, !tbaa !36
  br label %109

109:                                              ; preds = %101, %107
  %110 = getelementptr inbounds i8, ptr %0, i64 40
  %111 = load ptr, ptr %110, align 8, !tbaa !37
  %.not89 = icmp eq ptr %111, null
  br i1 %.not89, label %124, label %112

112:                                              ; preds = %109
  %113 = getelementptr inbounds i8, ptr %0, i64 28
  %114 = load i32, ptr %113, align 4, !tbaa !38
  switch i32 %114, label %123 [
    i32 0, label %115
    i32 1, label %119
  ]

115:                                              ; preds = %112
  %116 = call i32 @mln_lex_push_input_buf_stream(ptr noundef %6, ptr noundef %111)
  %117 = icmp slt i32 %116, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %115
  call void @mln_lex_destroy(ptr noundef nonnull %6)
  br label %124

119:                                              ; preds = %112
  %120 = call i32 @mln_lex_push_input_file_stream(ptr noundef %6, ptr noundef %111)
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  call void @mln_lex_destroy(ptr noundef nonnull %6)
  br label %124

123:                                              ; preds = %112
  call void @mln_lex_destroy(ptr noundef nonnull %6)
  br label %124

124:                                              ; preds = %109, %119, %115, %1, %123, %122, %118, %106, %23, %18
  %.0 = phi ptr [ null, %18 ], [ null, %23 ], [ null, %106 ], [ null, %118 ], [ null, %122 ], [ null, %123 ], [ null, %1 ], [ %6, %115 ], [ %6, %119 ], [ %6, %109 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  ret ptr %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_lex_macro_cmp(ptr noundef, ptr noundef) #4

declare ptr @mln_rbtree_new(ptr noundef) local_unnamed_addr #1

declare void @mln_rbtree_free(ptr noundef) local_unnamed_addr #1

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

declare void @mln_rbtree_insert(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_lex_keywords_cmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @mln_lex_keyword_free(ptr noundef) #4

declare void @mln_stack_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mln_lex_keyword_new(ptr noundef, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mln_lex_push_input_buf_stream(ptr noundef nonnull, ptr noundef nonnull) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @mln_lex_push_input_file_stream(ptr noundef nonnull, ptr noundef nonnull) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mln_lex_attr", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 24, !10, i64 28, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"mln_lex_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !13, i64 32, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !14, i64 576, !14, i64 584, !10, i64 592, !10, i64 596, !10, i64 596, !7, i64 600, !7, i64 608}
!13 = !{!"", !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}
!14 = !{!"long", !8, i64 0}
!15 = !{!12, !7, i64 608}
!16 = !{!17, !7, i64 0}
!17 = !{!"mln_rbtree_attr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!18 = !{!17, !7, i64 8}
!19 = !{!17, !7, i64 16}
!20 = !{!17, !7, i64 24}
!21 = !{!17, !7, i64 32}
!22 = !{!12, !7, i64 8}
!23 = !{!12, !7, i64 16}
!24 = !{!12, !7, i64 24}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !7, i64 8}
!27 = !{!12, !7, i64 544}
!28 = !{!29, !7, i64 0}
!29 = !{!"", !7, i64 0, !14, i64 8, !14, i64 16, !14, i64 16, !14, i64 16}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!12, !14, i64 576}
!33 = !{!12, !14, i64 584}
!34 = !{!12, !10, i64 592}
!35 = !{!6, !7, i64 32}
!36 = !{!12, !7, i64 600}
!37 = !{!6, !7, i64 40}
!38 = !{!6, !10, i64 28}


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