; LLVM IR from Montimage/mmt-security :: src/lib (mmt_fsm)

; 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.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.fsm_struct = type { i64, i64, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [48 x i8] }
%struct.fsm_state_struct = type { %struct.fsm_delay_struct, i8, ptr, ptr, i64, i32, i32 }
%struct.fsm_delay_struct = type { i64, i64, i32, i32, i64, i64, i32, i32 }
%struct.fsm_transition_struct = type { i16, ptr, i32, ptr }

; 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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @fsm_handle_event(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i16 %1, ptr %7, align 2, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.message_struct, ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.fsm_struct, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 64, !tbaa !16
  %21 = icmp ult i64 %17, %20
  %22 = xor i1 %21, true
  %23 = xor i1 %22, true
  %24 = zext i1 %23 to i32
  %25 = sext i32 %24 to i64
  %26 = call i64 @llvm.expect.i64(i64 %25, i64 0)
  %27 = icmp ne i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  store i32 2, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %163

29:                                               ; preds = %4
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.fsm_struct, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds %struct.fsm_state_struct, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = load i16, ptr %7, align 2, !tbaa !9
  %36 = zext i16 %35 to i64
  %37 = getelementptr inbounds %struct.fsm_transition_struct, ptr %34, i64 %36
  store ptr %37, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.fsm_struct, ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds %struct.fsm_state_struct, ptr %40, i32 0, i32 1
  %42 = load i8, ptr %41, align 8, !tbaa !23, !range !24, !noundef !25
  %43 = trunc i8 %42 to i1
  br i1 %43, label %99, label %44

44:                                               ; preds = %29
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.fsm_struct, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.fsm_struct, ptr %48, i32 0, i32 5
  %50 = load ptr, ptr %49, align 32, !tbaa !26
  %51 = icmp ne ptr %47, %50
  br i1 %51, label %52, label %99

52:                                               ; preds = %44
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.message_struct, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !11
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.fsm_struct, ptr %56, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !27
  %59 = icmp ugt i64 %55, %58
  br i1 %59, label %60, label %99

60:                                               ; preds = %52
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.fsm_struct, ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds %struct.fsm_state_struct, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = getelementptr inbounds %struct.fsm_transition_struct, ptr %65, i64 0
  store ptr %66, ptr %11, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.fsm_transition_struct, ptr %67, i32 0, i32 0
  %69 = load i16, ptr %68, align 8, !tbaa !28
  %70 = zext i16 %69 to i32
  %71 = icmp eq i32 %70, 0
  %72 = xor i1 %71, true
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  %75 = sext i32 %74 to i64
  %76 = call i64 @llvm.expect.i64(i64 %75, i64 1)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %98

78:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.fsm_transition_struct, ptr %79, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !30
  store ptr %81, ptr %14, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.fsm_state_struct, ptr %82, i32 0, i32 4
  %84 = load i64, ptr %83, align 8, !tbaa !31
  %85 = icmp eq i64 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %78
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.fsm_transition_struct, ptr %87, i32 0, i32 0
  %89 = load i16, ptr %88, align 8, !tbaa !28
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.fsm_struct, ptr %90, i32 0, i32 3
  store i16 %89, ptr %91, align 2, !tbaa !32
  br label %92

92:                                               ; preds = %86, %78
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call i32 @_update_fsm(ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96)
  store i32 %97, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %163

98:                                               ; preds = %60
  br label %99

99:                                               ; preds = %98, %52, %44, %29
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.fsm_transition_struct, ptr %100, i32 0, i32 0
  %102 = load i16, ptr %101, align 8, !tbaa !28
  %103 = zext i16 %102 to i32
  %104 = icmp eq i32 %103, 0
  %105 = xor i1 %104, true
  %106 = xor i1 %105, true
  %107 = zext i1 %106 to i32
  %108 = sext i32 %107 to i64
  %109 = call i64 @llvm.expect.i64(i64 %108, i64 0)
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %99
  store i32 2, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %163

112:                                              ; preds = %99
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.fsm_transition_struct, ptr %113, i32 0, i32 0
  %115 = load i16, ptr %114, align 8, !tbaa !28
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.fsm_struct, ptr %116, i32 0, i32 3
  store i16 %115, ptr %117, align 2, !tbaa !32
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.fsm_transition_struct, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !33
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %131

122:                                              ; preds = %112
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.fsm_transition_struct, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !33
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = call i32 %125(ptr noundef %126, ptr noundef %127)
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %122
  store i32 2, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %163

131:                                              ; preds = %122, %112
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.fsm_transition_struct, ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 8, !tbaa !34
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %136, label %155

136:                                              ; preds = %131
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.fsm_transition_struct, ptr %137, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !30
  %140 = getelementptr inbounds %struct.fsm_state_struct, ptr %139, i32 0, i32 4
  %141 = load i64, ptr %140, align 8, !tbaa !31
  %142 = icmp ugt i64 %141, 0
  br i1 %142, label %143, label %155

143:                                              ; preds = %136
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = call ptr @_fsm_clone(ptr noundef %144)
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %145, ptr %146, align 8, !tbaa !5
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.fsm_transition_struct, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !30
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = call i32 @_update_fsm(ptr noundef %148, ptr noundef %151, ptr noundef %152, ptr noundef %153)
  store i32 %154, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %163

155:                                              ; preds = %136, %131
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.fsm_transition_struct, ptr %157, i32 0, i32 3
  %159 = load ptr, ptr %158, align 8, !tbaa !30
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = call i32 @_update_fsm(ptr noundef %156, ptr noundef %159, ptr noundef %160, ptr noundef %161)
  store i32 %162, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %163

163:                                              ; preds = %155, %143, %130, %111, %92, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %164 = load i32, ptr %5, align 4
  ret i32 %164
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!"short", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"message_struct", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !14, i64 34, !6, i64 72, !15, i64 80, !15, i64 84, !6, i64 88}
!13 = !{!"long", !7, i64 0}
!14 = !{!"", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"fsm_struct", !13, i64 0, !13, i64 8, !10, i64 16, !10, i64 18, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!18 = !{!17, !6, i64 24}
!19 = !{!20, !6, i64 64}
!20 = !{!"fsm_state_struct", !21, i64 0, !22, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !15, i64 80, !15, i64 84}
!21 = !{!"fsm_delay_struct", !13, i64 0, !13, i64 8, !15, i64 16, !15, i64 20, !13, i64 24, !13, i64 32, !15, i64 40, !15, i64 44}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{!20, !22, i64 48}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!17, !6, i64 32}
!27 = !{!17, !13, i64 8}
!28 = !{!29, !10, i64 0}
!29 = !{!"fsm_transition_struct", !10, i64 0, !6, i64 8, !15, i64 16, !6, i64 24}
!30 = !{!29, !6, i64 24}
!31 = !{!20, !13, i64 72}
!32 = !{!17, !10, i64 18}
!33 = !{!29, !6, i64 8}
!34 = !{!29, !15, i64 16}


; 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.fsm_transition_struct = type { i16, ptr, i32, ptr }

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_fsm_clone(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @fsm_handle_event(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = load i64, ptr %0, align 64, !tbaa !14
  %8 = icmp ult i64 %6, %7
  br i1 %8, label %64, label %9, !prof !16

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !17
  %12 = getelementptr inbounds i8, ptr %11, i64 64
  %13 = load ptr, ptr %12, align 8, !tbaa !18
  %14 = zext i16 %1 to i64
  %15 = getelementptr inbounds %struct.fsm_transition_struct, ptr %13, i64 %14
  %16 = getelementptr inbounds i8, ptr %11, i64 48
  %17 = load i8, ptr %16, align 8, !tbaa !22, !range !23, !noundef !24
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %40, label %19

19:                                               ; preds = %9
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load ptr, ptr %20, align 32, !tbaa !25
  %.not = icmp eq ptr %11, %21
  br i1 %.not, label %40, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !26
  %25 = icmp ugt i64 %6, %24
  br i1 %25, label %26, label %40

26:                                               ; preds = %22
  %27 = load i16, ptr %13, align 8, !tbaa !27
  %28 = icmp eq i16 %27, 0
  br i1 %28, label %29, label %40, !prof !29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %13, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !30
  %32 = getelementptr inbounds i8, ptr %31, i64 72
  %33 = load i64, ptr %32, align 8, !tbaa !31
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %29
  %36 = load i16, ptr %15, align 8, !tbaa !27
  %37 = getelementptr inbounds i8, ptr %0, i64 18
  store i16 %36, ptr %37, align 2, !tbaa !32
  br label %38

38:                                               ; preds = %35, %29
  %39 = tail call i32 @_update_fsm(ptr noundef nonnull %0, ptr noundef nonnull %31, ptr noundef nonnull %13, ptr noundef nonnull %2)
  br label %64

40:                                               ; preds = %26, %22, %19, %9
  %41 = load i16, ptr %15, align 8, !tbaa !27
  %42 = icmp eq i16 %41, 0
  br i1 %42, label %64, label %43, !prof !16

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %0, i64 18
  store i16 %41, ptr %44, align 2, !tbaa !32
  %45 = getelementptr inbounds i8, ptr %15, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !33
  %.not40 = icmp eq ptr %46, null
  br i1 %.not40, label %50, label %47

47:                                               ; preds = %43
  %48 = tail call i32 %46(ptr noundef nonnull %2, ptr noundef nonnull %0) #2
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %64, label %50

50:                                               ; preds = %47, %43
  %51 = getelementptr inbounds i8, ptr %15, i64 16
  %52 = load i32, ptr %51, align 8, !tbaa !34
  %53 = icmp eq i32 %52, 1
  %54 = getelementptr inbounds i8, ptr %15, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !30
  br i1 %53, label %56, label %._crit_edge

56:                                               ; preds = %50
  %57 = getelementptr inbounds i8, ptr %55, i64 72
  %58 = load i64, ptr %57, align 8, !tbaa !31
  %.not41 = icmp eq i64 %58, 0
  br i1 %.not41, label %._crit_edge, label %59

59:                                               ; preds = %56
  %60 = tail call ptr @_fsm_clone(ptr noundef nonnull %0)
  store ptr %60, ptr %3, align 8, !tbaa !35
  %61 = load ptr, ptr %54, align 8, !tbaa !30
  %62 = tail call i32 @_update_fsm(ptr noundef %60, ptr noundef %61, ptr noundef nonnull %15, ptr noundef nonnull %2)
  br label %64

._crit_edge:                                      ; preds = %50, %56
  %63 = tail call i32 @_update_fsm(ptr noundef nonnull %0, ptr noundef %55, ptr noundef nonnull %15, ptr noundef nonnull %2)
  br label %64

64:                                               ; preds = %47, %40, %4, %._crit_edge, %59, %38
  %.0 = phi i32 [ %62, %59 ], [ %63, %._crit_edge ], [ %39, %38 ], [ 2, %4 ], [ 2, %40 ], [ 2, %47 ]
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @_update_fsm(ptr noundef, ptr noundef, 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" }
attributes #2 = { 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 8}
!6 = !{!"message_struct", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !12, i64 34, !10, i64 72, !13, i64 80, !13, i64 84, !10, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"fsm_struct", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 18, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!16 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!17 = !{!15, !10, i64 24}
!18 = !{!19, !10, i64 64}
!19 = !{!"fsm_state_struct", !20, i64 0, !21, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !13, i64 80, !13, i64 84}
!20 = !{!"fsm_delay_struct", !7, i64 0, !7, i64 8, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 32, !13, i64 40, !13, i64 44}
!21 = !{!"_Bool", !8, i64 0}
!22 = !{!19, !21, i64 48}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!15, !10, i64 32}
!26 = !{!15, !7, i64 8}
!27 = !{!28, !11, i64 0}
!28 = !{!"fsm_transition_struct", !11, i64 0, !10, i64 8, !13, i64 16, !10, i64 24}
!29 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!30 = !{!28, !10, i64 24}
!31 = !{!19, !7, i64 72}
!32 = !{!15, !11, i64 18}
!33 = !{!28, !10, i64 8}
!34 = !{!28, !13, i64 16}
!35 = !{!10, !10, i64 0}


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