; LLVM IR from skywind3000/ml :: NeuralNetwork (ineuron)

; 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.INTRAIN_BP = type { ptr, i32, i32, i32, double, double, ptr, ptr, ptr }
%struct.INEURALNET = type { i32, i32, i32, ptr, [1 x ptr] }
%struct.INLAYER = type { i32, i32, ptr, [1 x ptr] }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__.intrain_bp_destroy = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @intrain_bp_destroy(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  br label %10

9:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 521, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_destroy) #5
  unreachable

10:                                               ; preds = %8
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.INTRAIN_BP, ptr %11, i32 0, i32 6
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %26

15:                                               ; preds = %10
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.INTRAIN_BP, ptr %16, i32 0, i32 7
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %26

20:                                               ; preds = %15
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.INTRAIN_BP, ptr %21, i32 0, i32 8
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %20
  br label %27

26:                                               ; preds = %20, %15, %10
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 522, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_destroy) #5
  unreachable

27:                                               ; preds = %25
  store i32 0, ptr %4, align 4, !tbaa !15
  br label %28

28:                                               ; preds = %119, %27
  %29 = load i32, ptr %4, align 4, !tbaa !15
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.INTRAIN_BP, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !16
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %34, label %122

34:                                               ; preds = %28
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.INTRAIN_BP, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = getelementptr inbounds %struct.INEURALNET, ptr %37, i32 0, i32 4
  %39 = load i32, ptr %4, align 4, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1 x ptr], ptr %38, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %42, ptr %3, align 8, !tbaa !5
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.INTRAIN_BP, ptr %43, i32 0, i32 6
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = load i32, ptr %4, align 4, !tbaa !15
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %45, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %34
  br label %53

52:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 526, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_destroy) #5
  unreachable

53:                                               ; preds = %51
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.INTRAIN_BP, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load i32, ptr %4, align 4, !tbaa !15
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %53
  br label %64

63:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 527, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_destroy) #5
  unreachable

64:                                               ; preds = %62
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.INTRAIN_BP, ptr %65, i32 0, i32 8
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = load i32, ptr %4, align 4, !tbaa !15
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %64
  br label %75

74:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 528, ptr noundef @__PRETTY_FUNCTION__.intrain_bp_destroy) #5
  unreachable

75:                                               ; preds = %73
  store i32 0, ptr %5, align 4, !tbaa !15
  br label %76

76:                                               ; preds = %94, %75
  %77 = load i32, ptr %5, align 4, !tbaa !15
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.INLAYER, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !18
  %81 = icmp slt i32 %77, %80
  br i1 %81, label %82, label %97

82:                                               ; preds = %76
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.INTRAIN_BP, ptr %83, i32 0, i32 7
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = load i32, ptr %4, align 4, !tbaa !15
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %5, align 4, !tbaa !15
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  call void @free(ptr noundef %93) #4
  br label %94

94:                                               ; preds = %82
  %95 = load i32, ptr %5, align 4, !tbaa !15
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !15
  br label %76, !llvm.loop !20

97:                                               ; preds = %76
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.INTRAIN_BP, ptr %98, i32 0, i32 6
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = load i32, ptr %4, align 4, !tbaa !15
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  call void @free(ptr noundef %104) #4
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.INTRAIN_BP, ptr %105, i32 0, i32 7
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = load i32, ptr %4, align 4, !tbaa !15
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  call void @free(ptr noundef %111) #4
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.INTRAIN_BP, ptr %112, i32 0, i32 8
  %114 = load ptr, ptr %113, align 8, !tbaa !14
  %115 = load i32, ptr %4, align 4, !tbaa !15
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  call void @free(ptr noundef %118) #4
  br label %119

119:                                              ; preds = %97
  %120 = load i32, ptr %4, align 4, !tbaa !15
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %4, align 4, !tbaa !15
  br label %28, !llvm.loop !22

122:                                              ; preds = %28
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.INTRAIN_BP, ptr %123, i32 0, i32 6
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  call void @free(ptr noundef %125) #4
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.INTRAIN_BP, ptr %126, i32 0, i32 7
  %128 = load ptr, ptr %127, align 8, !tbaa !13
  call void @free(ptr noundef %128) #4
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.INTRAIN_BP, ptr %129, i32 0, i32 8
  %131 = load ptr, ptr %130, align 8, !tbaa !14
  call void @free(ptr noundef %131) #4
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.INTRAIN_BP, ptr %132, i32 0, i32 6
  store ptr null, ptr %133, align 8, !tbaa !9
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.INTRAIN_BP, ptr %134, i32 0, i32 7
  store ptr null, ptr %135, align 8, !tbaa !13
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.INTRAIN_BP, ptr %136, i32 0, i32 8
  store ptr null, ptr %137, align 8, !tbaa !14
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %138) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { 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 #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 }
attributes #5 = { noreturn 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, !6, i64 40}
!10 = !{!"INTRAIN_BP", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !6, i64 48}
!14 = !{!10, !6, i64 56}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !6, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"INLAYER", !11, i64 0, !11, i64 4, !6, i64 8, !7, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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 [72 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__.intrain_bp_destroy = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @intrain_bp_destroy(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 521, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_destroy) #3
  unreachable

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not35 = icmp eq ptr %5, null
  br i1 %.not35, label %15, label %6

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %.not36 = icmp eq ptr %8, null
  br i1 %.not36, label %15, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %.not37 = icmp eq ptr %11, null
  br i1 %.not37, label %15, label %.preheader41

.preheader41:                                     ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !14
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph44, label %._crit_edge45

15:                                               ; preds = %9, %6, %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 522, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_destroy) #3
  unreachable

.lr.ph44:                                         ; preds = %.preheader41, %._crit_edge
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %._crit_edge ], [ 0, %.preheader41 ]
  %16 = load ptr, ptr %0, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %16, i64 24
  %18 = getelementptr inbounds [1 x ptr], ptr %17, i64 0, i64 %indvars.iv47
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv47
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %.not38 = icmp eq ptr %22, null
  br i1 %.not38, label %23, label %24

23:                                               ; preds = %.lr.ph44
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 526, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_destroy) #3
  unreachable

24:                                               ; preds = %.lr.ph44
  %25 = load ptr, ptr %7, align 8, !tbaa !12
  %26 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv47
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %.not39 = icmp eq ptr %27, null
  br i1 %.not39, label %28, label %29

28:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 527, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_destroy) #3
  unreachable

29:                                               ; preds = %24
  %30 = load ptr, ptr %10, align 8, !tbaa !13
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv47
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %.not40 = icmp eq ptr %32, null
  br i1 %.not40, label %35, label %.preheader

.preheader:                                       ; preds = %29
  %33 = load i32, ptr %19, align 8, !tbaa !17
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

35:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 528, ptr noundef nonnull @__PRETTY_FUNCTION__.intrain_bp_destroy) #3
  unreachable

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %36 = load ptr, ptr %7, align 8, !tbaa !12
  %37 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv47
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  tail call void @free(ptr noundef %40) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr %19, align 8, !tbaa !17
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv47
  %.pre50 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %44 = phi ptr [ %.pre50, %._crit_edge.loopexit ], [ %22, %.preheader ]
  tail call void @free(ptr noundef %44) #4
  %45 = load ptr, ptr %7, align 8, !tbaa !12
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv47
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  tail call void @free(ptr noundef %47) #4
  %48 = load ptr, ptr %10, align 8, !tbaa !13
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv47
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  tail call void @free(ptr noundef %50) #4
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %51 = load i32, ptr %12, align 8, !tbaa !14
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next48, %52
  br i1 %53, label %.lr.ph44, label %._crit_edge45.loopexit, !llvm.loop !21

._crit_edge45.loopexit:                           ; preds = %._crit_edge
  %.pre51 = load ptr, ptr %4, align 8, !tbaa !5
  br label %._crit_edge45

._crit_edge45:                                    ; preds = %._crit_edge45.loopexit, %.preheader41
  %54 = phi ptr [ %.pre51, %._crit_edge45.loopexit ], [ %5, %.preheader41 ]
  tail call void @free(ptr noundef %54) #4
  %55 = load ptr, ptr %7, align 8, !tbaa !12
  tail call void @free(ptr noundef %55) #4
  %56 = load ptr, ptr %10, align 8, !tbaa !13
  tail call void @free(ptr noundef %56) #4
  tail call void @free(ptr noundef nonnull %0) #4
  ret void
}

attributes #0 = { noreturn 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 #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { 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 = { noreturn nounwind }
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, !7, i64 40}
!6 = !{!"INTRAIN_BP", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 48}
!13 = !{!6, !7, i64 56}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"INLAYER", !10, i64 0, !10, i64 4, !7, i64 8, !8, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass