; LLVM IR from hit9/bitproto :: example/CPP (example_bp)

; 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.BpMessageFieldDescriptor = type { ptr, %struct.BpType, ptr }
%struct.BpType = type { i32, i32, i32, ptr, ptr, i32 }
%struct.Drone = type { i8, %struct.Position, %struct.Flight, [4 x %struct.Propeller], %struct.Power, %struct.Network, %struct.LandingGear, %struct.PressureSensor }
%struct.Position = type { i32, i32, i32 }
%struct.Flight = type { %struct.Pose, [3 x i32], [3 x i32] }
%struct.Pose = type { i32, i32, i32 }
%struct.Propeller = type { i8, i8, i8 }
%struct.Power = type { i8, i8, i8 }
%struct.Network = type { i8, i32 }
%struct.LandingGear = type { i8 }
%struct.PressureSensor = type { [2 x i32] }

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPower(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPower(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessNetwork(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatNetwork(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessLandingGear(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatLandingGear(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPosition(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPosition(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessFlight(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatFlight(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPressureSensor(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPressureSensor(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessArrayDrone4(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatArrayDrone4(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @BpFieldDescriptorsInitDrone(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.BpMessageFieldDescriptor, align 8
  %6 = alloca %struct.BpMessageFieldDescriptor, align 8
  %7 = alloca %struct.BpMessageFieldDescriptor, align 8
  %8 = alloca %struct.BpMessageFieldDescriptor, align 8
  %9 = alloca %struct.BpMessageFieldDescriptor, align 8
  %10 = alloca %struct.BpMessageFieldDescriptor, align 8
  %11 = alloca %struct.BpMessageFieldDescriptor, align 8
  %12 = alloca %struct.BpMessageFieldDescriptor, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %13, i64 0
  %15 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %5, i32 0, i32 0
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.Drone, ptr %16, i32 0, i32 0
  store ptr %17, ptr %15, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %5, i32 0, i32 1
  %19 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 0
  store i32 5, ptr %19, align 8, !tbaa !13
  %20 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 1
  store i32 3, ptr %20, align 4, !tbaa !14
  %21 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 2
  store i32 1, ptr %21, align 8, !tbaa !15
  %22 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 3
  store ptr null, ptr %22, align 8, !tbaa !16
  %23 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 4
  store ptr null, ptr %23, align 8, !tbaa !17
  %24 = getelementptr inbounds %struct.BpType, ptr %18, i32 0, i32 5
  store i32 0, ptr %24, align 8, !tbaa !18
  %25 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %5, i32 0, i32 2
  store ptr @.str.1, ptr %25, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %5, i64 56, i1 false), !tbaa.struct !20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %26, i64 1
  %28 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %6, i32 0, i32 0
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Drone, ptr %29, i32 0, i32 1
  store ptr %30, ptr %28, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %6, i32 0, i32 1
  %32 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 0
  store i32 8, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 1
  store i32 96, ptr %33, align 4, !tbaa !14
  %34 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 2
  store i32 12, ptr %34, align 8, !tbaa !15
  %35 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 3
  store ptr @BpXXXProcessPosition, ptr %35, align 8, !tbaa !16
  %36 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 4
  store ptr @BpXXXJsonFormatPosition, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.BpType, ptr %31, i32 0, i32 5
  store i32 0, ptr %37, align 8, !tbaa !18
  %38 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %6, i32 0, i32 2
  store ptr @.str.17, ptr %38, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %6, i64 56, i1 false), !tbaa.struct !20
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %39, i64 2
  %41 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %7, i32 0, i32 0
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Drone, ptr %42, i32 0, i32 2
  store ptr %43, ptr %41, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %7, i32 0, i32 1
  %45 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 0
  store i32 8, ptr %45, align 8, !tbaa !13
  %46 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 1
  store i32 288, ptr %46, align 4, !tbaa !14
  %47 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 2
  store i32 36, ptr %47, align 8, !tbaa !15
  %48 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 3
  store ptr @BpXXXProcessFlight, ptr %48, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 4
  store ptr @BpXXXJsonFormatFlight, ptr %49, align 8, !tbaa !17
  %50 = getelementptr inbounds %struct.BpType, ptr %44, i32 0, i32 5
  store i32 0, ptr %50, align 8, !tbaa !18
  %51 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %7, i32 0, i32 2
  store ptr @.str.18, ptr %51, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %7, i64 56, i1 false), !tbaa.struct !20
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %52, i64 3
  %54 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %8, i32 0, i32 0
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Drone, ptr %55, i32 0, i32 3
  store ptr %56, ptr %54, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %8, i32 0, i32 1
  %58 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 0
  store i32 7, ptr %58, align 8, !tbaa !13
  %59 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 1
  store i32 48, ptr %59, align 4, !tbaa !14
  %60 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 2
  store i32 12, ptr %60, align 8, !tbaa !15
  %61 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 3
  store ptr @BpXXXProcessArrayDrone4, ptr %61, align 8, !tbaa !16
  %62 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 4
  store ptr @BpXXXJsonFormatArrayDrone4, ptr %62, align 8, !tbaa !17
  %63 = getelementptr inbounds %struct.BpType, ptr %57, i32 0, i32 5
  store i32 0, ptr %63, align 8, !tbaa !18
  %64 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %8, i32 0, i32 2
  store ptr @.str.19, ptr %64, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %8, i64 56, i1 false), !tbaa.struct !20
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %65, i64 4
  %67 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %9, i32 0, i32 0
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Drone, ptr %68, i32 0, i32 4
  store ptr %69, ptr %67, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %9, i32 0, i32 1
  %71 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 0
  store i32 8, ptr %71, align 8, !tbaa !13
  %72 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 1
  store i32 11, ptr %72, align 4, !tbaa !14
  %73 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 2
  store i32 3, ptr %73, align 8, !tbaa !15
  %74 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 3
  store ptr @BpXXXProcessPower, ptr %74, align 8, !tbaa !16
  %75 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 4
  store ptr @BpXXXJsonFormatPower, ptr %75, align 8, !tbaa !17
  %76 = getelementptr inbounds %struct.BpType, ptr %70, i32 0, i32 5
  store i32 0, ptr %76, align 8, !tbaa !18
  %77 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %9, i32 0, i32 2
  store ptr @.str.20, ptr %77, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %66, ptr align 8 %9, i64 56, i1 false), !tbaa.struct !20
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %78, i64 5
  %80 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %10, i32 0, i32 0
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Drone, ptr %81, i32 0, i32 5
  store ptr %82, ptr %80, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %10, i32 0, i32 1
  %84 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 0
  store i32 8, ptr %84, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 1
  store i32 36, ptr %85, align 4, !tbaa !14
  %86 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 2
  store i32 8, ptr %86, align 8, !tbaa !15
  %87 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 3
  store ptr @BpXXXProcessNetwork, ptr %87, align 8, !tbaa !16
  %88 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 4
  store ptr @BpXXXJsonFormatNetwork, ptr %88, align 8, !tbaa !17
  %89 = getelementptr inbounds %struct.BpType, ptr %83, i32 0, i32 5
  store i32 0, ptr %89, align 8, !tbaa !18
  %90 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %10, i32 0, i32 2
  store ptr @.str.21, ptr %90, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 8 %10, i64 56, i1 false), !tbaa.struct !20
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %91, i64 6
  %93 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %11, i32 0, i32 0
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Drone, ptr %94, i32 0, i32 6
  store ptr %95, ptr %93, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %11, i32 0, i32 1
  %97 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 0
  store i32 8, ptr %97, align 8, !tbaa !13
  %98 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 1
  store i32 2, ptr %98, align 4, !tbaa !14
  %99 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 2
  store i32 1, ptr %99, align 8, !tbaa !15
  %100 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 3
  store ptr @BpXXXProcessLandingGear, ptr %100, align 8, !tbaa !16
  %101 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 4
  store ptr @BpXXXJsonFormatLandingGear, ptr %101, align 8, !tbaa !17
  %102 = getelementptr inbounds %struct.BpType, ptr %96, i32 0, i32 5
  store i32 0, ptr %102, align 8, !tbaa !18
  %103 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %11, i32 0, i32 2
  store ptr @.str.22, ptr %103, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 8 %11, i64 56, i1 false), !tbaa.struct !20
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %104, i64 7
  %106 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %12, i32 0, i32 0
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Drone, ptr %107, i32 0, i32 7
  store ptr %108, ptr %106, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %12, i32 0, i32 1
  %110 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 0
  store i32 8, ptr %110, align 8, !tbaa !13
  %111 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 1
  store i32 48, ptr %111, align 4, !tbaa !14
  %112 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 2
  store i32 8, ptr %112, align 8, !tbaa !15
  %113 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 3
  store ptr @BpXXXProcessPressureSensor, ptr %113, align 8, !tbaa !16
  %114 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 4
  store ptr @BpXXXJsonFormatPressureSensor, ptr %114, align 8, !tbaa !17
  %115 = getelementptr inbounds %struct.BpType, ptr %109, i32 0, i32 5
  store i32 0, ptr %115, align 8, !tbaa !18
  %116 = getelementptr inbounds %struct.BpMessageFieldDescriptor, ptr %12, i32 0, i32 2
  store ptr @.str.23, ptr %116, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %105, ptr align 8 %12, i64 56, i1 false), !tbaa.struct !20
  ret void
}

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

!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 = !{!"BpMessageFieldDescriptor", !6, i64 0, !11, i64 8, !6, i64 48}
!11 = !{!"BpType", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !12, i64 0}
!14 = !{!11, !12, i64 4}
!15 = !{!11, !12, i64 8}
!16 = !{!11, !6, i64 16}
!17 = !{!11, !6, i64 24}
!18 = !{!11, !12, i64 32}
!19 = !{!10, !6, i64 48}
!20 = !{i64 0, i64 8, !5, i64 8, i64 4, !21, i64 12, i64 4, !21, i64 16, i64 4, !21, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 4, !21, i64 48, i64 8, !5}
!21 = !{!12, !12, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPower(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPower(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessNetwork(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatNetwork(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessLandingGear(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatLandingGear(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPosition(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPosition(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessFlight(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatFlight(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessPressureSensor(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatPressureSensor(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXProcessArrayDrone4(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BpXXXJsonFormatArrayDrone4(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @BpFieldDescriptorsInitDrone(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #1 {
  store ptr %0, ptr %1, align 8, !tbaa !5
  %.sroa.264.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  store i32 5, ptr %.sroa.264.0..sroa_idx, align 8, !tbaa !9
  %.sroa.365.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 12
  store i32 3, ptr %.sroa.365.0..sroa_idx, align 4, !tbaa !9
  %.sroa.466.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 16
  store i32 1, ptr %.sroa.466.0..sroa_idx, align 8, !tbaa !9
  %.sroa.568.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.872.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %.sroa.568.0..sroa_idx, i8 0, i64 20, i1 false)
  store ptr @.str.1, ptr %.sroa.872.0..sroa_idx, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 56
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  store ptr %4, ptr %3, align 8, !tbaa !5
  %.sroa.254.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 64
  store i32 8, ptr %.sroa.254.0..sroa_idx, align 8, !tbaa !9
  %.sroa.355.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 68
  store i32 96, ptr %.sroa.355.0..sroa_idx, align 4, !tbaa !9
  %.sroa.456.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 72
  store i32 12, ptr %.sroa.456.0..sroa_idx, align 8, !tbaa !9
  %.sroa.558.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 80
  store ptr @BpXXXProcessPosition, ptr %.sroa.558.0..sroa_idx, align 8, !tbaa !5
  %.sroa.659.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 88
  store ptr @BpXXXJsonFormatPosition, ptr %.sroa.659.0..sroa_idx, align 8, !tbaa !5
  %.sroa.760.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 96
  store i32 0, ptr %.sroa.760.0..sroa_idx, align 8, !tbaa !9
  %.sroa.862.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 104
  store ptr @.str.17, ptr %.sroa.862.0..sroa_idx, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 112
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %6, ptr %5, align 8, !tbaa !5
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 120
  store i32 8, ptr %.sroa.244.0..sroa_idx, align 8, !tbaa !9
  %.sroa.345.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 124
  store i32 288, ptr %.sroa.345.0..sroa_idx, align 4, !tbaa !9
  %.sroa.446.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 128
  store i32 36, ptr %.sroa.446.0..sroa_idx, align 8, !tbaa !9
  %.sroa.548.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 136
  store ptr @BpXXXProcessFlight, ptr %.sroa.548.0..sroa_idx, align 8, !tbaa !5
  %.sroa.649.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 144
  store ptr @BpXXXJsonFormatFlight, ptr %.sroa.649.0..sroa_idx, align 8, !tbaa !5
  %.sroa.750.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 152
  store i32 0, ptr %.sroa.750.0..sroa_idx, align 8, !tbaa !9
  %.sroa.852.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 160
  store ptr @.str.18, ptr %.sroa.852.0..sroa_idx, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 168
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  store ptr %8, ptr %7, align 8, !tbaa !5
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 176
  store i32 7, ptr %.sroa.234.0..sroa_idx, align 8, !tbaa !9
  %.sroa.335.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 180
  store i32 48, ptr %.sroa.335.0..sroa_idx, align 4, !tbaa !9
  %.sroa.436.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 184
  store i32 12, ptr %.sroa.436.0..sroa_idx, align 8, !tbaa !9
  %.sroa.538.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 192
  store ptr @BpXXXProcessArrayDrone4, ptr %.sroa.538.0..sroa_idx, align 8, !tbaa !5
  %.sroa.639.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 200
  store ptr @BpXXXJsonFormatArrayDrone4, ptr %.sroa.639.0..sroa_idx, align 8, !tbaa !5
  %.sroa.740.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 208
  store i32 0, ptr %.sroa.740.0..sroa_idx, align 8, !tbaa !9
  %.sroa.842.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 216
  store ptr @.str.19, ptr %.sroa.842.0..sroa_idx, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 224
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %10, ptr %9, align 8, !tbaa !5
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 232
  store i32 8, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !9
  %.sroa.325.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 236
  store i32 11, ptr %.sroa.325.0..sroa_idx, align 4, !tbaa !9
  %.sroa.426.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 240
  store i32 3, ptr %.sroa.426.0..sroa_idx, align 8, !tbaa !9
  %.sroa.528.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 248
  store ptr @BpXXXProcessPower, ptr %.sroa.528.0..sroa_idx, align 8, !tbaa !5
  %.sroa.629.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 256
  store ptr @BpXXXJsonFormatPower, ptr %.sroa.629.0..sroa_idx, align 8, !tbaa !5
  %.sroa.730.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 264
  store i32 0, ptr %.sroa.730.0..sroa_idx, align 8, !tbaa !9
  %.sroa.832.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 272
  store ptr @.str.20, ptr %.sroa.832.0..sroa_idx, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 280
  %12 = getelementptr inbounds i8, ptr %0, i64 68
  store ptr %12, ptr %11, align 8, !tbaa !5
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 288
  store i32 8, ptr %.sroa.214.0..sroa_idx, align 8, !tbaa !9
  %.sroa.315.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 292
  store i32 36, ptr %.sroa.315.0..sroa_idx, align 4, !tbaa !9
  %.sroa.416.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 296
  store i32 8, ptr %.sroa.416.0..sroa_idx, align 8, !tbaa !9
  %.sroa.518.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 304
  store ptr @BpXXXProcessNetwork, ptr %.sroa.518.0..sroa_idx, align 8, !tbaa !5
  %.sroa.619.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 312
  store ptr @BpXXXJsonFormatNetwork, ptr %.sroa.619.0..sroa_idx, align 8, !tbaa !5
  %.sroa.720.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 320
  store i32 0, ptr %.sroa.720.0..sroa_idx, align 8, !tbaa !9
  %.sroa.822.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 328
  store ptr @.str.21, ptr %.sroa.822.0..sroa_idx, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 336
  %14 = getelementptr inbounds i8, ptr %0, i64 76
  store ptr %14, ptr %13, align 8, !tbaa !5
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 344
  store i32 8, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !9
  %.sroa.35.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 348
  store i32 2, ptr %.sroa.35.0..sroa_idx, align 4, !tbaa !9
  %.sroa.46.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 352
  store i32 1, ptr %.sroa.46.0..sroa_idx, align 8, !tbaa !9
  %.sroa.58.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 360
  store ptr @BpXXXProcessLandingGear, ptr %.sroa.58.0..sroa_idx, align 8, !tbaa !5
  %.sroa.69.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 368
  store ptr @BpXXXJsonFormatLandingGear, ptr %.sroa.69.0..sroa_idx, align 8, !tbaa !5
  %.sroa.710.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 376
  store i32 0, ptr %.sroa.710.0..sroa_idx, align 8, !tbaa !9
  %.sroa.812.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 384
  store ptr @.str.22, ptr %.sroa.812.0..sroa_idx, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 392
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %16, ptr %15, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 400
  store i32 8, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !9
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 404
  store i32 48, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 408
  store i32 8, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %.sroa.51.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 416
  store ptr @BpXXXProcessPressureSensor, ptr %.sroa.51.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 424
  store ptr @BpXXXJsonFormatPressureSensor, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !5
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 432
  store i32 0, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !9
  %.sroa.82.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 440
  store ptr @.str.23, ptr %.sroa.82.0..sroa_idx, align 8, !tbaa !5
  ret void
}

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

attributes #0 = { 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 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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: write) }

!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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass