; 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_macro_t = type { ptr, ptr }
%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.rbtree_s = type { ptr, ptr, ptr, ptr, ptr, %struct.mln_rbtree_node_s, ptr, ptr, ptr, ptr, ptr, i64, i8 }
%struct.mln_rbtree_node_s = type { ptr, ptr, ptr, ptr, ptr, ptr, i32 }

; 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
define dso_local i32 @mln_lex_condition_test(ptr noundef nonnull %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.mln_lex_macro_t, align 8
  %8 = alloca %struct.mln_string_t, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.mln_lex_s, ptr %11, i32 0, i32 7
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.mln_lex_s, ptr %14, i32 0, i32 8
  store ptr %13, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  br label %16

16:                                               ; preds = %31, %1
  br label %17

17:                                               ; preds = %16
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call signext i8 @mln_lex_getchar(ptr noundef %18)
  store i8 %19, ptr %4, align 1, !tbaa !16
  %20 = sext i8 %19 to i32
  %21 = icmp eq i32 %20, -2
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

23:                                               ; preds = %17
  %24 = load i8, ptr %4, align 1, !tbaa !16
  %25 = sext i8 %24 to i32
  %26 = icmp eq i32 %25, 32
  br i1 %26, label %31, label %27

27:                                               ; preds = %23
  %28 = load i8, ptr %4, align 1, !tbaa !16
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 9
  br i1 %30, label %31, label %32

31:                                               ; preds = %27, %23
  br label %16

32:                                               ; preds = %27
  %33 = load i8, ptr %4, align 1, !tbaa !16
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 10
  br i1 %35, label %36, label %39

36:                                               ; preds = %32
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.mln_lex_s, ptr %37, i32 0, i32 11
  store i32 9, ptr %38, align 8, !tbaa !17
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

39:                                               ; preds = %32
  %40 = load i8, ptr %4, align 1, !tbaa !16
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, -1
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.mln_lex_s, ptr %44, i32 0, i32 11
  store i32 8, ptr %45, align 8, !tbaa !17
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

46:                                               ; preds = %39
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i8, ptr %4, align 1, !tbaa !16
  call void @mln_lex_stepback(ptr noundef %47, i8 noundef signext %48)
  br label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call signext i8 @mln_lex_getchar(ptr noundef %50)
  store i8 %51, ptr %4, align 1, !tbaa !16
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 %52, -2
  br i1 %53, label %54, label %55

54:                                               ; preds = %49
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

55:                                               ; preds = %49
  %56 = load i8, ptr %4, align 1, !tbaa !16
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 33
  br i1 %58, label %59, label %60

59:                                               ; preds = %55
  store i32 1, ptr %5, align 4, !tbaa !15
  br label %63

60:                                               ; preds = %55
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load i8, ptr %4, align 1, !tbaa !16
  call void @mln_lex_stepback(ptr noundef %61, i8 noundef signext %62)
  br label %63

63:                                               ; preds = %60, %59
  br label %64

64:                                               ; preds = %109, %63
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call signext i8 @mln_lex_getchar(ptr noundef %66)
  store i8 %67, ptr %4, align 1, !tbaa !16
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, -2
  br i1 %69, label %70, label %71

70:                                               ; preds = %65
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

71:                                               ; preds = %65
  %72 = load i8, ptr %4, align 1, !tbaa !16
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 32
  br i1 %74, label %87, label %75

75:                                               ; preds = %71
  %76 = load i8, ptr %4, align 1, !tbaa !16
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, 9
  br i1 %78, label %87, label %79

79:                                               ; preds = %75
  %80 = load i8, ptr %4, align 1, !tbaa !16
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 10
  br i1 %82, label %87, label %83

83:                                               ; preds = %79
  %84 = load i8, ptr %4, align 1, !tbaa !16
  %85 = sext i8 %84 to i32
  %86 = icmp eq i32 %85, -1
  br i1 %86, label %87, label %88

87:                                               ; preds = %83, %79, %75, %71
  br label %110

88:                                               ; preds = %83
  %89 = load i8, ptr %4, align 1, !tbaa !16
  %90 = call i32 @mln_lex_is_letter(i8 noundef signext %89)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %103, label %92

92:                                               ; preds = %88
  %93 = load i8, ptr %4, align 1, !tbaa !16
  %94 = sext i8 %93 to i32
  %95 = icmp sge i32 %94, 48
  br i1 %95, label %96, label %100

96:                                               ; preds = %92
  %97 = load i8, ptr %4, align 1, !tbaa !16
  %98 = sext i8 %97 to i32
  %99 = icmp sle i32 %98, 57
  br i1 %99, label %103, label %100

100:                                              ; preds = %96, %92
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.mln_lex_s, ptr %101, i32 0, i32 11
  store i32 2, ptr %102, align 8, !tbaa !17
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

103:                                              ; preds = %96, %88
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load i8, ptr %4, align 1, !tbaa !16
  %106 = call i32 @mln_lex_putchar(ptr noundef %104, i8 noundef signext %105)
  %107 = icmp eq i32 %106, -2
  br i1 %107, label %108, label %109

108:                                              ; preds = %103
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

109:                                              ; preds = %103
  br label %64

110:                                              ; preds = %87
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mln_lex_s, ptr %111, i32 0, i32 7
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.mln_string_t, ptr %8, i32 0, i32 0
  store ptr %113, ptr %114, align 8, !tbaa !18
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.mln_lex_s, ptr %115, i32 0, i32 8
  %117 = load ptr, ptr %116, align 8, !tbaa !14
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.mln_lex_s, ptr %118, i32 0, i32 7
  %120 = load ptr, ptr %119, align 8, !tbaa !9
  %121 = ptrtoint ptr %117 to i64
  %122 = ptrtoint ptr %120 to i64
  %123 = sub i64 %121, %122
  %124 = getelementptr inbounds %struct.mln_string_t, ptr %8, i32 0, i32 1
  store i64 %123, ptr %124, align 8, !tbaa !20
  %125 = getelementptr inbounds %struct.mln_string_t, ptr %8, i32 0, i32 2
  %126 = load i32, ptr %125, align 8
  %127 = and i32 %126, -2
  %128 = or i32 %127, 1
  store i32 %128, ptr %125, align 8
  %129 = getelementptr inbounds %struct.mln_string_t, ptr %8, i32 0, i32 2
  %130 = load i32, ptr %129, align 8
  %131 = and i32 %130, -3
  %132 = or i32 %131, 0
  store i32 %132, ptr %129, align 8
  %133 = getelementptr inbounds %struct.mln_string_t, ptr %8, i32 0, i32 2
  %134 = load i32, ptr %133, align 8
  %135 = and i32 %134, 3
  %136 = or i32 %135, 4
  store i32 %136, ptr %133, align 8
  store ptr %8, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.mln_lex_macro_t, ptr %7, i32 0, i32 0
  store ptr %8, ptr %138, align 8, !tbaa !21
  %139 = getelementptr inbounds %struct.mln_lex_macro_t, ptr %7, i32 0, i32 1
  store ptr null, ptr %139, align 8, !tbaa !23
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.mln_lex_s, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = call ptr @mln_rbtree_search(ptr noundef %142, ptr noundef %7)
  store ptr %143, ptr %6, align 8, !tbaa !5
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.mln_lex_s, ptr %144, i32 0, i32 7
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.mln_lex_s, ptr %147, i32 0, i32 8
  store ptr %146, ptr %148, align 8, !tbaa !14
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.mln_lex_s, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !24
  %153 = getelementptr inbounds %struct.rbtree_s, ptr %152, i32 0, i32 5
  %154 = icmp eq ptr %149, %153
  br i1 %154, label %155, label %160

155:                                              ; preds = %110
  %156 = load i32, ptr %5, align 4, !tbaa !15
  %157 = icmp ne i32 %156, 0
  %158 = zext i1 %157 to i64
  %159 = select i1 %157, i32 1, i32 0
  store i32 %159, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

160:                                              ; preds = %110
  %161 = load i32, ptr %5, align 4, !tbaa !15
  %162 = icmp ne i32 %161, 0
  %163 = zext i1 %162 to i64
  %164 = select i1 %162, i32 0, i32 1
  store i32 %164, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %165

165:                                              ; preds = %160, %155, %108, %100, %70, %54, %43, %36, %22
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  %166 = load i32, ptr %2, align 4
  ret i32 %166
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden signext i8 @mln_lex_getchar(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mln_lex_stepback(ptr noundef, i8 noundef signext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_is_letter(i8 noundef signext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_putchar(ptr noundef, i8 noundef signext) #2

declare ptr @mln_rbtree_search(ptr noundef, ptr noundef) #3

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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


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

; 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
define dso_local range(i32 -1, 2) i32 @mln_lex_condition_test(ptr noundef nonnull %0) local_unnamed_addr #1 {
  %2 = alloca %struct.mln_lex_macro_t, align 8
  %3 = alloca %struct.mln_string_t, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 560
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 568
  store ptr %5, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %1
  %7 = tail call signext i8 @mln_lex_getchar(ptr noundef nonnull %0)
  switch i8 %7, label %12 [
    i8 -2, label %.loopexit
    i8 32, label %.backedge.backedge
    i8 9, label %.backedge.backedge
    i8 10, label %8
    i8 -1, label %10
  ]

.backedge.backedge:                               ; preds = %.backedge, %.backedge
  br label %.backedge

8:                                                ; preds = %.backedge
  %9 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 9, ptr %9, align 8, !tbaa !14
  br label %.loopexit

10:                                               ; preds = %.backedge
  %11 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 8, ptr %11, align 8, !tbaa !14
  br label %.loopexit

12:                                               ; preds = %.backedge
  tail call void @mln_lex_stepback(ptr noundef nonnull %0, i8 noundef signext %7)
  %13 = tail call signext i8 @mln_lex_getchar(ptr noundef nonnull %0)
  %14 = icmp eq i8 %13, -2
  br i1 %14, label %.loopexit, label %15

15:                                               ; preds = %12
  %.not56 = icmp ne i8 %13, 33
  br i1 %.not56, label %16, label %.preheader

16:                                               ; preds = %15
  tail call void @mln_lex_stepback(ptr noundef nonnull %0, i8 noundef signext %13)
  br label %.preheader

.preheader:                                       ; preds = %15, %16
  br label %17

17:                                               ; preds = %.preheader, %24
  %18 = tail call signext i8 @mln_lex_getchar(ptr noundef nonnull %0)
  switch i8 %18, label %19 [
    i8 -2, label %.loopexit
    i8 -1, label %27
    i8 32, label %27
    i8 10, label %27
    i8 9, label %27
  ]

19:                                               ; preds = %17
  %20 = tail call i32 @mln_lex_is_letter(i8 noundef signext %18)
  %.not = icmp ne i32 %20, 0
  %21 = add i8 %18, -48
  %or.cond14 = icmp ult i8 %21, 10
  %or.cond = or i1 %or.cond14, %.not
  br i1 %or.cond, label %24, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 592
  store i32 2, ptr %23, align 8, !tbaa !14
  br label %.loopexit

24:                                               ; preds = %19
  %25 = tail call i32 @mln_lex_putchar(ptr noundef nonnull %0, i8 noundef signext %18)
  %26 = icmp eq i32 %25, -2
  br i1 %26, label %.loopexit, label %17

27:                                               ; preds = %17, %17, %17, %17
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %28, ptr %3, align 8, !tbaa !15
  %29 = load ptr, ptr %6, align 8, !tbaa !13
  %30 = ptrtoint ptr %29 to i64
  %31 = ptrtoint ptr %28 to i64
  %32 = sub i64 %30, %31
  %33 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %32, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 5, ptr %34, align 8
  store ptr %3, ptr %2, align 8, !tbaa !18
  %35 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr null, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = call ptr @mln_rbtree_search(ptr noundef %37, ptr noundef nonnull %2) #4
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %39, ptr %6, align 8, !tbaa !13
  %40 = load ptr, ptr %36, align 8, !tbaa !21
  %41 = getelementptr inbounds i8, ptr %40, i64 40
  %42 = icmp eq ptr %38, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %27
  %not..not56 = xor i1 %.not56, true
  %44 = zext i1 %not..not56 to i32
  br label %.loopexit

45:                                               ; preds = %27
  %46 = zext i1 %.not56 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.backedge, %17, %24, %12, %45, %43, %22, %10, %8
  %.0 = phi i32 [ -1, %8 ], [ -1, %10 ], [ %44, %43 ], [ %46, %45 ], [ -1, %22 ], [ -1, %12 ], [ -1, %24 ], [ -1, %17 ], [ -1, %.backedge ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden signext i8 @mln_lex_getchar(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mln_lex_stepback(ptr noundef, i8 noundef signext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_is_letter(i8 noundef signext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_lex_putchar(ptr noundef, i8 noundef signext) local_unnamed_addr #2

declare ptr @mln_rbtree_search(ptr noundef, ptr noundef) local_unnamed_addr #3

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 560}
!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 = !{!6, !7, i64 568}
!14 = !{!6, !12, i64 592}
!15 = !{!16, !7, i64 0}
!16 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 16, !11, i64 16}
!17 = !{!16, !11, i64 8}
!18 = !{!19, !7, i64 0}
!19 = !{!"", !7, i64 0, !7, i64 8}
!20 = !{!19, !7, i64 8}
!21 = !{!6, !7, i64 8}


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