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

; 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 }
%struct.RString = type { i32, ptr, ptr, %union.anon.2 }
%union.anon.2 = type { %struct.anon }
%struct.anon = type { i64, %union.anon.3, ptr }
%union.anon.3 = type { i64 }
%struct.RClass = type { i32, ptr, ptr, ptr, ptr, ptr }

@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden void @iv_put(ptr noundef, ptr noundef, i32 noundef, i64, i32) #3

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

declare { i64, i32 } @mrb_str_new_capa(ptr noundef, i64 noundef) #4

declare { i64, i32 } @mrb_str_cat(ptr noundef, i64, i32, ptr noundef, i64 noundef) #4

declare { i64, i32 } @mrb_str_cat_cstr(ptr noundef, i64, i32, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @iv_del(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @mrb_class_find_path(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca %struct.mrb_value, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.mrb_value, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %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
  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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call zeroext i8 @detect_outer_loop(ptr noundef %16, ptr noundef %17)
  %19 = icmp ne i8 %18, 0
  br i1 %19, label %20, label %26

20:                                               ; preds = %2
  %21 = call { i64, i32 } @mrb_nil_value()
  %22 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 0
  %23 = extractvalue { i64, i32 } %21, 0
  store i64 %23, ptr %22, align 8
  %24 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 1
  %25 = extractvalue { i64, i32 } %21, 1
  store i32 %25, ptr %24, align 8
  store i32 1, ptr %11, align 4
  br label %151

26:                                               ; preds = %2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call ptr @outer_class(ptr noundef %27, ptr noundef %28)
  store ptr %29, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %38

32:                                               ; preds = %26
  %33 = call { i64, i32 } @mrb_nil_value()
  %34 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 0
  %35 = extractvalue { i64, i32 } %33, 0
  store i64 %35, ptr %34, align 8
  %36 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 1
  %37 = extractvalue { i64, i32 } %33, 1
  store i32 %37, ptr %36, align 8
  store i32 1, ptr %11, align 4
  br label %151

38:                                               ; preds = %26
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call i32 @find_class_sym(ptr noundef %39, ptr noundef %40, ptr noundef %41)
  store i32 %42, ptr %8, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %38
  %46 = call { i64, i32 } @mrb_nil_value()
  %47 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 0
  %48 = extractvalue { i64, i32 } %46, 0
  store i64 %48, ptr %47, align 8
  %49 = getelementptr inbounds { i64, i32 }, ptr %3, i32 0, i32 1
  %50 = extractvalue { i64, i32 } %46, 1
  store i32 %50, ptr %49, align 8
  store i32 1, ptr %11, align 4
  br label %151

51:                                               ; preds = %38
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call ptr @mrb_class_name(ptr noundef %52, ptr noundef %53)
  store ptr %54, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call { i64, i32 } @mrb_str_new_capa(ptr noundef %55, i64 noundef 40)
  %57 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 0
  %58 = extractvalue { i64, i32 } %56, 0
  store i64 %58, ptr %57, align 8
  %59 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 1
  %60 = extractvalue { i64, i32 } %56, 1
  store i32 %60, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 0
  %64 = load i64, ptr %63, align 8
  %65 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 1
  %66 = load i32, ptr %65, align 8
  %67 = call { i64, i32 } @mrb_str_cat_cstr(ptr noundef %61, i64 %64, i32 %66, ptr noundef %62)
  %68 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 0
  %69 = extractvalue { i64, i32 } %67, 0
  store i64 %69, ptr %68, align 8
  %70 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 1
  %71 = extractvalue { i64, i32 } %67, 1
  store i32 %71, ptr %70, align 8
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 0
  %74 = load i64, ptr %73, align 8
  %75 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 1
  %76 = load i32, ptr %75, align 8
  %77 = call { i64, i32 } @mrb_str_cat_cstr(ptr noundef %72, i64 %74, i32 %76, ptr noundef @.str.11)
  %78 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 0
  %79 = extractvalue { i64, i32 } %77, 0
  store i64 %79, ptr %78, align 8
  %80 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 1
  %81 = extractvalue { i64, i32 } %77, 1
  store i32 %81, ptr %80, align 8
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = call ptr @mrb_sym2name_len(ptr noundef %82, i32 noundef %83, ptr noundef %10)
  store ptr %84, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i64, ptr %10, align 8, !tbaa !13
  %88 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 0
  %89 = load i64, ptr %88, align 8
  %90 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 1
  %91 = load i32, ptr %90, align 8
  %92 = call { i64, i32 } @mrb_str_cat(ptr noundef %85, i64 %89, i32 %91, ptr noundef %86, i64 noundef %87)
  %93 = getelementptr inbounds { i64, i32 }, ptr %15, i32 0, i32 0
  %94 = extractvalue { i64, i32 } %92, 0
  store i64 %94, ptr %93, align 8
  %95 = getelementptr inbounds { i64, i32 }, ptr %15, i32 0, i32 1
  %96 = extractvalue { i64, i32 } %92, 1
  store i32 %96, ptr %95, align 8
  %97 = getelementptr inbounds %struct.mrb_value, ptr %7, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  %99 = load i32, ptr %98, align 8
  %100 = lshr i32 %99, 11
  %101 = and i32 %100, 32
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %51
  %104 = getelementptr inbounds %struct.mrb_value, ptr %7, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !12
  %106 = getelementptr inbounds %struct.RString, ptr %105, i32 0, i32 3
  %107 = getelementptr inbounds [24 x i8], ptr %106, i64 0, i64 0
  br label %114

108:                                              ; preds = %51
  %109 = getelementptr inbounds %struct.mrb_value, ptr %7, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !12
  %111 = getelementptr inbounds %struct.RString, ptr %110, i32 0, i32 3
  %112 = getelementptr inbounds %struct.anon, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !12
  br label %114

114:                                              ; preds = %108, %103
  %115 = phi ptr [ %107, %103 ], [ %113, %108 ]
  %116 = getelementptr inbounds i8, ptr %115, i64 0
  %117 = load i8, ptr %116, align 1, !tbaa !12
  %118 = sext i8 %117 to i32
  %119 = icmp ne i32 %118, 35
  br i1 %119, label %120, label %150

120:                                              ; preds = %114
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.RClass, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = call i32 @mrb_intern_static(ptr noundef %125, ptr noundef @.str.12, i64 noundef 9)
  %127 = call zeroext i8 @iv_del(ptr noundef %121, ptr noundef %124, i32 noundef %126, ptr noundef null)
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.RClass, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = call i32 @mrb_intern_static(ptr noundef %132, ptr noundef @.str.13, i64 noundef 13)
  %134 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 0
  %135 = load i64, ptr %134, align 8
  %136 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 1
  %137 = load i32, ptr %136, align 8
  call void @iv_put(ptr noundef %128, ptr noundef %131, i32 noundef %133, i64 %135, i32 %137)
  br label %138

138:                                              ; preds = %120
  %139 = getelementptr inbounds %struct.mrb_value, ptr %7, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !17
  %141 = icmp ult i32 %140, 8
  br i1 %141, label %147, label %142

142:                                              ; preds = %138
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.mrb_value, ptr %7, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  call void @mrb_field_write_barrier(ptr noundef %143, ptr noundef %144, ptr noundef %146)
  br label %147

147:                                              ; preds = %142, %138
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149, %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !11
  store i32 1, ptr %11, align 4
  br label %151

151:                                              ; preds = %150, %45, %32, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %152 = load { i64, i32 }, ptr %3, align 8
  ret { i64, i32 } %152
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @detect_outer_loop(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @outer_class(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @find_class_sym(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @mrb_class_name(ptr noundef, ptr noundef) #4

declare void @mrb_field_write_barrier(ptr noundef, ptr noundef, ptr noundef) #4

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

!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 = !{i64 0, i64 8, !12, i64 8, i64 4, !9}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 24}
!16 = !{!"RClass", !10, i64 0, !10, i64 1, !10, i64 1, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!18, !10, i64 8}
!18 = !{!"mrb_value", !7, i64 0, !10, i64 8}


; 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.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @iv_put(ptr noundef, ptr noundef, i32 noundef, i64, i32) local_unnamed_addr #2

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

declare { i64, i32 } @mrb_str_new_capa(ptr noundef, i64 noundef) local_unnamed_addr #3

declare { i64, i32 } @mrb_str_cat(ptr noundef, i64, i32, ptr noundef, i64 noundef) local_unnamed_addr #3

declare { i64, i32 } @mrb_str_cat_cstr(ptr noundef, i64, i32, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @iv_del(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @mrb_class_find_path(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %4 = tail call zeroext i8 @detect_outer_loop(ptr noundef %0, ptr noundef %1)
  %.not = icmp eq i8 %4, 0
  br i1 %.not, label %7, label %5

5:                                                ; preds = %2
  %6 = tail call { i64, i32 } @mrb_nil_value()
  br label %46

7:                                                ; preds = %2
  %8 = tail call ptr @outer_class(ptr noundef %0, ptr noundef %1)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %12

10:                                               ; preds = %7
  %11 = tail call { i64, i32 } @mrb_nil_value()
  br label %46

12:                                               ; preds = %7
  %13 = tail call i32 @find_class_sym(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %1)
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %12
  %16 = tail call { i64, i32 } @mrb_nil_value()
  br label %46

17:                                               ; preds = %12
  %18 = tail call ptr @mrb_class_name(ptr noundef %0, ptr noundef nonnull %8) #4
  %19 = tail call { i64, i32 } @mrb_str_new_capa(ptr noundef %0, i64 noundef 40) #4
  %20 = extractvalue { i64, i32 } %19, 0
  %21 = extractvalue { i64, i32 } %19, 1
  %22 = tail call { i64, i32 } @mrb_str_cat_cstr(ptr noundef %0, i64 %20, i32 %21, ptr noundef %18) #4
  %23 = tail call { i64, i32 } @mrb_str_cat_cstr(ptr noundef %0, i64 %20, i32 %21, ptr noundef nonnull @.str.11) #4
  %24 = call ptr @mrb_sym2name_len(ptr noundef %0, i32 noundef %13, ptr noundef nonnull %3) #4
  %25 = load i64, ptr %3, align 8, !tbaa !5
  %26 = call { i64, i32 } @mrb_str_cat(ptr noundef %0, i64 %20, i32 %21, ptr noundef %24, i64 noundef %25) #4
  %.sroa.08.0..sroa.08.0..cast = inttoptr i64 %20 to ptr
  %27 = load i32, ptr %.sroa.08.0..sroa.08.0..cast, align 8
  %28 = and i32 %27, 65536
  %.not49 = icmp eq i32 %28, 0
  br i1 %.not49, label %31, label %29

29:                                               ; preds = %17
  %30 = getelementptr inbounds i8, ptr %.sroa.08.0..sroa.08.0..cast, i64 24
  br label %34

31:                                               ; preds = %17
  %32 = getelementptr inbounds i8, ptr %.sroa.08.0..sroa.08.0..cast, i64 40
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %31, %29
  %35 = phi ptr [ %30, %29 ], [ %33, %31 ]
  %36 = load i8, ptr %35, align 1, !tbaa !9
  %.not50 = icmp eq i8 %36, 35
  br i1 %.not50, label %46, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %1, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !10
  %40 = call i32 @mrb_intern_static(ptr noundef %0, ptr noundef nonnull @.str.12, i64 noundef 9) #4
  %41 = call zeroext i8 @iv_del(ptr noundef %0, ptr noundef %39, i32 noundef %40, ptr noundef null)
  %42 = load ptr, ptr %38, align 8, !tbaa !10
  %43 = call i32 @mrb_intern_static(ptr noundef %0, ptr noundef nonnull @.str.13, i64 noundef 13) #4
  call void @iv_put(ptr noundef %0, ptr noundef %42, i32 noundef %43, i64 %20, i32 %21)
  %44 = icmp ult i32 %21, 8
  br i1 %44, label %46, label %45

45:                                               ; preds = %37
  call void @mrb_field_write_barrier(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %.sroa.08.0..sroa.08.0..cast) #4
  br label %46

46:                                               ; preds = %34, %45, %37, %15, %10, %5
  %.fca.1.insert.merged = phi { i64, i32 } [ %6, %5 ], [ %11, %10 ], [ %16, %15 ], [ %19, %37 ], [ %19, %45 ], [ %19, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret { i64, i32 } %.fca.1.insert.merged
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @detect_outer_loop(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @outer_class(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @find_class_sym(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mrb_class_name(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @mrb_field_write_barrier(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !13, i64 24}
!11 = !{!"RClass", !12, i64 0, !12, i64 1, !12, i64 1, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!12 = !{!"int", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass