; LLVM IR from Montimage/mmt-security :: src/lib/rule_verif_engine.ll (process_multi_packets)

; 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.rule_engine_struct = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, i64, i64 }
%struct.message_struct = type { i64, i64, i64, ptr, i16, %struct.mmt_bit_t, ptr, i32, i32, ptr, [32 x i8] }
%struct.mmt_bit_t = type { [32 x i8] }
%struct.link_node_struct = type { ptr, ptr, ptr }
%struct._fsm_tran_index_struct = type { i64, i64, ptr, [40 x i8] }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @_process_multi_packets(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i8 0, ptr %6, align 1, !tbaa !9
  br label %12

12:                                               ; preds = %81, %2
  %13 = load i8, ptr %6, align 1, !tbaa !9
  %14 = zext i8 %13 to i32
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.rule_engine_struct, ptr %15, i32 0, i32 5
  %17 = load i32, ptr %16, align 8, !tbaa !10
  %18 = icmp ult i32 %14, %17
  br i1 %18, label %19, label %84

19:                                               ; preds = %12
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.message_struct, ptr %20, i32 0, i32 5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.rule_engine_struct, ptr %22, i32 0, i32 10
  %24 = load ptr, ptr %23, align 64, !tbaa !14
  %25 = load i8, ptr %6, align 1, !tbaa !9
  %26 = zext i8 %25 to i64
  %27 = getelementptr inbounds %struct.mmt_bit_t, ptr %24, i64 %26
  %28 = call zeroext i1 @mmt_bit_is_contain(ptr noundef %21, ptr noundef %27)
  br i1 %28, label %30, label %29

29:                                               ; preds = %19
  br label %81

30:                                               ; preds = %19
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.rule_engine_struct, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 16, !tbaa !15
  %34 = load i8, ptr %6, align 1, !tbaa !9
  %35 = zext i8 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %33, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %37, ptr %7, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %79, %62, %30
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %80

41:                                               ; preds = %38
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.link_node_struct, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  store ptr %44, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %45, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.link_node_struct, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  store ptr %48, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._fsm_tran_index_struct, ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 64, !tbaa !19
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.message_struct, ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 64, !tbaa !21
  %55 = icmp eq i64 %51, %54
  %56 = xor i1 %55, true
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i32
  %59 = sext i32 %58 to i64
  %60 = call i64 @llvm.expect.i64(i64 %59, i64 0)
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %41
  br label %38, !llvm.loop !25

63:                                               ; preds = %41
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.message_struct, ptr %64, i32 0, i32 0
  %66 = load i64, ptr %65, align 64, !tbaa !21
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._fsm_tran_index_struct, ptr %67, i32 0, i32 0
  store i64 %66, ptr %68, align 64, !tbaa !19
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i8, ptr %6, align 1, !tbaa !9
  %71 = zext i8 %70 to i16
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = call i32 @_process_a_node(ptr noundef %69, i16 noundef zeroext %71, ptr noundef %72, ptr noundef %73)
  store i32 %74, ptr %10, align 4, !tbaa !27
  %75 = load i32, ptr %10, align 4, !tbaa !27
  %76 = icmp ne i32 %75, 4
  br i1 %76, label %77, label %79

77:                                               ; preds = %63
  %78 = load i32, ptr %10, align 4, !tbaa !27
  store i32 %78, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

79:                                               ; preds = %63
  br label %38, !llvm.loop !25

80:                                               ; preds = %38
  br label %81

81:                                               ; preds = %80, %29
  %82 = load i8, ptr %6, align 1, !tbaa !9
  %83 = add i8 %82, 1
  store i8 %83, ptr %6, align 1, !tbaa !9
  br label %12, !llvm.loop !28

84:                                               ; preds = %12
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.rule_engine_struct, ptr %85, i32 0, i32 12
  %87 = load i64, ptr %86, align 16, !tbaa !29
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.message_struct, ptr %88, i32 0, i32 0
  %90 = load i64, ptr %89, align 64, !tbaa !21
  %91 = add i64 %90, 10
  %92 = icmp ult i64 %87, %91
  br i1 %92, label %93, label %103

93:                                               ; preds = %84
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.rule_engine_struct, ptr %94, i32 0, i32 11
  %96 = load i64, ptr %95, align 8, !tbaa !30
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.message_struct, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !31
  %100 = add i64 %99, 100000
  %101 = icmp ult i64 %96, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %93
  store i32 4, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

103:                                              ; preds = %93, %84
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.message_struct, ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 64, !tbaa !21
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.rule_engine_struct, ptr %107, i32 0, i32 12
  store i64 %106, ptr %108, align 16, !tbaa !29
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.message_struct, ptr %109, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !31
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.rule_engine_struct, ptr %112, i32 0, i32 11
  store i64 %111, ptr %113, align 8, !tbaa !30
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.rule_engine_struct, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %115, align 16, !tbaa !15
  %117 = getelementptr inbounds ptr, ptr %116, i64 0
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  store ptr %118, ptr %7, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %152, %137, %103
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %153

122:                                              ; preds = %119
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.link_node_struct, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !16
  store ptr %125, ptr %9, align 8, !tbaa !5
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %126, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.link_node_struct, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  store ptr %129, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._fsm_tran_index_struct, ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 64, !tbaa !19
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.message_struct, ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 64, !tbaa !21
  %136 = icmp eq i64 %132, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %122
  br label %119, !llvm.loop !32

138:                                              ; preds = %122
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.message_struct, ptr %139, i32 0, i32 0
  %141 = load i64, ptr %140, align 64, !tbaa !21
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._fsm_tran_index_struct, ptr %142, i32 0, i32 0
  store i64 %141, ptr %143, align 64, !tbaa !19
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = call i32 @_process_a_node(ptr noundef %144, i16 noundef zeroext 0, ptr noundef %145, ptr noundef %146)
  store i32 %147, ptr %10, align 4, !tbaa !27
  %148 = load i32, ptr %10, align 4, !tbaa !27
  %149 = icmp ne i32 %148, 4
  br i1 %149, label %150, label %152

150:                                              ; preds = %138
  %151 = load i32, ptr %10, align 4, !tbaa !27
  store i32 %151, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

152:                                              ; preds = %138
  br label %119, !llvm.loop !32

153:                                              ; preds = %119
  store i32 4, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

154:                                              ; preds = %153, %150, %102, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  %155 = load i32, ptr %3, align 4
  ret i32 %155
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @_process_a_node(ptr noundef, i16 noundef zeroext, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 40}
!11 = !{!"rule_engine_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !13, i64 72, !13, i64 80}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !6, i64 64}
!15 = !{!11, !6, i64 16}
!16 = !{!17, !6, i64 16}
!17 = !{!"link_node_struct", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!17, !6, i64 8}
!19 = !{!20, !13, i64 0}
!20 = !{!"_fsm_tran_index_struct", !13, i64 0, !13, i64 8, !6, i64 16}
!21 = !{!22, !13, i64 0}
!22 = !{!"message_struct", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !23, i64 32, !24, i64 34, !6, i64 72, !12, i64 80, !12, i64 84, !6, i64 88}
!23 = !{!"short", !7, i64 0}
!24 = !{!"", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !12, i64 0}
!28 = distinct !{!28, !26}
!29 = !{!11, !13, i64 80}
!30 = !{!11, !13, i64 72}
!31 = !{!22, !13, i64 8}
!32 = distinct !{!32, !26}


; 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.mmt_bit_t = type { [32 x i8] }

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @mmt_bit_is_contain(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @_process_multi_packets(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %.not66 = icmp eq i32 %4, 0
  br i1 %.not66, label %._crit_edge, label %.lr.ph59

.lr.ph59:                                         ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 34
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  br label %8

8:                                                ; preds = %.lr.ph59, %.loopexit53
  %.04458 = phi i8 [ 0, %.lr.ph59 ], [ %28, %.loopexit53 ]
  %9 = load ptr, ptr %6, align 64, !tbaa !12
  %10 = zext i8 %.04458 to i64
  %11 = getelementptr inbounds %struct.mmt_bit_t, ptr %9, i64 %10
  %12 = tail call zeroext i1 @mmt_bit_is_contain(ptr noundef nonnull %5, ptr noundef %11)
  br i1 %12, label %13, label %.loopexit53

13:                                               ; preds = %8
  %14 = load ptr, ptr %7, align 16, !tbaa !13
  %15 = getelementptr inbounds ptr, ptr %14, i64 %10
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %.not5156 = icmp eq ptr %16, null
  br i1 %.not5156, label %.loopexit53, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %17 = zext i8 %.04458 to i16
  br label %18

18:                                               ; preds = %.lr.ph, %.backedge55
  %.057 = phi ptr [ %16, %.lr.ph ], [ %22, %.backedge55 ]
  %19 = getelementptr inbounds i8, ptr %.057, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %.057, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = load i64, ptr %20, align 64, !tbaa !18
  %24 = load i64, ptr %1, align 64, !tbaa !20
  %25 = icmp eq i64 %23, %24
  br i1 %25, label %.backedge55, label %26, !prof !24

.backedge55:                                      ; preds = %18, %26
  %.not51 = icmp eq ptr %22, null
  br i1 %.not51, label %.loopexit53, label %18, !llvm.loop !25

26:                                               ; preds = %18
  store i64 %24, ptr %20, align 64, !tbaa !18
  %27 = tail call i32 @_process_a_node(ptr noundef nonnull %.057, i16 noundef zeroext %17, ptr noundef nonnull %1, ptr noundef %0)
  %.not52 = icmp eq i32 %27, 4
  br i1 %.not52, label %.backedge55, label %.loopexit

.loopexit53:                                      ; preds = %.backedge55, %13, %8
  %28 = add i8 %.04458, 1
  %29 = zext i8 %28 to i32
  %30 = load i32, ptr %3, align 8, !tbaa !5
  %31 = icmp ugt i32 %30, %29
  br i1 %31, label %8, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %.loopexit53, %2
  %32 = getelementptr inbounds i8, ptr %0, i64 80
  %33 = load i64, ptr %32, align 16, !tbaa !28
  %34 = load i64, ptr %1, align 64, !tbaa !20
  %35 = add i64 %34, 10
  %36 = icmp ult i64 %33, %35
  br i1 %36, label %37, label %._crit_edge._crit_edge

._crit_edge._crit_edge:                           ; preds = %._crit_edge
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 8
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !29
  br label %44

37:                                               ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  %39 = load i64, ptr %38, align 8, !tbaa !30
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  %41 = load i64, ptr %40, align 8, !tbaa !29
  %42 = add i64 %41, 100000
  %43 = icmp ult i64 %39, %42
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %._crit_edge._crit_edge, %37
  %45 = phi i64 [ %.pre, %._crit_edge._crit_edge ], [ %41, %37 ]
  store i64 %34, ptr %32, align 16, !tbaa !28
  %46 = getelementptr inbounds i8, ptr %0, i64 72
  store i64 %45, ptr %46, align 8, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load ptr, ptr %47, align 16, !tbaa !13
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %.not60 = icmp eq ptr %49, null
  br i1 %.not60, label %.loopexit, label %.lr.ph63

.lr.ph63:                                         ; preds = %44, %.backedge
  %.161 = phi ptr [ %53, %.backedge ], [ %49, %44 ]
  %50 = getelementptr inbounds i8, ptr %.161, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %.161, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = load i64, ptr %51, align 64, !tbaa !18
  %55 = load i64, ptr %1, align 64, !tbaa !20
  %56 = icmp eq i64 %54, %55
  br i1 %56, label %.backedge, label %57

.backedge:                                        ; preds = %.lr.ph63, %57
  %.not = icmp eq ptr %53, null
  br i1 %.not, label %.loopexit, label %.lr.ph63, !llvm.loop !31

57:                                               ; preds = %.lr.ph63
  store i64 %55, ptr %51, align 64, !tbaa !18
  %58 = tail call i32 @_process_a_node(ptr noundef nonnull %.161, i16 noundef zeroext 0, ptr noundef nonnull %1, ptr noundef %0)
  %.not50 = icmp eq i32 %58, 4
  br i1 %.not50, label %.backedge, label %.loopexit

.loopexit:                                        ; preds = %26, %57, %.backedge, %44, %37
  %.045 = phi i32 [ 4, %37 ], [ 4, %44 ], [ %58, %57 ], [ 4, %.backedge ], [ %27, %26 ]
  ret i32 %.045
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @_process_a_node(ptr noundef, i16 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #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" }

!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, !10, i64 40}
!6 = !{!"rule_engine_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 64}
!13 = !{!6, !7, i64 16}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 16}
!16 = !{!"link_node_struct", !7, i64 0, !7, i64 8, !7, i64 16}
!17 = !{!16, !7, i64 8}
!18 = !{!19, !11, i64 0}
!19 = !{!"_fsm_tran_index_struct", !11, i64 0, !11, i64 8, !7, i64 16}
!20 = !{!21, !11, i64 0}
!21 = !{!"message_struct", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !22, i64 32, !23, i64 34, !7, i64 72, !10, i64 80, !10, i64 84, !7, i64 88}
!22 = !{!"short", !8, i64 0}
!23 = !{!"", !8, i64 0}
!24 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!6, !11, i64 80}
!29 = !{!21, !11, i64 8}
!30 = !{!6, !11, i64 72}
!31 = distinct !{!31, !26}


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