; LLVM IR from Water-Melon/Melon :: t (parser_generator)

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

@__const.main.code = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.41 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [12 x i8], align 1
@prod_tbl = external hidden global [8 x %struct.mln_production_t], align 16
@.str.44 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [35 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 ptr, align 8
  %3 = alloca %struct.mln_lex_attr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.mln_parse_attr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.mln_lex_hooks_t, align 8
  %9 = alloca %struct.mln_string_t, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.mln_lex_hooks_t, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #6
  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 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @__const.main.code, i64 24, i1 false)
  %12 = call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0)
  store ptr %12, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %0
  br label %16

15:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.41, ptr noundef @.str.42, i32 noundef 33, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

16:                                               ; preds = %14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 0
  store ptr %17, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 1
  store ptr null, ptr %19, align 8, !tbaa !12
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 512, i1 false)
  %20 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 2
  store ptr %8, ptr %20, align 8, !tbaa !13
  %21 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 3
  %22 = load i32, ptr %21, align 8
  %23 = and i32 %22, -2
  %24 = or i32 %23, 1
  store i32 %24, ptr %21, align 8
  %25 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 4
  store i32 0, ptr %25, align 4, !tbaa !14
  %26 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 6
  store ptr %9, ptr %26, align 8, !tbaa !15
  %27 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 5
  store ptr null, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, 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 = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %33 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = call ptr @mln_lex_preprocess_data_new(ptr noundef %34)
  store ptr %35, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

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

39:                                               ; preds = %32
  %40 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %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 %11) #6
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 512, i1 false)
  %44 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %11, i32 0, i32 4
  store ptr @test_nums_handler, ptr %44, align 8, !tbaa !17
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mln_lex_hooks_t, ptr %11, i32 0, i32 5
  store ptr %45, ptr %46, align 8, !tbaa !19
  %47 = getelementptr inbounds %struct.mln_lex_attr, ptr %3, i32 0, i32 2
  store ptr %11, ptr %47, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #6
  br label %56

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

56:                                               ; preds = %48, %43
  %57 = call ptr @mln_lex_init(ptr noundef %3)
  store ptr %57, ptr %2, align 8, !tbaa !5
  %58 = load ptr, ptr %2, 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 %3, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %66

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

66:                                               ; preds = %64, %60
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %2, 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 !20
  br label %72

70:                                               ; preds = %56
  %71 = load ptr, ptr %10, 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 %10) #6
  br label %85

74:                                               ; preds = %16
  %75 = call ptr @mln_lex_init(ptr noundef %3)
  store ptr %75, ptr %2, align 8, !tbaa !5
  %76 = load ptr, ptr %2, 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 %3, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %84

82:                                               ; preds = %78
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  call void @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 %2, 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.43, ptr noundef @.str.42, i32 noundef 44, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

90:                                               ; preds = %88
  %91 = call ptr @test_parser_generate(ptr noundef @prod_tbl, i32 noundef 8, ptr noundef null)
  store ptr %91, ptr %6, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  br label %95

94:                                               ; preds = %90
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.42, i32 noundef 46, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

95:                                               ; preds = %93
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.mln_parse_attr, ptr %5, i32 0, i32 0
  store ptr %96, ptr %97, align 8, !tbaa !23
  %98 = getelementptr inbounds %struct.mln_parse_attr, ptr %5, i32 0, i32 1
  store ptr @prod_tbl, ptr %98, align 8, !tbaa !25
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.mln_parse_attr, ptr %5, i32 0, i32 2
  store ptr %99, ptr %100, align 8, !tbaa !26
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.mln_parse_attr, ptr %5, i32 0, i32 3
  store ptr %101, ptr %102, align 8, !tbaa !27
  %103 = getelementptr inbounds %struct.mln_parse_attr, ptr %5, i32 0, i32 4
  store ptr null, ptr %103, align 8, !tbaa !28
  %104 = call ptr @test_parse(ptr noundef %5)
  store ptr %104, ptr %7, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %107

106:                                              ; preds = %95
  br label %108

107:                                              ; preds = %95
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.42, i32 noundef 53, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

108:                                              ; preds = %106
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  call void @mln_lex_destroy(ptr noundef %109)
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  call void @test_pg_data_free(ptr noundef %110)
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mln_alloc_destroy(ptr noundef %111)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, 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

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

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

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

declare ptr @mln_lex_preprocess_data_new(ptr noundef) #3

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

declare ptr @mln_lex_init(ptr noundef) #3

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

declare void @mln_lex_preprocess_data_free(ptr noundef) #3

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

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

declare void @mln_lex_destroy(ptr noundef) #3

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

declare void @mln_alloc_destroy(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !11, i64 28}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 32}
!17 = !{!18, !6, i64 32}
!18 = !{!"", !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}
!19 = !{!18, !6, i64 40}
!20 = !{!21, !6, i64 608}
!21 = !{!"mln_lex_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !22, i64 576, !22, i64 584, !11, i64 592, !11, i64 596, !11, i64 596, !6, i64 600, !6, i64 608}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"mln_parse_attr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!25 = !{!24, !6, i64 8}
!26 = !{!24, !6, i64 16}
!27 = !{!24, !6, i64 24}
!28 = !{!24, !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_attr = type { ptr, ptr, ptr, i32, i32, ptr, ptr }
%struct.mln_parse_attr = type { ptr, ptr, ptr, 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_string_t = type { ptr, i64, i32 }

@__const.main.code = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.41 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [12 x i8], align 1
@prod_tbl = external hidden global [8 x %struct.mln_production_t], align 16
@.str.44 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [35 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_lex_attr, align 8
  %2 = alloca %struct.mln_parse_attr, align 8
  %3 = alloca %struct.mln_lex_hooks_t, align 8
  %4 = alloca %struct.mln_string_t, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #6
  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.main.code, i64 24, i1 false)
  %5 = tail call ptr @mln_alloc_init(ptr noundef null, i64 noundef 0) #6
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.42, i32 noundef 33, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

7:                                                ; preds = %0
  store ptr %5, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr null, ptr %8, align 8, !tbaa !11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %3, i8 0, i64 512, i1 false)
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %3, ptr %9, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 -1, ptr %10, align 8
  %11 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 0, ptr %11, align 4, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %1, i64 40
  store ptr %4, ptr %12, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  store ptr null, ptr %13, align 8, !tbaa !15
  %14 = call ptr @mln_lex_preprocess_data_new(ptr noundef nonnull %5) #6
  %15 = icmp eq ptr %14, null
  br i1 %15, label %24, label %16

16:                                               ; preds = %7
  %17 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr @test_nums_handler, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %14, ptr %18, align 8, !tbaa !18
  %19 = call ptr @mln_lex_init(ptr noundef nonnull %1) #6
  %.not28 = icmp eq ptr %19, null
  br i1 %.not28, label %23, label %20

20:                                               ; preds = %16
  %21 = load ptr, ptr %9, align 8, !tbaa !12
  %.not29 = icmp eq ptr %21, null
  br i1 %.not29, label %25, label %22

22:                                               ; preds = %20
  call void @test_set_hooks(ptr noundef nonnull %19)
  br label %25

23:                                               ; preds = %16
  call void @mln_lex_preprocess_data_free(ptr noundef nonnull %14) #6
  br label %24

24:                                               ; preds = %23, %7
  call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.42, i32 noundef 44, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

25:                                               ; preds = %22, %20
  %26 = getelementptr inbounds i8, ptr %19, i64 608
  store ptr %14, ptr %26, align 8, !tbaa !19
  %27 = call ptr @test_parser_generate(ptr noundef nonnull @prod_tbl, i32 noundef 8, ptr noundef null)
  %.not31 = icmp eq ptr %27, null
  br i1 %.not31, label %28, label %29

28:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.42, i32 noundef 46, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

29:                                               ; preds = %25
  store ptr %5, ptr %2, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr @prod_tbl, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %19, ptr %31, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %27, ptr %32, align 8, !tbaa !26
  %33 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr null, ptr %33, align 8, !tbaa !27
  %34 = call ptr @test_parse(ptr noundef nonnull %2)
  %35 = icmp eq ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.42, i32 noundef 53, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

37:                                               ; preds = %29
  call void @mln_lex_destroy(ptr noundef nonnull %19) #6
  call void @test_pg_data_free(ptr noundef nonnull %27)
  call void @mln_alloc_destroy(ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  ret i32 0
}

; 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

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

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

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

declare ptr @mln_lex_preprocess_data_new(ptr noundef) local_unnamed_addr #3

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

declare ptr @mln_lex_init(ptr noundef) local_unnamed_addr #3

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

declare void @mln_lex_preprocess_data_free(ptr noundef) local_unnamed_addr #3

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

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

declare void @mln_lex_destroy(ptr noundef) local_unnamed_addr #3

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

declare void @mln_alloc_destroy(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 28}
!14 = !{!6, !7, i64 40}
!15 = !{!6, !7, i64 32}
!16 = !{!17, !7, i64 32}
!17 = !{!"", !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}
!18 = !{!17, !7, i64 40}
!19 = !{!20, !7, i64 608}
!20 = !{!"mln_lex_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !21, i64 576, !21, i64 584, !10, i64 592, !10, i64 596, !10, i64 596, !7, i64 600, !7, i64 608}
!21 = !{!"long", !8, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"mln_parse_attr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!24 = !{!23, !7, i64 8}
!25 = !{!23, !7, i64 16}
!26 = !{!23, !7, i64 24}
!27 = !{!23, !7, i64 32}


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