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

; 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.types = type { i8, ptr }
%struct.mrb_value = type { %union.anon, i32 }
%union.anon = type { double }
%struct.RString = type { i32, ptr, ptr, %union.anon.0 }
%union.anon.0 = type { %struct.anon }
%struct.anon = type { i64, %union.anon.1, ptr }
%union.anon.1 = type { i64 }

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@builtin_types = external hidden constant [18 x %struct.types], align 16
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mrb_check_type(ptr noundef %0, i64 %1, i32 %2, i32 noundef %3) #3 {
  %5 = alloca %struct.mrb_value, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.mrb_value, align 8
  %12 = alloca %struct.mrb_value, align 8
  %13 = alloca %struct.mrb_value, align 8
  %14 = alloca %struct.mrb_value, align 8
  %15 = alloca %struct.mrb_value, align 8
  %16 = alloca %struct.mrb_value, align 8
  %17 = alloca %struct.mrb_value, align 8
  %18 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  store i64 %1, ptr %18, align 8
  %19 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  store i32 %2, ptr %19, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %3, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr @builtin_types, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %20 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !11
  store i32 %21, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = icmp ne i32 %22, %23
  br i1 %24, label %31, label %25

25:                                               ; preds = %4
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 21
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 23
  br i1 %30, label %31, label %178

31:                                               ; preds = %28, %25, %4
  br label %32

32:                                               ; preds = %152, %31
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.types, ptr %33, i32 0, i32 0
  %35 = load i8, ptr %34, align 8, !tbaa !13
  %36 = zext i8 %35 to i32
  %37 = icmp slt i32 %36, 25
  br i1 %37, label %38, label %155

38:                                               ; preds = %32
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.types, ptr %39, i32 0, i32 0
  %41 = load i8, ptr %40, align 8, !tbaa !13
  %42 = zext i8 %41 to i32
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = icmp eq i32 %42, %43
  br i1 %44, label %45, label %152

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %46 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %54

49:                                               ; preds = %45
  %50 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !15
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store ptr @.str.13, ptr %10, align 8, !tbaa !5
  br label %128

54:                                               ; preds = %49, %45
  %55 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !11
  %57 = icmp eq i32 %56, 3
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  store ptr @.str.14, ptr %10, align 8, !tbaa !5
  br label %127

59:                                               ; preds = %54
  %60 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = icmp eq i32 %61, 4
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  store ptr @.str.15, ptr %10, align 8, !tbaa !5
  br label %126

64:                                               ; preds = %59
  %65 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !11
  %67 = icmp ult i32 %66, 8
  br i1 %67, label %68, label %118

68:                                               ; preds = %64
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  %73 = load i32, ptr %72, align 8
  %74 = call { i64, i32 } @mrb_obj_as_string(ptr noundef %69, i64 %71, i32 %73)
  %75 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 0
  %76 = extractvalue { i64, i32 } %74, 0
  store i64 %76, ptr %75, align 8
  %77 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 1
  %78 = extractvalue { i64, i32 } %74, 1
  store i32 %78, ptr %77, align 8
  %79 = getelementptr inbounds %struct.mrb_value, ptr %11, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = load i32, ptr %80, align 8
  %82 = lshr i32 %81, 11
  %83 = and i32 %82, 32
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %100

85:                                               ; preds = %68
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  %88 = load i64, ptr %87, align 8
  %89 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  %90 = load i32, ptr %89, align 8
  %91 = call { i64, i32 } @mrb_obj_as_string(ptr noundef %86, i64 %88, i32 %90)
  %92 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 0
  %93 = extractvalue { i64, i32 } %91, 0
  store i64 %93, ptr %92, align 8
  %94 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 1
  %95 = extractvalue { i64, i32 } %91, 1
  store i32 %95, ptr %94, align 8
  %96 = getelementptr inbounds %struct.mrb_value, ptr %12, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = getelementptr inbounds %struct.RString, ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds [24 x i8], ptr %98, i64 0, i64 0
  br label %116

100:                                              ; preds = %68
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  %103 = load i64, ptr %102, align 8
  %104 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  %105 = load i32, ptr %104, align 8
  %106 = call { i64, i32 } @mrb_obj_as_string(ptr noundef %101, i64 %103, i32 %105)
  %107 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 0
  %108 = extractvalue { i64, i32 } %106, 0
  store i64 %108, ptr %107, align 8
  %109 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 1
  %110 = extractvalue { i64, i32 } %106, 1
  store i32 %110, ptr %109, align 8
  %111 = getelementptr inbounds %struct.mrb_value, ptr %13, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = getelementptr inbounds %struct.RString, ptr %112, i32 0, i32 3
  %114 = getelementptr inbounds %struct.anon, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  br label %116

116:                                              ; preds = %100, %85
  %117 = phi ptr [ %99, %85 ], [ %115, %100 ]
  store ptr %117, ptr %10, align 8, !tbaa !5
  br label %125

118:                                              ; preds = %64
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  %121 = load i64, ptr %120, align 8
  %122 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  %123 = load i32, ptr %122, align 8
  %124 = call ptr @mrb_obj_classname(ptr noundef %119, i64 %121, i32 %123)
  store ptr %124, ptr %10, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %118, %116
  br label %126

126:                                              ; preds = %125, %63
  br label %127

127:                                              ; preds = %126, %58
  br label %128

128:                                              ; preds = %127, %53
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call ptr @mrb_exc_get(ptr noundef %130, ptr noundef @.str.11)
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = call { i64, i32 } @mrb_str_new_cstr(ptr noundef %132, ptr noundef %133)
  %135 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 0
  %136 = extractvalue { i64, i32 } %134, 0
  store i64 %136, ptr %135, align 8
  %137 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 1
  %138 = extractvalue { i64, i32 } %134, 1
  store i32 %138, ptr %137, align 8
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.types, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  %143 = call { i64, i32 } @mrb_str_new_cstr(ptr noundef %139, ptr noundef %142)
  %144 = getelementptr inbounds { i64, i32 }, ptr %15, i32 0, i32 0
  %145 = extractvalue { i64, i32 } %143, 0
  store i64 %145, ptr %144, align 8
  %146 = getelementptr inbounds { i64, i32 }, ptr %15, i32 0, i32 1
  %147 = extractvalue { i64, i32 } %143, 1
  store i32 %147, ptr %146, align 8
  %148 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 0
  %149 = load i64, ptr %148, align 8
  %150 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 1
  %151 = load i32, ptr %150, align 8
  call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %129, ptr noundef %131, ptr noundef @.str.16, i64 %149, i32 %151, ptr noundef byval(%struct.mrb_value) align 8 %15) #6
  unreachable

152:                                              ; preds = %38
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.types, ptr %153, i32 1
  store ptr %154, ptr %8, align 8, !tbaa !5
  br label %32, !llvm.loop !17

155:                                              ; preds = %32
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = call ptr @mrb_exc_get(ptr noundef %157, ptr noundef @.str.11)
  %159 = load i32, ptr %7, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = call { i64, i32 } @mrb_fixnum_value(i64 noundef %160)
  %162 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 0
  %163 = extractvalue { i64, i32 } %161, 0
  store i64 %163, ptr %162, align 8
  %164 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 1
  %165 = extractvalue { i64, i32 } %161, 1
  store i32 %165, ptr %164, align 8
  %166 = getelementptr inbounds %struct.mrb_value, ptr %5, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !11
  %168 = zext i32 %167 to i64
  %169 = call { i64, i32 } @mrb_fixnum_value(i64 noundef %168)
  %170 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 0
  %171 = extractvalue { i64, i32 } %169, 0
  store i64 %171, ptr %170, align 8
  %172 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 1
  %173 = extractvalue { i64, i32 } %169, 1
  store i32 %173, ptr %172, align 8
  %174 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 0
  %175 = load i64, ptr %174, align 8
  %176 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 1
  %177 = load i32, ptr %176, align 8
  call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %156, ptr noundef %158, ptr noundef @.str.17, i64 %175, i32 %177, ptr noundef byval(%struct.mrb_value) align 8 %17) #6
  unreachable

178:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  ret void
}

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

declare ptr @mrb_obj_classname(ptr noundef, i64, i32) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"mrb_value", !7, i64 0, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"types", !7, i64 0, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@builtin_types = external hidden local_unnamed_addr constant [18 x %struct.types], align 16
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

declare { i64, i32 } @mrb_str_new_cstr(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @mrb_check_type(ptr noundef %0, i64 %1, i32 %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca %struct.mrb_value, align 8
  %6 = alloca %struct.mrb_value, align 8
  %7 = icmp ne i32 %2, %3
  %8 = and i32 %2, -3
  %9 = icmp eq i32 %8, 21
  %or.cond3 = or i1 %7, %9
  br i1 %or.cond3, label %.preheader, label %61

.preheader:                                       ; preds = %4
  %10 = load i8, ptr @builtin_types, align 16, !tbaa !5
  %11 = icmp ult i8 %10, 25
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %47
  %12 = phi i8 [ %49, %47 ], [ %10, %.preheader ]
  %.052 = phi ptr [ %48, %47 ], [ @builtin_types, %.preheader ]
  %13 = zext nneg i8 %12 to i32
  %14 = icmp eq i32 %13, %3
  br i1 %14, label %15, label %47

15:                                               ; preds = %.lr.ph
  %16 = icmp ne i32 %2, 0
  %17 = icmp ne i64 %1, 0
  %or.cond6 = select i1 %16, i1 true, i1 %17
  br i1 %or.cond6, label %18, label %36

18:                                               ; preds = %15
  switch i32 %2, label %20 [
    i32 3, label %36
    i32 4, label %19
  ]

19:                                               ; preds = %18
  br label %36

20:                                               ; preds = %18
  %21 = icmp ult i32 %2, 8
  br i1 %21, label %22, label %34

22:                                               ; preds = %20
  %23 = tail call { i64, i32 } @mrb_obj_as_string(ptr noundef %0, i64 %1, i32 %2) #4
  %24 = extractvalue { i64, i32 } %23, 0
  %.sroa.013.0..sroa.013.0..cast = inttoptr i64 %24 to ptr
  %25 = load i32, ptr %.sroa.013.0..sroa.013.0..cast, align 8
  %26 = and i32 %25, 65536
  %.not = icmp eq i32 %26, 0
  %27 = tail call { i64, i32 } @mrb_obj_as_string(ptr noundef %0, i64 %1, i32 %2) #4
  %28 = extractvalue { i64, i32 } %27, 0
  %.sroa.09.0..sroa.09.0..cast = inttoptr i64 %28 to ptr
  br i1 %.not, label %31, label %29

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %.sroa.09.0..sroa.09.0..cast, i64 24
  br label %36

31:                                               ; preds = %22
  %32 = getelementptr inbounds i8, ptr %.sroa.09.0..sroa.09.0..cast, i64 40
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  br label %36

34:                                               ; preds = %20
  %35 = tail call ptr @mrb_obj_classname(ptr noundef %0, i64 %1, i32 %2) #4
  br label %36

36:                                               ; preds = %29, %31, %18, %15, %34, %19
  %.048 = phi ptr [ @.str.15, %19 ], [ %35, %34 ], [ @.str.13, %15 ], [ @.str.14, %18 ], [ %30, %29 ], [ %33, %31 ]
  %37 = tail call ptr @mrb_exc_get(ptr noundef %0, ptr noundef nonnull @.str.11) #4
  %38 = tail call { i64, i32 } @mrb_str_new_cstr(ptr noundef %0, ptr noundef %.048) #4
  %39 = extractvalue { i64, i32 } %38, 0
  %40 = extractvalue { i64, i32 } %38, 1
  %41 = getelementptr inbounds i8, ptr %.052, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = tail call { i64, i32 } @mrb_str_new_cstr(ptr noundef %0, ptr noundef %42) #4
  %44 = extractvalue { i64, i32 } %43, 0
  store i64 %44, ptr %5, align 8
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  %46 = extractvalue { i64, i32 } %43, 1
  store i32 %46, ptr %45, align 8
  tail call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %0, ptr noundef %37, ptr noundef nonnull @.str.16, i64 %39, i32 %40, ptr noundef nonnull byval(%struct.mrb_value) align 8 %5) #5
  unreachable

47:                                               ; preds = %.lr.ph
  %48 = getelementptr inbounds i8, ptr %.052, i64 16
  %49 = load i8, ptr %48, align 8, !tbaa !5
  %50 = icmp ult i8 %49, 25
  br i1 %50, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %47, %.preheader
  %51 = tail call ptr @mrb_exc_get(ptr noundef %0, ptr noundef nonnull @.str.11) #4
  %52 = zext i32 %3 to i64
  %53 = tail call { i64, i32 } @mrb_fixnum_value(i64 noundef %52)
  %54 = extractvalue { i64, i32 } %53, 0
  %55 = extractvalue { i64, i32 } %53, 1
  %56 = zext i32 %2 to i64
  %57 = tail call { i64, i32 } @mrb_fixnum_value(i64 noundef %56)
  %58 = extractvalue { i64, i32 } %57, 0
  store i64 %58, ptr %6, align 8
  %59 = getelementptr inbounds i8, ptr %6, i64 8
  %60 = extractvalue { i64, i32 } %57, 1
  store i32 %60, ptr %59, align 8
  tail call void (ptr, ptr, ptr, ...) @mrb_raisef(ptr noundef %0, ptr noundef %51, ptr noundef nonnull @.str.17, i64 %54, i32 %55, ptr noundef nonnull byval(%struct.mrb_value) align 8 %6) #5
  unreachable

61:                                               ; preds = %4
  ret void
}

declare { i64, i32 } @mrb_obj_as_string(ptr noundef, i64, i32) local_unnamed_addr #1

declare ptr @mrb_obj_classname(ptr noundef, i64, i32) local_unnamed_addr #1

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

attributes #0 = { 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 #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 = { 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 = { 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, !7, i64 0}
!6 = !{!"types", !7, i64 0, !9, i64 8}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !9, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass