; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/periph/can/stm32 (can)

; 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.file = type { i32, ptr, ptr }
%struct.node = type { [64 x i8], %struct.file_operations, ptr, ptr, ptr }
%struct.file_operations = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.can_t = type { [32 x i8], [32 x i8], %struct.FDCAN_HandleTypeDef, ptr, ptr, i32, i32, i32, i32, i32, i32, %struct.can_private_t }
%struct.FDCAN_HandleTypeDef = type { ptr, ptr, %struct.FDCAN_InitTypeDef, %struct.FDCAN_MsgRamAddressTypeDef, i32, i32, i32, i32 }
%struct.FDCAN_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.FDCAN_MsgRamAddressTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.can_private_t = type { i32, i32, ptr, ptr, ptr, ptr, i32, i8, i32, [32 x ptr], ptr, ptr }
%struct.can_channel_t = type { ptr, ptr, i32, i32, i32, i32, ptr, ptr }

@FreeRTOS_errno = external global i32, align 4
@can_open.id = external hidden global i32, align 4

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @can_open(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = 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 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.file, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds %struct.node, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds %struct.file_operations, ptr %14, i32 0, i32 10
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  store ptr %16, ptr %7, align 8, !tbaa !5
  store i32 0, ptr @FreeRTOS_errno, align 4, !tbaa !9
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.can_t, ptr %17, i32 0, i32 11
  %19 = getelementptr inbounds %struct.can_private_t, ptr %18, i32 0, i32 7
  %20 = load i8, ptr %19, align 4, !tbaa !16, !range !23, !noundef !24
  %21 = trunc i8 %20 to i1
  br i1 %21, label %23, label %22

22:                                               ; preds = %2
  store i32 1, ptr @FreeRTOS_errno, align 4, !tbaa !9
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %104

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %24 = call noalias ptr @calloc(i64 noundef 48, i64 noundef 1) #5
  store ptr %24, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %23
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !9
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %103

28:                                               ; preds = %23
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.can_channel_t, ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8, !tbaa !25
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.can_t, ptr %32, i32 0, i32 11
  %34 = getelementptr inbounds %struct.can_private_t, ptr %33, i32 0, i32 11
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.can_channel_t, ptr %36, i32 0, i32 6
  store ptr %35, ptr %37, align 8, !tbaa !28
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.can_t, ptr %38, i32 0, i32 9
  %40 = load i32, ptr %39, align 8, !tbaa !29
  %41 = sext i32 %40 to i64
  %42 = call ptr @xQueueGenericCreate(i64 noundef %41, i64 noundef 32, i8 noundef zeroext 0)
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.can_channel_t, ptr %43, i32 0, i32 7
  store ptr %42, ptr %44, align 8, !tbaa !30
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.can_t, ptr %45, i32 0, i32 11
  %47 = getelementptr inbounds %struct.can_private_t, ptr %46, i32 0, i32 11
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %28
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !9
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %103

51:                                               ; preds = %28
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.file, ptr %53, i32 0, i32 2
  store ptr %52, ptr %54, align 8, !tbaa !31
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.can_t, ptr %55, i32 0, i32 11
  %57 = getelementptr inbounds %struct.can_private_t, ptr %56, i32 0, i32 10
  %58 = load ptr, ptr %57, align 8, !tbaa !32
  %59 = call i64 @xQueueSemaphoreTake(ptr noundef %58, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %73, %51
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.can_t, ptr %61, i32 0, i32 11
  %63 = getelementptr inbounds %struct.can_private_t, ptr %62, i32 0, i32 9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [32 x ptr], ptr %63, i64 0, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %76

69:                                               ; preds = %60
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = icmp sgt i32 %70, 32
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  br label %76

73:                                               ; preds = %69
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %10, align 4, !tbaa !9
  br label %60, !llvm.loop !33

76:                                               ; preds = %72, %60
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 32
  br i1 %78, label %79, label %95

79:                                               ; preds = %76
  %80 = load i32, ptr @can_open.id, align 4, !tbaa !9
  %81 = add i32 %80, 1
  store i32 %81, ptr @can_open.id, align 4, !tbaa !9
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.can_channel_t, ptr %82, i32 0, i32 2
  store i32 %80, ptr %83, align 8, !tbaa !35
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.can_channel_t, ptr %84, i32 0, i32 3
  store i32 0, ptr %85, align 4, !tbaa !36
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.can_channel_t, ptr %86, i32 0, i32 4
  store i32 536870911, ptr %87, align 8, !tbaa !37
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.can_t, ptr %89, i32 0, i32 11
  %91 = getelementptr inbounds %struct.can_private_t, ptr %90, i32 0, i32 9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [32 x ptr], ptr %91, i64 0, i64 %93
  store ptr %88, ptr %94, align 8, !tbaa !5
  br label %96

95:                                               ; preds = %76
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %95, %79
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.can_t, ptr %97, i32 0, i32 11
  %99 = getelementptr inbounds %struct.can_private_t, ptr %98, i32 0, i32 10
  %100 = load ptr, ptr %99, align 8, !tbaa !32
  %101 = call i64 @xQueueGenericSend(ptr noundef %100, ptr noundef null, i32 noundef 0, i64 noundef 0)
  %102 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %102, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %103

103:                                              ; preds = %96, %50, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %104

104:                                              ; preds = %103, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %105 = load i32, ptr %3, align 4
  ret i32 %105
}

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

declare i64 @xQueueGenericSend(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { 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 #4 = { nounwind }
attributes #5 = { 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 8}
!12 = !{!"file", !10, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !6, i64 144}
!14 = !{!"node", !7, i64 0, !15, i64 64, !6, i64 152, !6, i64 160, !6, i64 168}
!15 = !{!"file_operations", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!16 = !{!17, !22, i64 332}
!17 = !{!"", !7, i64 0, !7, i64 32, !18, i64 64, !6, i64 248, !6, i64 256, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !21, i64 288}
!18 = !{!"", !6, i64 0, !6, i64 8, !19, i64 16, !20, i64 124, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176}
!19 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104}
!20 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!21 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !22, i64 44, !10, i64 48, !7, i64 56, !6, i64 312, !6, i64 320}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !6, i64 0}
!26 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40}
!27 = !{!17, !6, i64 608}
!28 = !{!26, !6, i64 32}
!29 = !{!17, !10, i64 280}
!30 = !{!26, !6, i64 40}
!31 = !{!12, !6, i64 16}
!32 = !{!17, !6, i64 600}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!26, !10, i64 16}
!36 = !{!26, !10, i64 20}
!37 = !{!26, !10, i64 24}


; 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"

@FreeRTOS_errno = external local_unnamed_addr global i32, align 4
@can_open.id = external hidden local_unnamed_addr global i32, align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @can_open(ptr nocapture noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 144
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  store i32 0, ptr @FreeRTOS_errno, align 4, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %6, i64 332
  %8 = load i8, ptr %7, align 4, !tbaa !15, !range !22, !noundef !23
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  store i32 1, ptr @FreeRTOS_errno, align 4, !tbaa !14
  br label %51

11:                                               ; preds = %2
  %12 = tail call noalias dereferenceable_or_null(48) ptr @calloc(i64 noundef 48, i64 noundef 1) #3
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %11
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !14
  br label %51

15:                                               ; preds = %11
  store ptr %6, ptr %12, align 8, !tbaa !24
  %16 = getelementptr inbounds i8, ptr %6, i64 608
  %17 = load ptr, ptr %16, align 8, !tbaa !26
  %18 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr %17, ptr %18, align 8, !tbaa !27
  %19 = getelementptr inbounds i8, ptr %6, i64 280
  %20 = load i32, ptr %19, align 8, !tbaa !28
  %21 = sext i32 %20 to i64
  %22 = tail call ptr @xQueueGenericCreate(i64 noundef %21, i64 noundef 32, i8 noundef zeroext 0) #4
  %23 = getelementptr inbounds i8, ptr %12, i64 40
  store ptr %22, ptr %23, align 8, !tbaa !29
  %24 = load ptr, ptr %16, align 8, !tbaa !26
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %15
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !14
  br label %51

27:                                               ; preds = %15
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %12, ptr %28, align 8, !tbaa !30
  %29 = getelementptr inbounds i8, ptr %6, i64 600
  %30 = load ptr, ptr %29, align 8, !tbaa !31
  %31 = tail call i64 @xQueueSemaphoreTake(ptr noundef %30, i32 noundef -1) #4
  %32 = getelementptr inbounds i8, ptr %6, i64 344
  br label %33

33:                                               ; preds = %33, %27
  %indvars.iv = phi i64 [ %indvars.iv.next, %33 ], [ 0, %27 ]
  %34 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %indvars.iv
  %35 = load ptr, ptr %34, align 8, !tbaa !32
  %36 = icmp eq ptr %35, null
  %37 = icmp ugt i64 %indvars.iv, 32
  %or.cond = or i1 %37, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %or.cond, label %38, label %33, !llvm.loop !33

38:                                               ; preds = %33
  %39 = icmp ult i64 %indvars.iv, 32
  br i1 %39, label %40, label %47

40:                                               ; preds = %38
  %41 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %indvars.iv
  %42 = load i32, ptr @can_open.id, align 4, !tbaa !14
  %43 = add i32 %42, 1
  store i32 %43, ptr @can_open.id, align 4, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %12, i64 16
  store i32 %42, ptr %44, align 8, !tbaa !35
  %45 = getelementptr inbounds i8, ptr %12, i64 20
  store i32 0, ptr %45, align 4, !tbaa !36
  %46 = getelementptr inbounds i8, ptr %12, i64 24
  store i32 536870911, ptr %46, align 8, !tbaa !37
  store ptr %12, ptr %41, align 8, !tbaa !32
  br label %48

47:                                               ; preds = %38
  store i32 12, ptr @FreeRTOS_errno, align 4, !tbaa !14
  br label %48

48:                                               ; preds = %47, %40
  %.028 = phi i32 [ 0, %40 ], [ -1, %47 ]
  %49 = load ptr, ptr %29, align 8, !tbaa !31
  %50 = tail call i64 @xQueueGenericSend(ptr noundef %49, ptr noundef null, i32 noundef 0, i64 noundef 0) #4
  br label %51

51:                                               ; preds = %14, %26, %48, %10
  %.1 = phi i32 [ -1, %10 ], [ -1, %14 ], [ -1, %26 ], [ %.028, %48 ]
  ret i32 %.1
}

declare i64 @xQueueGenericSend(ptr noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; 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 #2

attributes #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 = { 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 #3 = { nounwind allocsize(0,1) }
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, !10, i64 8}
!6 = !{!"file", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 144}
!12 = !{!"node", !8, i64 0, !13, i64 64, !10, i64 152, !10, i64 160, !10, i64 168}
!13 = !{!"file_operations", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !21, i64 332}
!16 = !{!"", !8, i64 0, !8, i64 32, !17, i64 64, !10, i64 248, !10, i64 256, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !20, i64 288}
!17 = !{!"", !10, i64 0, !10, i64 8, !18, i64 16, !19, i64 124, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176}
!18 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104}
!19 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!20 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !21, i64 44, !7, i64 48, !8, i64 56, !10, i64 312, !10, i64 320}
!21 = !{!"_Bool", !8, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !10, i64 0}
!25 = !{!"", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40}
!26 = !{!16, !10, i64 608}
!27 = !{!25, !10, i64 32}
!28 = !{!16, !7, i64 280}
!29 = !{!25, !10, i64 40}
!30 = !{!6, !10, i64 16}
!31 = !{!16, !10, i64 600}
!32 = !{!10, !10, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!25, !7, i64 16}
!36 = !{!25, !7, i64 20}
!37 = !{!25, !7, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass