; LLVM IR from Water-Melon/Melon :: t (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_string_t = type { ptr, i64, i32 }
%struct.mln_lex_attr = type { ptr, ptr, ptr, i32, i32, 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_s = type { ptr, ptr, ptr, ptr, %struct.mln_lex_hooks_t, ptr, ptr, ptr, ptr, i64, i64, i32, i8, ptr, ptr }
%struct.mln_test_struct_t = type { ptr, i32, i32, ptr }

@keywords = external dso_local global [3 x { ptr, i64, i8, i8, i8, i8 }], align 16
@__const.main.ini = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.46 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.mln_string_t, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.mln_lex_attr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.mln_lex_hooks_t, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.mln_lex_hooks_t, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 @__const.main.ini, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 512, i1 false)
  %9 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %6, i32 0, i32 2
  store ptr @mln_test_dblq_handler, ptr %9, align 8, !tbaa !9
  %10 = call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0)
  %11 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 0
  store ptr %10, ptr %11, align 8, !tbaa !11
  %12 = icmp ne ptr %10, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %0
  br label %14

14:                                               ; preds = %13, %0
  %15 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 1
  store ptr @keywords, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  store ptr %6, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 3
  %18 = load i32, ptr %17, align 8
  %19 = and i32 %18, -2
  %20 = or i32 %19, 1
  store i32 %20, ptr %17, align 8
  %21 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 3
  %22 = load i32, ptr %21, align 8
  %23 = and i32 %22, 1
  %24 = or i32 %23, 0
  store i32 %24, ptr %21, align 8
  %25 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 4
  store i32 0, ptr %25, align 4, !tbaa !16
  %26 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 6
  store ptr %2, ptr %26, align 8, !tbaa !17
  %27 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 5
  store ptr null, ptr %27, align 8, !tbaa !18
  %28 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 3
  %29 = load i32, ptr %28, align 8
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %74

32:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %33 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = call ptr @mln_lex_preprocess_data_new(ptr noundef %34)
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %32
  store ptr null, ptr %3, align 8, !tbaa !5
  br label %73

39:                                               ; preds = %32
  %40 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #6
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 512, i1 false)
  %44 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %8, i32 0, i32 4
  store ptr @mln_test_nums_handler, ptr %44, align 8, !tbaa !19
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %8, i32 0, i32 5
  store ptr %45, ptr %46, align 8, !tbaa !20
  %47 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  store ptr %8, ptr %47, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #6
  br label %56

48:                                               ; preds = %39
  %49 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %50, i32 0, i32 4
  store ptr @mln_test_nums_handler, ptr %51, align 8, !tbaa !19
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %54, i32 0, i32 5
  store ptr %52, ptr %55, align 8, !tbaa !20
  br label %56

56:                                               ; preds = %48, %43
  %57 = call ptr @mln_lex_init(ptr noundef %4)
  store ptr %57, ptr %3, align 8, !tbaa !5
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %70

60:                                               ; preds = %56
  %61 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mln_test_set_hooks(ptr noundef %65)
  br label %66

66:                                               ; preds = %64, %60
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mln_lex_s, ptr %68, i32 0, i32 14
  store ptr %67, ptr %69, align 8, !tbaa !21
  br label %72

70:                                               ; preds = %56
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_lex_preprocess_data_free(ptr noundef %71)
  br label %72

72:                                               ; preds = %70, %66
  br label %73

73:                                               ; preds = %72, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %85

74:                                               ; preds = %14
  %75 = call ptr @mln_lex_init(ptr noundef %4)
  store ptr %75, ptr %3, align 8, !tbaa !5
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %84

78:                                               ; preds = %74
  %79 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %84

82:                                               ; preds = %78
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mln_test_set_hooks(ptr noundef %83)
  br label %84

84:                                               ; preds = %82, %78, %74
  br label %85

85:                                               ; preds = %84, %73
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  br label %90

89:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.47, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

90:                                               ; preds = %88
  br label %91

91:                                               ; preds = %104, %90
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = call ptr @mln_test_token(ptr noundef %93)
  store ptr %94, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = icmp eq ptr %95, null
  br i1 %96, label %102, label %97

97:                                               ; preds = %92
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mln_test_struct_t, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 4, !tbaa !24
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %97, %92
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @mln_test_free(ptr noundef %103)
  br label %115

104:                                              ; preds = %97
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.mln_test_struct_t, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !26
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.mln_test_struct_t, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mln_test_struct_t, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 4, !tbaa !24
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 2, ptr noundef @.str.47, ptr noundef @__FUNCTION__.main, i32 noundef 109, ptr noundef @.str.48, i32 noundef %107, ptr noundef %110, i32 noundef %113)
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @mln_test_free(ptr noundef %114)
  br label %91

115:                                              ; preds = %102
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %116)
  %117 = getelementptr inbounds %struct.mln_lex_attr, ptr %4, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !11
  call void @mln_alloc_destroy(ptr noundef %118)
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  ret i32 0
}

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

; 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 uwtable
declare hidden ptr @mln_test_dblq_handler(ptr noundef, ptr noundef) #1

declare ptr @mln_alloc_init(ptr noundef, i64 noundef) #4

declare ptr @mln_lex_preprocess_data_new(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_test_nums_handler(ptr noundef, ptr noundef) #1

declare ptr @mln_lex_init(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @mln_test_set_hooks(ptr noundef) #1

declare void @mln_lex_preprocess_data_free(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_test_token(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @mln_test_free(ptr noundef) #1

declare void @_mln_sys_log(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

declare void @mln_lex_destroy(ptr noundef) #4

declare void @mln_alloc_destroy(ptr noundef) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { noreturn 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 16}
!10 = !{!"", !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}
!11 = !{!12, !6, i64 0}
!12 = !{!"mln_lex_attr", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 24, !13, i64 28, !6, i64 32, !6, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !13, i64 28}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 32}
!19 = !{!10, !6, i64 32}
!20 = !{!10, !6, i64 40}
!21 = !{!22, !6, i64 608}
!22 = !{!"mln_lex_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !23, i64 576, !23, i64 584, !13, i64 592, !13, i64 596, !13, i64 596, !6, i64 600, !6, i64 608}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !13, i64 12}
!25 = !{!"", !6, i64 0, !13, i64 8, !13, i64 12, !6, i64 16}
!26 = !{!25, !13, i64 8}
!27 = !{!25, !6, i64 0}


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

@keywords = external dso_local global [3 x { ptr, i64, i8, i8, i8, i8 }], align 16
@__const.main.ini = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.46 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %struct.mln_string_t, align 8
  %2 = alloca %struct.mln_lex_attr, align 8
  %3 = alloca %struct.mln_lex_hooks_t, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) @__const.main.ini, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %3, i8 0, i64 512, i1 false)
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr @mln_test_dblq_handler, ptr %4, align 8, !tbaa !5
  %5 = tail call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0) #6
  store ptr %5, ptr %2, align 8, !tbaa !10
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr @keywords, ptr %6, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %3, ptr %7, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %2, i64 24
  store i32 1, ptr %8, align 8
  %9 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 0, ptr %9, align 4, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %1, ptr %10, align 8, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr null, ptr %11, align 8, !tbaa !17
  %12 = call ptr @mln_lex_preprocess_data_new(ptr noundef %5) #6
  %13 = icmp eq ptr %12, null
  br i1 %13, label %26, label %14

14:                                               ; preds = %0
  %15 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr @mln_test_nums_handler, ptr %15, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %12, ptr %16, align 8, !tbaa !19
  %17 = call ptr @mln_lex_init(ptr noundef nonnull %2) #6
  %.not29 = icmp eq ptr %17, null
  br i1 %.not29, label %21, label %18

18:                                               ; preds = %14
  %19 = load ptr, ptr %7, align 8, !tbaa !14
  %.not30 = icmp eq ptr %19, null
  br i1 %.not30, label %22, label %20

20:                                               ; preds = %18
  call void @mln_test_set_hooks(ptr noundef nonnull %17)
  br label %22

21:                                               ; preds = %14
  call void @mln_lex_preprocess_data_free(ptr noundef nonnull %12) #6
  br label %26

22:                                               ; preds = %18, %20
  %23 = getelementptr inbounds i8, ptr %17, i64 608
  store ptr %12, ptr %23, align 8, !tbaa !20
  %24 = call ptr @mln_test_token(ptr noundef nonnull %17)
  %25 = icmp eq ptr %24, null
  br i1 %25, label %._crit_edge, label %.lr.ph

26:                                               ; preds = %21, %0
  call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.47, i32 noundef 101, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

.lr.ph:                                           ; preds = %22, %32
  %27 = phi ptr [ %36, %32 ], [ %24, %22 ]
  %28 = getelementptr inbounds i8, ptr %27, i64 12
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %._crit_edge, label %32

._crit_edge:                                      ; preds = %32, %.lr.ph, %22
  %.lcssa = phi ptr [ null, %22 ], [ %27, %.lr.ph ], [ null, %32 ]
  call void @mln_test_free(ptr noundef %.lcssa)
  call void @mln_lex_destroy(ptr noundef nonnull %17) #6
  %31 = load ptr, ptr %2, align 8, !tbaa !10
  call void @mln_alloc_destroy(ptr noundef %31) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret i32 0

32:                                               ; preds = %.lr.ph
  %33 = getelementptr inbounds i8, ptr %27, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !25
  %35 = load ptr, ptr %27, align 8, !tbaa !26
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 2, ptr noundef nonnull @.str.47, ptr noundef nonnull @__FUNCTION__.main, i32 noundef 109, ptr noundef nonnull @.str.48, i32 noundef %34, ptr noundef %35, i32 noundef %29) #6
  call void @mln_test_free(ptr noundef nonnull %27)
  %36 = call ptr @mln_test_token(ptr noundef nonnull %17)
  %37 = icmp eq ptr %36, null
  br i1 %37, label %._crit_edge, label %.lr.ph
}

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

; 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: nounwind uwtable
declare hidden ptr @mln_test_dblq_handler(ptr noundef, ptr noundef) #1

declare ptr @mln_alloc_init(ptr noundef, i64 noundef) local_unnamed_addr #4

declare ptr @mln_lex_preprocess_data_new(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_test_nums_handler(ptr noundef, ptr noundef) #1

declare ptr @mln_lex_init(ptr noundef) local_unnamed_addr #4

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

declare void @mln_lex_preprocess_data_free(ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_test_token(ptr noundef) local_unnamed_addr #1

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

declare void @_mln_sys_log(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #4

declare void @mln_lex_destroy(ptr noundef) local_unnamed_addr #4

declare void @mln_alloc_destroy(ptr noundef) local_unnamed_addr #4

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { noreturn 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 16}
!6 = !{!"", !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}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"mln_lex_attr", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !12, i64 24, !12, i64 28, !7, i64 32, !7, i64 40}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 8}
!14 = !{!11, !7, i64 16}
!15 = !{!11, !12, i64 28}
!16 = !{!11, !7, i64 40}
!17 = !{!11, !7, i64 32}
!18 = !{!6, !7, i64 32}
!19 = !{!6, !7, i64 40}
!20 = !{!21, !7, i64 608}
!21 = !{!"mln_lex_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !22, i64 576, !22, i64 584, !12, i64 592, !12, i64 596, !12, i64 596, !7, i64 600, !7, i64 608}
!22 = !{!"long", !8, i64 0}
!23 = !{!24, !12, i64 12}
!24 = !{!"", !7, i64 0, !12, i64 8, !12, i64 12, !7, i64 16}
!25 = !{!24, !12, i64 8}
!26 = !{!24, !7, i64 0}


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