; LLVM IR from devantler/software-engineering-f22-shared :: IOT/BudgetManagementExcercise-03-28/ESP-Project/components/components/nghttp (at)

; 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.mrb_value = type { %union.anon, i32 }
%union.anon = type { double }

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

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @mrb_get_values_at(ptr noundef %0, i64 %1, i32 %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca %struct.mrb_value, align 8
  %9 = alloca %struct.mrb_value, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %struct.mrb_value, align 8
  %20 = alloca %struct.mrb_value, align 8
  %21 = alloca i64, align 8
  %22 = alloca %struct.mrb_value, align 8
  %23 = alloca %struct.mrb_value, align 8
  %24 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 0
  store i64 %1, ptr %24, align 8
  %25 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 1
  store i32 %2, ptr %25, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = call { i64, i32 } @mrb_ary_new(ptr noundef %26)
  %28 = getelementptr inbounds { i64, i32 }, ptr %19, i32 0, i32 0
  %29 = extractvalue { i64, i32 } %27, 0
  store i64 %29, ptr %28, align 8
  %30 = getelementptr inbounds { i64, i32 }, ptr %19, i32 0, i32 1
  %31 = extractvalue { i64, i32 } %27, 1
  store i32 %31, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %164, %7
  %33 = load i64, ptr %15, align 8, !tbaa !9
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %36, label %167

36:                                               ; preds = %32
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load i64, ptr %15, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.mrb_value, ptr %37, i64 %38
  %40 = getelementptr inbounds %struct.mrb_value, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp eq i32 %41, 3
  br i1 %42, label %43, label %69

43:                                               ; preds = %36
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = load i64, ptr %15, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.mrb_value, ptr %47, i64 %48
  %50 = getelementptr inbounds %struct.mrb_value, ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !12
  %52 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 0
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 1
  %55 = load i32, ptr %54, align 8
  %56 = call { i64, i32 } %45(ptr noundef %46, i64 %53, i32 %55, i64 noundef %51)
  %57 = getelementptr inbounds { i64, i32 }, ptr %20, i32 0, i32 0
  %58 = extractvalue { i64, i32 } %56, 0
  store i64 %58, ptr %57, align 8
  %59 = getelementptr inbounds { i64, i32 }, ptr %20, i32 0, i32 1
  %60 = extractvalue { i64, i32 } %56, 1
  store i32 %60, ptr %59, align 8
  %61 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 0
  %62 = load i64, ptr %61, align 8
  %63 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 1
  %64 = load i32, ptr %63, align 8
  %65 = getelementptr inbounds { i64, i32 }, ptr %20, i32 0, i32 0
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds { i64, i32 }, ptr %20, i32 0, i32 1
  %68 = load i32, ptr %67, align 8
  call void @mrb_ary_push(ptr noundef %44, i64 %62, i32 %64, i64 %66, i32 %68)
  br label %163

69:                                               ; preds = %36
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load i64, ptr %15, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.mrb_value, ptr %71, i64 %72
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = getelementptr inbounds { i64, i32 }, ptr %73, i32 0, i32 0
  %76 = load i64, ptr %75, align 8
  %77 = getelementptr inbounds { i64, i32 }, ptr %73, i32 0, i32 1
  %78 = load i32, ptr %77, align 8
  %79 = call i64 @mrb_range_beg_len(ptr noundef %70, i64 %76, i32 %78, ptr noundef %17, ptr noundef %18, i64 noundef %74, i8 noundef zeroext 0)
  %80 = icmp eq i64 %79, 1
  br i1 %80, label %81, label %151

81:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = load i64, ptr %17, align 8, !tbaa !9
  %84 = load i64, ptr %18, align 8, !tbaa !9
  %85 = add nsw i64 %83, %84
  %86 = icmp slt i64 %82, %85
  br i1 %86, label %87, label %89

87:                                               ; preds = %81
  %88 = load i64, ptr %11, align 8, !tbaa !9
  br label %93

89:                                               ; preds = %81
  %90 = load i64, ptr %17, align 8, !tbaa !9
  %91 = load i64, ptr %18, align 8, !tbaa !9
  %92 = add nsw i64 %90, %91
  br label %93

93:                                               ; preds = %89, %87
  %94 = phi i64 [ %88, %87 ], [ %92, %89 ]
  store i64 %94, ptr %21, align 8, !tbaa !9
  %95 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %95, ptr %16, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %122, %93
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = load i64, ptr %21, align 8, !tbaa !9
  %99 = icmp slt i64 %97, %98
  br i1 %99, label %100, label %125

100:                                              ; preds = %96
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 0
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 1
  %108 = load i32, ptr %107, align 8
  %109 = call { i64, i32 } %102(ptr noundef %103, i64 %106, i32 %108, i64 noundef %104)
  %110 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 0
  %111 = extractvalue { i64, i32 } %109, 0
  store i64 %111, ptr %110, align 8
  %112 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 1
  %113 = extractvalue { i64, i32 } %109, 1
  store i32 %113, ptr %112, align 8
  %114 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 0
  %115 = load i64, ptr %114, align 8
  %116 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 1
  %117 = load i32, ptr %116, align 8
  %118 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 0
  %119 = load i64, ptr %118, align 8
  %120 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 1
  %121 = load i32, ptr %120, align 8
  call void @mrb_ary_push(ptr noundef %101, i64 %115, i32 %117, i64 %119, i32 %121)
  br label %122

122:                                              ; preds = %100
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %16, align 8, !tbaa !9
  br label %96, !llvm.loop !17

125:                                              ; preds = %96
  br label %126

126:                                              ; preds = %147, %125
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = load i64, ptr %17, align 8, !tbaa !9
  %129 = load i64, ptr %18, align 8, !tbaa !9
  %130 = add nsw i64 %128, %129
  %131 = icmp slt i64 %127, %130
  br i1 %131, label %132, label %150

132:                                              ; preds = %126
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = call { i64, i32 } @mrb_nil_value()
  %135 = getelementptr inbounds { i64, i32 }, ptr %23, i32 0, i32 0
  %136 = extractvalue { i64, i32 } %134, 0
  store i64 %136, ptr %135, align 8
  %137 = getelementptr inbounds { i64, i32 }, ptr %23, i32 0, i32 1
  %138 = extractvalue { i64, i32 } %134, 1
  store i32 %138, ptr %137, align 8
  %139 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 0
  %140 = load i64, ptr %139, align 8
  %141 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 1
  %142 = load i32, ptr %141, align 8
  %143 = getelementptr inbounds { i64, i32 }, ptr %23, i32 0, i32 0
  %144 = load i64, ptr %143, align 8
  %145 = getelementptr inbounds { i64, i32 }, ptr %23, i32 0, i32 1
  %146 = load i32, ptr %145, align 8
  call void @mrb_ary_push(ptr noundef %133, i64 %140, i32 %142, i64 %144, i32 %146)
  br label %147

147:                                              ; preds = %132
  %148 = load i64, ptr %16, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %16, align 8, !tbaa !9
  br label %126, !llvm.loop !19

150:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %162

151:                                              ; preds = %69
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = call ptr @mrb_exc_get(ptr noundef %153, ptr noundef @.str)
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i64, ptr %15, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.mrb_value, ptr %155, i64 %156
  %158 = getelementptr inbounds { i64, i32 }, ptr %157, i32 0, i32 0
  %159 = load i64, ptr %158, align 8
  %160 = getelementptr inbounds { i64, i32 }, ptr %157, i32 0, i32 1
  %161 = load i32, ptr %160, align 8
  call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %152, ptr noundef %154, ptr noundef @.str.1, i64 %159, i32 %161) #7
  unreachable

162:                                              ; preds = %150
  br label %163

163:                                              ; preds = %162, %43
  br label %164

164:                                              ; preds = %163
  %165 = load i64, ptr %15, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %15, align 8, !tbaa !9
  br label %32, !llvm.loop !20

167:                                              ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %168 = load { i64, i32 }, ptr %8, align 8
  ret { i64, i32 } %168
}

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

declare { i64, i32 } @mrb_ary_new(ptr noundef) #2

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

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

declare void @mrb_ary_push(ptr noundef, i64, i32, i64, i32) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @mrb_range_beg_len(ptr noundef, i64, i32, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i32 } @mrb_nil_value() #4

; Function Attrs: noreturn
declare void @mrb_raisef(ptr noundef, ptr noundef, ptr noundef, ...) #5

declare ptr @mrb_exc_get(ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn "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 #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 8, !12, i64 8, i64 4, !13}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"mrb_value", !7, i64 0, !14, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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

%struct.mrb_value = type { %union.anon, i32 }
%union.anon = type { double }

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

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @mrb_get_values_at(ptr noundef %0, i64 %1, i32 %2, i64 noundef %3, i64 noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6) local_unnamed_addr #0 {
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %10 = tail call { i64, i32 } @mrb_ary_new(ptr noundef %0) #6
  %11 = extractvalue { i64, i32 } %10, 0
  %12 = extractvalue { i64, i32 } %10, 1
  %13 = icmp sgt i64 %4, 0
  br i1 %13, label %.lr.ph54, label %._crit_edge

.lr.ph54:                                         ; preds = %7, %.loopexit
  %.053 = phi i64 [ %50, %.loopexit ], [ 0, %7 ]
  %14 = getelementptr inbounds %struct.mrb_value, ptr %5, i64 %.053
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load i32, ptr %15, align 8
  %17 = icmp eq i32 %16, 3
  %18 = load i64, ptr %14, align 8
  br i1 %17, label %19, label %23

19:                                               ; preds = %.lr.ph54
  %20 = call { i64, i32 } %6(ptr noundef %0, i64 %1, i32 %2, i64 noundef %18) #6
  %21 = extractvalue { i64, i32 } %20, 0
  %22 = extractvalue { i64, i32 } %20, 1
  call void @mrb_ary_push(ptr noundef %0, i64 %11, i32 %12, i64 %21, i32 %22) #6
  br label %.loopexit

23:                                               ; preds = %.lr.ph54
  %24 = call i64 @mrb_range_beg_len(ptr noundef %0, i64 %18, i32 %16, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %3, i8 noundef zeroext 0)
  %25 = icmp eq i64 %24, 1
  br i1 %25, label %26, label %45

26:                                               ; preds = %23
  %27 = load i64, ptr %8, align 8
  %28 = load i64, ptr %9, align 8
  %29 = add nsw i64 %28, %27
  %30 = call i64 @llvm.smin.i64(i64 %29, i64 %3)
  %31 = icmp slt i64 %27, %30
  br i1 %31, label %.lr.ph, label %.preheader

.preheader.loopexit:                              ; preds = %.lr.ph
  %.pre = load i64, ptr %8, align 8, !tbaa !5
  %.pre58 = load i64, ptr %9, align 8, !tbaa !5
  %.pre59 = add nsw i64 %.pre58, %.pre
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %26
  %.pre-phi = phi i64 [ %.pre59, %.preheader.loopexit ], [ %29, %26 ]
  %.046.lcssa = phi i64 [ %30, %.preheader.loopexit ], [ %27, %26 ]
  %32 = icmp slt i64 %.046.lcssa, %.pre-phi
  br i1 %32, label %.lr.ph51, label %.loopexit

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.04649 = phi i64 [ %36, %.lr.ph ], [ %27, %26 ]
  %33 = call { i64, i32 } %6(ptr noundef %0, i64 %1, i32 %2, i64 noundef %.04649) #6
  %34 = extractvalue { i64, i32 } %33, 0
  %35 = extractvalue { i64, i32 } %33, 1
  call void @mrb_ary_push(ptr noundef %0, i64 %11, i32 %12, i64 %34, i32 %35) #6
  %36 = add i64 %.04649, 1
  %exitcond.not = icmp eq i64 %36, %30
  br i1 %exitcond.not, label %.preheader.loopexit, label %.lr.ph, !llvm.loop !9

.lr.ph51:                                         ; preds = %.preheader, %.lr.ph51
  %.150 = phi i64 [ %40, %.lr.ph51 ], [ %.046.lcssa, %.preheader ]
  %37 = call { i64, i32 } @mrb_nil_value()
  %38 = extractvalue { i64, i32 } %37, 0
  %39 = extractvalue { i64, i32 } %37, 1
  call void @mrb_ary_push(ptr noundef %0, i64 %11, i32 %12, i64 %38, i32 %39) #6
  %40 = add nsw i64 %.150, 1
  %41 = load i64, ptr %8, align 8, !tbaa !5
  %42 = load i64, ptr %9, align 8, !tbaa !5
  %43 = add nsw i64 %42, %41
  %44 = icmp slt i64 %40, %43
  br i1 %44, label %.lr.ph51, label %.loopexit, !llvm.loop !11

45:                                               ; preds = %23
  %46 = getelementptr inbounds i8, ptr %14, i64 8
  %47 = call ptr @mrb_exc_get(ptr noundef %0, ptr noundef nonnull @.str) #6
  %48 = load i64, ptr %14, align 8
  %49 = load i32, ptr %46, align 8
  call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %0, ptr noundef %47, ptr noundef nonnull @.str.1, i64 %48, i32 %49) #7
  unreachable

.loopexit:                                        ; preds = %.lr.ph51, %.preheader, %19
  %50 = add nuw nsw i64 %.053, 1
  %exitcond57.not = icmp eq i64 %50, %4
  br i1 %exitcond57.not, label %._crit_edge, label %.lr.ph54, !llvm.loop !12

._crit_edge:                                      ; preds = %.loopexit, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  ret { i64, i32 } %10
}

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

declare { i64, i32 } @mrb_ary_new(ptr noundef) local_unnamed_addr #2

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

declare void @mrb_ary_push(ptr noundef, i64, i32, i64, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @mrb_range_beg_len(ptr noundef, i64, i32, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i32 } @mrb_nil_value() local_unnamed_addr #3

; Function Attrs: noreturn
declare void @mrb_raisef(ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #4

declare ptr @mrb_exc_get(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #5

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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