; LLVM IR from ctlst-tech/catpilot :: bsp/ics/icm20948 (icm20948)

; 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.icm20948_t = type { [32 x i8], %struct.icm20948_interface_t, ptr, %struct.icm20948_sync_t, %struct.icm20948_fifo_buffer_t, %struct.icm20948_fifo_param_t, %struct.icm20948_meas_buffer_t, %struct.icm20948_meas_t, %struct.icm20948_meas_param_t, i32, i8, i32 }
%struct.icm20948_interface_t = type { ptr, ptr, ptr }
%struct.icm20948_sync_t = type { ptr, ptr, ptr }
%struct.icm20948_fifo_buffer_t = type { i8, i8, i8, [1 x %struct.icm20948_fifo_t] }
%struct.icm20948_fifo_t = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.icm20948_fifo_param_t = type { i16, i16 }
%struct.icm20948_meas_buffer_t = type { [1 x %struct.icm20948_meas_t], double }
%struct.icm20948_meas_t = type { double, double, double, double, double, double, double }
%struct.icm20948_meas_param_t = type { double, double, double, double }

@.str = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @icm20948_start(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !9
  %18 = load ptr, ptr %12, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %32, label %20

20:                                               ; preds = %7
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %32, label %23

23:                                               ; preds = %20
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %32, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = icmp ule i32 %27, 0
  br i1 %28, label %32, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = icmp ule i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29, %26, %23, %20, %7
  store ptr null, ptr %8, align 8
  br label %129

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %34 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 280) #6
  store ptr %34, ptr %16, align 8, !tbaa !5
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

38:                                               ; preds = %33
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.icm20948_t, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds [32 x i8], ptr %40, i64 0, i64 0
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call ptr @strncpy(ptr noundef %41, ptr noundef %42, i64 noundef 31) #5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.icm20948_t, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %struct.icm20948_interface_t, ptr %46, i32 0, i32 0
  store ptr %44, ptr %47, align 8, !tbaa !11
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.icm20948_t, ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %struct.icm20948_interface_t, ptr %50, i32 0, i32 1
  store ptr %48, ptr %51, align 8, !tbaa !21
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.icm20948_t, ptr %53, i32 0, i32 11
  store i32 %52, ptr %54, align 8, !tbaa !22
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %82

57:                                               ; preds = %38
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %16, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.icm20948_t, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.icm20948_interface_t, ptr %60, i32 0, i32 2
  store ptr %58, ptr %61, align 8, !tbaa !23
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.icm20948_t, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds %struct.icm20948_interface_t, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = call i32 @exti_init(ptr noundef %65, ptr noundef @icm20948_drdy_handler, ptr noundef %66)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %57
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

70:                                               ; preds = %57
  %71 = call ptr @xQueueGenericCreate(i64 noundef 1, i64 noundef 0, i8 noundef zeroext 3)
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.icm20948_t, ptr %72, i32 0, i32 3
  %74 = getelementptr inbounds %struct.icm20948_sync_t, ptr %73, i32 0, i32 0
  store ptr %71, ptr %74, align 8, !tbaa !24
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.icm20948_t, ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds %struct.icm20948_sync_t, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !24
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %70
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

81:                                               ; preds = %70
  br label %82

82:                                               ; preds = %81, %38
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.icm20948_t, ptr %83, i32 0, i32 9
  store i32 0, ptr %84, align 8, !tbaa !25
  %85 = call ptr @xQueueGenericCreate(i64 noundef 1, i64 noundef 0, i8 noundef zeroext 3)
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.icm20948_t, ptr %86, i32 0, i32 3
  %88 = getelementptr inbounds %struct.icm20948_sync_t, ptr %87, i32 0, i32 1
  store ptr %85, ptr %88, align 8, !tbaa !26
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.icm20948_t, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds %struct.icm20948_sync_t, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !26
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %95

94:                                               ; preds = %82
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

95:                                               ; preds = %82
  %96 = call ptr @xQueueCreateMutex(i8 noundef zeroext 1)
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.icm20948_t, ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds %struct.icm20948_sync_t, ptr %98, i32 0, i32 2
  store ptr %96, ptr %99, align 8, !tbaa !27
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.icm20948_t, ptr %100, i32 0, i32 3
  %102 = getelementptr inbounds %struct.icm20948_sync_t, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !27
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %106

105:                                              ; preds = %95
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

106:                                              ; preds = %95
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.icm20948_t, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds [32 x i8], ptr %108, i64 0, i64 0
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = call ptr @service_start(ptr noundef %109, ptr noundef %110, ptr noundef @icm20948_fsm, i32 noundef %111, i32 noundef %112)
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.icm20948_t, ptr %114, i32 0, i32 2
  store ptr %113, ptr %115, align 8, !tbaa !28
  %116 = icmp eq ptr %113, null
  br i1 %116, label %117, label %121

117:                                              ; preds = %106
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.icm20948_t, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds [32 x i8], ptr %119, i64 0, i64 0
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 2, ptr noundef %120, ptr noundef @.str)
  store ptr null, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

121:                                              ; preds = %106
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.icm20948_t, ptr %122, i32 0, i32 3
  %124 = getelementptr inbounds %struct.icm20948_sync_t, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !26
  %126 = call i64 @xQueueSemaphoreTake(ptr noundef %125, i32 noundef -1)
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %127, ptr %8, align 8
  store i32 1, ptr %17, align 4
  br label %128

128:                                              ; preds = %121, %117, %105, %94, %80, %69, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %129

129:                                              ; preds = %128, %32
  %130 = load ptr, ptr %8, align 8
  ret ptr %130
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @exti_init(ptr noundef, ptr noundef, ptr noundef) #4

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

declare ptr @xQueueGenericCreate(i64 noundef, i64 noundef, i8 noundef zeroext) #4

declare ptr @xQueueCreateMutex(i8 noundef zeroext) #4

declare ptr @service_start(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @icm20948_fsm(ptr noundef) #0

declare void @log_module(i8 noundef zeroext, ptr noundef, ptr noundef, ...) #4

declare i64 @xQueueSemaphoreTake(ptr noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,1) "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 "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 = { "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 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"", !7, i64 0, !13, i64 32, !6, i64 56, !13, i64 64, !14, i64 88, !15, i64 104, !17, i64 112, !19, i64 176, !20, i64 232, !10, i64 264, !7, i64 268, !10, i64 272}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!15 = !{!"", !16, i64 0, !16, i64 2}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !7, i64 0, !18, i64 56}
!18 = !{!"double", !7, i64 0}
!19 = !{!"", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !18, i64 48}
!20 = !{!"", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!21 = !{!12, !6, i64 40}
!22 = !{!12, !10, i64 272}
!23 = !{!12, !6, i64 48}
!24 = !{!12, !6, i64 64}
!25 = !{!12, !10, i64 264}
!26 = !{!12, !6, i64 72}
!27 = !{!12, !6, i64 80}
!28 = !{!12, !6, i64 56}


; 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 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @icm20948_start(ptr noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = icmp eq ptr %3, null
  %9 = icmp eq ptr %4, null
  %or.cond = or i1 %8, %9
  %10 = icmp eq ptr %0, null
  %or.cond3 = or i1 %10, %or.cond
  %11 = icmp eq i32 %1, 0
  %or.cond5 = or i1 %11, %or.cond3
  %12 = icmp eq i32 %2, 0
  %or.cond7 = or i1 %12, %or.cond5
  br i1 %or.cond7, label %45, label %13

13:                                               ; preds = %7
  %14 = tail call noalias dereferenceable_or_null(280) ptr @calloc(i64 noundef 1, i64 noundef 280) #4
  %15 = icmp eq ptr %14, null
  br i1 %15, label %45, label %16

16:                                               ; preds = %13
  %17 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) %0, i64 noundef 31) #5
  %18 = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %3, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %14, i64 40
  store ptr %4, ptr %19, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %14, i64 272
  store i32 %6, ptr %20, align 8, !tbaa !20
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %28, label %21

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %14, i64 48
  store ptr %5, ptr %22, align 8, !tbaa !21
  %23 = tail call i32 @exti_init(ptr noundef nonnull %5, ptr noundef nonnull @icm20948_drdy_handler, ptr noundef nonnull %14) #5
  %.not47 = icmp eq i32 %23, 0
  br i1 %.not47, label %24, label %45

24:                                               ; preds = %21
  %25 = tail call ptr @xQueueGenericCreate(i64 noundef 1, i64 noundef 0, i8 noundef zeroext 3) #5
  %26 = getelementptr inbounds i8, ptr %14, i64 64
  store ptr %25, ptr %26, align 8, !tbaa !22
  %27 = icmp eq ptr %25, null
  br i1 %27, label %45, label %28

28:                                               ; preds = %24, %16
  %29 = getelementptr inbounds i8, ptr %14, i64 264
  store i32 0, ptr %29, align 8, !tbaa !23
  %30 = tail call ptr @xQueueGenericCreate(i64 noundef 1, i64 noundef 0, i8 noundef zeroext 3) #5
  %31 = getelementptr inbounds i8, ptr %14, i64 72
  store ptr %30, ptr %31, align 8, !tbaa !24
  %32 = icmp eq ptr %30, null
  br i1 %32, label %45, label %33

33:                                               ; preds = %28
  %34 = tail call ptr @xQueueCreateMutex(i8 noundef zeroext 1) #5
  %35 = getelementptr inbounds i8, ptr %14, i64 80
  store ptr %34, ptr %35, align 8, !tbaa !25
  %36 = icmp eq ptr %34, null
  br i1 %36, label %45, label %37

37:                                               ; preds = %33
  %38 = tail call ptr @service_start(ptr noundef nonnull %14, ptr noundef nonnull %14, ptr noundef nonnull @icm20948_fsm, i32 noundef %1, i32 noundef %2) #5
  %39 = getelementptr inbounds i8, ptr %14, i64 56
  store ptr %38, ptr %39, align 8, !tbaa !26
  %40 = icmp eq ptr %38, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %37
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 2, ptr noundef nonnull %14, ptr noundef nonnull @.str) #5
  br label %45

42:                                               ; preds = %37
  %43 = load ptr, ptr %31, align 8, !tbaa !24
  %44 = tail call i64 @xQueueSemaphoreTake(ptr noundef %43, i32 noundef -1) #5
  br label %45

45:                                               ; preds = %41, %42, %13, %21, %24, %28, %33, %7
  %.1 = phi ptr [ null, %7 ], [ null, %41 ], [ %14, %42 ], [ null, %13 ], [ null, %21 ], [ null, %24 ], [ null, %28 ], [ null, %33 ]
  ret ptr %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #2

declare i32 @exti_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare ptr @xQueueGenericCreate(i64 noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #3

declare ptr @xQueueCreateMutex(i8 noundef zeroext) local_unnamed_addr #3

declare ptr @service_start(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @icm20948_fsm(ptr noundef) #0

declare void @log_module(i8 noundef zeroext, ptr noundef, ptr noundef, ...) local_unnamed_addr #3

declare i64 @xQueueSemaphoreTake(ptr noundef, i32 noundef) local_unnamed_addr #3

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 nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn memory(argmem: readwrite) "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 = { "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 allocsize(0,1) }
attributes #5 = { 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, !10, i64 32}
!6 = !{!"", !7, i64 0, !9, i64 32, !10, i64 56, !9, i64 64, !11, i64 88, !12, i64 104, !14, i64 112, !16, i64 176, !17, i64 232, !18, i64 264, !7, i64 268, !18, i64 272}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!12 = !{!"", !13, i64 0, !13, i64 2}
!13 = !{!"short", !7, i64 0}
!14 = !{!"", !7, i64 0, !15, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48}
!17 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!18 = !{!"int", !7, i64 0}
!19 = !{!6, !10, i64 40}
!20 = !{!6, !18, i64 272}
!21 = !{!6, !10, i64 48}
!22 = !{!6, !10, i64 64}
!23 = !{!6, !18, i64 264}
!24 = !{!6, !10, i64 72}
!25 = !{!6, !10, i64 80}
!26 = !{!6, !10, i64 56}


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