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

; 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_production_t = type { 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_attr = type { ptr, ptr, ptr, i32, i32, ptr, ptr }
%struct.mln_parse_attr = type { 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 }

@prod_tbl = external hidden global [112 x %struct.mln_production_t], align 16
@mln_lang_env = external hidden global { ptr, i64, i8, i8, i8, i8 }, align 8
@keywords = external hidden global [16 x { ptr, i64, i8, i8, i8, i8 }], align 16

; 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 ptr @mln_lang_ast_generate(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.mln_lex_hooks_t, align 8
  %11 = alloca %struct.mln_lex_attr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.mln_parse_attr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.mln_lex_hooks_t, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %19 = call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0)
  store ptr %19, ptr %14, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  store ptr null, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %132

22:                                               ; preds = %4
  %23 = load ptr, ptr %14, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 0
  store ptr %23, ptr %24, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 1
  store ptr @keywords, ptr %25, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 512, i1 false)
  %26 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 24
  store ptr @mln_lang_sub_handler, ptr %26, align 8, !tbaa !14
  %27 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 20
  store ptr @mln_lang_plus_handler, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 18
  store ptr @mln_lang_ast_handler, ptr %28, align 8, !tbaa !17
  %29 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 34
  store ptr @mln_lang_lagl_handler, ptr %29, align 8, !tbaa !18
  %30 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 38
  store ptr @mln_lang_ragl_handler, ptr %30, align 8, !tbaa !19
  %31 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 58
  store ptr @mln_lang_vertl_handler, ptr %31, align 8, !tbaa !20
  %32 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 10
  store ptr @mln_lang_amp_handler, ptr %32, align 8, !tbaa !21
  %33 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 62
  store ptr @mln_lang_dash_handler, ptr %33, align 8, !tbaa !22
  %34 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 50
  store ptr @mln_lang_xor_handler, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 8
  store ptr @mln_lang_perc_handler, ptr %35, align 8, !tbaa !24
  %36 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 36
  store ptr @mln_lang_equal_handler, ptr %36, align 8, !tbaa !25
  %37 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 0
  store ptr @mln_lang_excl_handler, ptr %37, align 8, !tbaa !26
  %38 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 12
  store ptr @mln_lang_sglq_handler, ptr %38, align 8, !tbaa !27
  %39 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 2
  store ptr @mln_lang_dblq_handler, ptr %39, align 8, !tbaa !28
  %40 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %10, i32 0, i32 28
  store ptr @mln_lang_slash_handler, ptr %40, align 8, !tbaa !29
  %41 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  store ptr %10, ptr %41, align 8, !tbaa !30
  %42 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 3
  %43 = load i32, ptr %42, align 8
  %44 = and i32 %43, -2
  %45 = or i32 %44, 1
  store i32 %45, ptr %42, align 8
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 4
  store i32 %46, ptr %47, align 4, !tbaa !31
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 6
  store ptr %48, ptr %49, align 8, !tbaa !32
  %50 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 5
  store ptr @mln_lang_env, ptr %50, align 8, !tbaa !33
  %51 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 3
  %52 = load i32, ptr %51, align 8
  %53 = and i32 %52, 1
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %97

55:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %56 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = call ptr @mln_lex_preprocess_data_new(ptr noundef %57)
  store ptr %58, ptr %17, align 8, !tbaa !5
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  store ptr null, ptr %12, align 8, !tbaa !5
  br label %96

62:                                               ; preds = %55
  %63 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  %64 = load ptr, ptr %63, align 8, !tbaa !30
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 512, ptr %18) #4
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 512, i1 false)
  %67 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %18, i32 0, i32 4
  store ptr @mln_lang_nums_handler, ptr %67, align 8, !tbaa !34
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %18, i32 0, i32 5
  store ptr %68, ptr %69, align 8, !tbaa !35
  %70 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  store ptr %18, ptr %70, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #4
  br label %79

71:                                               ; preds = %62
  %72 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %74 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %73, i32 0, i32 4
  store ptr @mln_lang_nums_handler, ptr %74, align 8, !tbaa !34
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %77, i32 0, i32 5
  store ptr %75, ptr %78, align 8, !tbaa !35
  br label %79

79:                                               ; preds = %71, %66
  %80 = call ptr @mln_lex_init(ptr noundef %11)
  store ptr %80, ptr %12, align 8, !tbaa !5
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %93

83:                                               ; preds = %79
  %84 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !30
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  call void @mln_lang_set_hooks(ptr noundef %88)
  br label %89

89:                                               ; preds = %87, %83
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mln_lex_s, ptr %91, i32 0, i32 14
  store ptr %90, ptr %92, align 8, !tbaa !36
  br label %95

93:                                               ; preds = %79
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  call void @mln_lex_preprocess_data_free(ptr noundef %94)
  br label %95

95:                                               ; preds = %93, %89
  br label %96

96:                                               ; preds = %95, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %108

97:                                               ; preds = %22
  %98 = call ptr @mln_lex_init(ptr noundef %11)
  store ptr %98, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %107

101:                                              ; preds = %97
  %102 = getelementptr inbounds %struct.mln_lex_attr, ptr %11, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  call void @mln_lang_set_hooks(ptr noundef %106)
  br label %107

107:                                              ; preds = %105, %101, %97
  br label %108

108:                                              ; preds = %107, %96
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  call void @mln_alloc_destroy(ptr noundef %112)
  store ptr null, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %132

113:                                              ; preds = %108
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.mln_parse_attr, ptr %13, i32 0, i32 0
  store ptr %114, ptr %115, align 8, !tbaa !39
  %116 = getelementptr inbounds %struct.mln_parse_attr, ptr %13, i32 0, i32 1
  store ptr @prod_tbl, ptr %116, align 8, !tbaa !41
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.mln_parse_attr, ptr %13, i32 0, i32 2
  store ptr %117, ptr %118, align 8, !tbaa !42
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.mln_parse_attr, ptr %13, i32 0, i32 3
  store ptr %119, ptr %120, align 8, !tbaa !43
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mln_parse_attr, ptr %13, i32 0, i32 4
  store ptr %121, ptr %122, align 8, !tbaa !44
  %123 = call ptr @mln_lang_parse(ptr noundef %13)
  store ptr %123, ptr %15, align 8, !tbaa !5
  %124 = icmp eq ptr %123, null
  br i1 %124, label %125, label %128

125:                                              ; preds = %113
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %126)
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  call void @mln_alloc_destroy(ptr noundef %127)
  store ptr null, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %132

128:                                              ; preds = %113
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %129)
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  call void @mln_alloc_destroy(ptr noundef %130)
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %131, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %132

132:                                              ; preds = %128, %125, %111, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %10) #4
  %133 = load ptr, ptr %5, align 8
  ret ptr %133
}

declare ptr @mln_alloc_init(ptr noundef, i64 noundef) #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_lang_sub_handler(ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @mln_lex_preprocess_data_new(ptr noundef) #2

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

declare ptr @mln_lex_init(ptr noundef) #2

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

declare void @mln_lex_preprocess_data_free(ptr noundef) #2

declare void @mln_alloc_destroy(ptr noundef) #2

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

declare void @mln_lex_destroy(ptr noundef) #2

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

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

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


; 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_production_t = type { 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_attr = type { ptr, ptr, ptr, i32, i32, ptr, ptr }
%struct.mln_parse_attr = type { ptr, ptr, ptr, ptr, ptr }

@prod_tbl = external hidden global [112 x %struct.mln_production_t], align 16
@mln_lang_env = external hidden global { ptr, i64, i8, i8, i8, i8 }, align 8
@keywords = external hidden global [16 x { ptr, i64, i8, i8, i8, i8 }], align 16

; 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 ptr @mln_lang_ast_generate(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca %struct.mln_lex_hooks_t, align 8
  %6 = alloca %struct.mln_lex_attr, align 8
  %7 = alloca %struct.mln_parse_attr, align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  %8 = tail call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0) #4
  %9 = icmp eq ptr %8, null
  br i1 %9, label %49, label %10

10:                                               ; preds = %4
  store ptr %8, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr @keywords, ptr %11, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %12, i8 0, i64 504, i1 false)
  %13 = getelementptr inbounds i8, ptr %5, i64 192
  store ptr @mln_lang_sub_handler, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %5, i64 160
  store ptr @mln_lang_plus_handler, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %5, i64 144
  store ptr @mln_lang_ast_handler, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %5, i64 272
  store ptr @mln_lang_lagl_handler, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %5, i64 304
  store ptr @mln_lang_ragl_handler, ptr %17, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %5, i64 464
  store ptr @mln_lang_vertl_handler, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %5, i64 80
  store ptr @mln_lang_amp_handler, ptr %19, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %5, i64 496
  store ptr @mln_lang_dash_handler, ptr %20, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %5, i64 400
  store ptr @mln_lang_xor_handler, ptr %21, align 8, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %5, i64 64
  store ptr @mln_lang_perc_handler, ptr %22, align 8, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %5, i64 288
  store ptr @mln_lang_equal_handler, ptr %23, align 8, !tbaa !23
  store ptr @mln_lang_excl_handler, ptr %5, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %5, i64 96
  store ptr @mln_lang_sglq_handler, ptr %24, align 8, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr @mln_lang_dblq_handler, ptr %25, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %5, i64 224
  store ptr @mln_lang_slash_handler, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %5, ptr %27, align 8, !tbaa !28
  %28 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 -1, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %6, i64 28
  store i32 %3, ptr %29, align 4, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr %2, ptr %30, align 8, !tbaa !30
  %31 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr @mln_lang_env, ptr %31, align 8, !tbaa !31
  %32 = call ptr @mln_lex_preprocess_data_new(ptr noundef nonnull %8) #4
  %33 = icmp eq ptr %32, null
  br i1 %33, label %.sink.split, label %34

34:                                               ; preds = %10
  %35 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr @mln_lang_nums_handler, ptr %35, align 8, !tbaa !32
  %36 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %32, ptr %36, align 8, !tbaa !33
  %37 = call ptr @mln_lex_init(ptr noundef nonnull %6) #4
  %.not34 = icmp eq ptr %37, null
  br i1 %.not34, label %41, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr %27, align 8, !tbaa !28
  %.not35 = icmp eq ptr %39, null
  br i1 %.not35, label %42, label %40

40:                                               ; preds = %38
  call void @mln_lang_set_hooks(ptr noundef nonnull %37)
  br label %42

41:                                               ; preds = %34
  call void @mln_lex_preprocess_data_free(ptr noundef nonnull %32) #4
  br label %.sink.split

42:                                               ; preds = %40, %38
  %43 = getelementptr inbounds i8, ptr %37, i64 608
  store ptr %32, ptr %43, align 8, !tbaa !34
  store ptr %8, ptr %7, align 8, !tbaa !37
  %44 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr @prod_tbl, ptr %44, align 8, !tbaa !39
  %45 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %37, ptr %45, align 8, !tbaa !40
  %46 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %1, ptr %46, align 8, !tbaa !41
  %47 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %0, ptr %47, align 8, !tbaa !42
  %48 = call ptr @mln_lang_parse(ptr noundef nonnull %7)
  call void @mln_lex_destroy(ptr noundef nonnull %37) #4
  br label %.sink.split

.sink.split:                                      ; preds = %10, %41, %42
  %.0.ph = phi ptr [ %48, %42 ], [ null, %41 ], [ null, %10 ]
  call void @mln_alloc_destroy(ptr noundef nonnull %8) #4
  br label %49

49:                                               ; preds = %.sink.split, %4
  %.0 = phi ptr [ null, %4 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #4
  ret ptr %.0
}

declare ptr @mln_alloc_init(ptr noundef, i64 noundef) local_unnamed_addr #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_lang_sub_handler(ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @mln_lex_preprocess_data_new(ptr noundef) local_unnamed_addr #2

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

declare ptr @mln_lex_init(ptr noundef) local_unnamed_addr #2

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

declare void @mln_lex_preprocess_data_free(ptr noundef) local_unnamed_addr #2

declare void @mln_alloc_destroy(ptr noundef) local_unnamed_addr #2

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

declare void @mln_lex_destroy(ptr noundef) local_unnamed_addr #2

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!6, !7, i64 8}
!12 = !{!13, !7, i64 192}
!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 = !{!13, !7, i64 160}
!15 = !{!13, !7, i64 144}
!16 = !{!13, !7, i64 272}
!17 = !{!13, !7, i64 304}
!18 = !{!13, !7, i64 464}
!19 = !{!13, !7, i64 80}
!20 = !{!13, !7, i64 496}
!21 = !{!13, !7, i64 400}
!22 = !{!13, !7, i64 64}
!23 = !{!13, !7, i64 288}
!24 = !{!13, !7, i64 0}
!25 = !{!13, !7, i64 96}
!26 = !{!13, !7, i64 16}
!27 = !{!13, !7, i64 224}
!28 = !{!6, !7, i64 16}
!29 = !{!6, !10, i64 28}
!30 = !{!6, !7, i64 40}
!31 = !{!6, !7, i64 32}
!32 = !{!13, !7, i64 32}
!33 = !{!13, !7, i64 40}
!34 = !{!35, !7, i64 608}
!35 = !{!"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, !36, i64 576, !36, i64 584, !10, i64 592, !10, i64 596, !10, i64 596, !7, i64 600, !7, i64 608}
!36 = !{!"long", !8, i64 0}
!37 = !{!38, !7, i64 0}
!38 = !{!"mln_parse_attr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!39 = !{!38, !7, i64 8}
!40 = !{!38, !7, i64 16}
!41 = !{!38, !7, i64 24}
!42 = !{!38, !7, i64 32}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass