; LLVM IR from Derek-TH-Wang/quadruped_ctrl :: src/osqp/lin_sys (lib_handler)

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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@__FUNCTION__.lh_load_sym = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind
declare ptr @dlerror() #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
define dso_local ptr @lh_load_sym(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [257 x i8], align 16
  %12 = alloca [257 x i8], align 16
  %13 = alloca [257 x i8], align 16
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = 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 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 257, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 257, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 257, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  store ptr null, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %21

21:                                               ; preds = %129, %2
  %22 = load i32, ptr %15, align 4, !tbaa !11
  %23 = icmp sle i32 %22, 6
  br i1 %23, label %24, label %132

24:                                               ; preds = %21
  %25 = load i32, ptr %15, align 4, !tbaa !11
  switch i32 %25, label %111 [
    i32 1, label %26
    i32 2, label %28
    i32 3, label %63
    i32 4, label %93
    i32 5, label %103
    i32 6, label %107
  ]

26:                                               ; preds = %24
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, ptr %9, align 8, !tbaa !5
  br label %113

28:                                               ; preds = %24
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %29, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds [257 x i8], ptr %11, i64 0, i64 0
  store ptr %30, ptr %8, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %48, %28
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %35, label %53

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %36 = call ptr @__ctype_tolower_loc() #7
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load i8, ptr %38, align 1, !tbaa !13
  %40 = sext i8 %39 to i32
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %37, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %43, ptr %16, align 4, !tbaa !11
  %44 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %44, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %45 = load i32, ptr %17, align 4, !tbaa !11
  %46 = trunc i32 %45 to i8
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 %46, ptr %47, align 1, !tbaa !13
  br label %48

48:                                               ; preds = %35
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i32 1
  store ptr %50, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i32 1
  store ptr %52, ptr %8, align 8, !tbaa !5
  br label %31, !llvm.loop !14

53:                                               ; preds = %31
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = ptrtoint ptr %54 to i64
  %57 = ptrtoint ptr %55 to i64
  %58 = sub i64 %56, %57
  store i64 %58, ptr %14, align 8, !tbaa !9
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i32 1
  store ptr %60, ptr %8, align 8, !tbaa !5
  store i8 95, ptr %59, align 1, !tbaa !13
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %61, align 1, !tbaa !13
  %62 = getelementptr inbounds [257 x i8], ptr %11, i64 0, i64 0
  store ptr %62, ptr %9, align 8, !tbaa !5
  br label %113

63:                                               ; preds = %24
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %64, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds [257 x i8], ptr %12, i64 0, i64 0
  store ptr %65, ptr %8, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %83, %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i8, ptr %67, align 1, !tbaa !13
  %69 = icmp ne i8 %68, 0
  br i1 %69, label %70, label %88

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %71 = call ptr @__ctype_toupper_loc() #7
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i8, ptr %73, align 1, !tbaa !13
  %75 = sext i8 %74 to i32
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %72, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !11
  store i32 %78, ptr %18, align 4, !tbaa !11
  %79 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %79, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %80 = load i32, ptr %19, align 4, !tbaa !11
  %81 = trunc i32 %80 to i8
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 %81, ptr %82, align 1, !tbaa !13
  br label %83

83:                                               ; preds = %70
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i32 1
  store ptr %85, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %8, align 8, !tbaa !5
  br label %66, !llvm.loop !16

88:                                               ; preds = %66
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i32 1
  store ptr %90, ptr %8, align 8, !tbaa !5
  store i8 95, ptr %89, align 1, !tbaa !13
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %91, align 1, !tbaa !13
  %92 = getelementptr inbounds [257 x i8], ptr %12, i64 0, i64 0
  store ptr %92, ptr %9, align 8, !tbaa !5
  br label %113

93:                                               ; preds = %24
  %94 = getelementptr inbounds [257 x i8], ptr %13, i64 0, i64 0
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i64, ptr %14, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %94, ptr align 1 %95, i64 %96, i1 false)
  %97 = load i64, ptr %14, align 8, !tbaa !9
  %98 = getelementptr inbounds [257 x i8], ptr %13, i64 0, i64 %97
  store i8 95, ptr %98, align 1, !tbaa !13
  %99 = load i64, ptr %14, align 8, !tbaa !9
  %100 = add i64 %99, 1
  %101 = getelementptr inbounds [257 x i8], ptr %13, i64 0, i64 %100
  store i8 0, ptr %101, align 1, !tbaa !13
  %102 = getelementptr inbounds [257 x i8], ptr %13, i64 0, i64 0
  store ptr %102, ptr %9, align 8, !tbaa !5
  br label %113

103:                                              ; preds = %24
  %104 = load i64, ptr %14, align 8, !tbaa !9
  %105 = getelementptr inbounds [257 x i8], ptr %11, i64 0, i64 %104
  store i8 0, ptr %105, align 1, !tbaa !13
  %106 = getelementptr inbounds [257 x i8], ptr %11, i64 0, i64 0
  store ptr %106, ptr %9, align 8, !tbaa !5
  br label %113

107:                                              ; preds = %24
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = getelementptr inbounds [257 x i8], ptr %12, i64 0, i64 %108
  store i8 0, ptr %109, align 1, !tbaa !13
  %110 = getelementptr inbounds [257 x i8], ptr %12, i64 0, i64 0
  store ptr %110, ptr %9, align 8, !tbaa !5
  br label %113

111:                                              ; preds = %24
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %112, ptr %9, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %111, %107, %103, %93, %88, %53, %26
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = call ptr @dlsym(ptr noundef %114, ptr noundef %115) #6
  store ptr %116, ptr %6, align 8, !tbaa !5
  %117 = call ptr @dlerror() #6
  store ptr %117, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %126

120:                                              ; preds = %113
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @__FUNCTION__.lh_load_sym)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %122, ptr noundef %123)
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %128

126:                                              ; preds = %113
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %127, ptr %3, align 8
  store i32 1, ptr %20, align 4
  br label %133

128:                                              ; preds = %120
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %15, align 4, !tbaa !11
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %15, align 4, !tbaa !11
  br label %21, !llvm.loop !17

132:                                              ; preds = %21
  store ptr null, ptr %3, align 8
  store i32 1, ptr %20, align 4
  br label %133

133:                                              ; preds = %132, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 257, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 257, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 257, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %134 = load ptr, ptr %3, align 8
  ret ptr %134
}

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() #4

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

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) #2

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 "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 willreturn memory(none) "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 nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


; 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 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@__FUNCTION__.lh_load_sym = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @dlerror() 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) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @lh_load_sym(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [257 x i8], align 16
  %4 = alloca [257 x i8], align 16
  %5 = alloca [257 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 257, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 257, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 257, ptr nonnull %5) #6
  %6 = ptrtoint ptr %1 to i64
  br label %7

7:                                                ; preds = %2, %46
  %.04263 = phi i32 [ 1, %2 ], [ %50, %46 ]
  %.04362 = phi i64 [ 0, %2 ], [ %.144, %46 ]
  switch i32 %.04263, label %43 [
    i32 6, label %41
    i32 2, label %.preheader
    i32 3, label %.preheader51
    i32 4, label %35
    i32 5, label %39
  ]

.preheader51:                                     ; preds = %7
  %8 = load i8, ptr %1, align 1, !tbaa !5
  %.not52 = icmp eq i8 %8, 0
  br i1 %.not52, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader51
  %9 = tail call ptr @__ctype_toupper_loc() #7
  br label %24

.preheader:                                       ; preds = %7
  %10 = load i8, ptr %1, align 1, !tbaa !5
  %.not4955 = icmp eq i8 %10, 0
  br i1 %.not4955, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %.preheader
  %11 = tail call ptr @__ctype_tolower_loc() #7
  br label %12

12:                                               ; preds = %.lr.ph58, %12
  %13 = phi i8 [ %10, %.lr.ph58 ], [ %21, %12 ]
  %.03957 = phi ptr [ %1, %.lr.ph58 ], [ %19, %12 ]
  %.04056 = phi ptr [ %3, %.lr.ph58 ], [ %20, %12 ]
  %14 = load ptr, ptr %11, align 8, !tbaa !8
  %15 = sext i8 %13 to i64
  %16 = getelementptr inbounds i32, ptr %14, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !10
  %18 = trunc i32 %17 to i8
  store i8 %18, ptr %.04056, align 1, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %.03957, i64 1
  %20 = getelementptr inbounds i8, ptr %.04056, i64 1
  %21 = load i8, ptr %19, align 1, !tbaa !5
  %.not49 = icmp eq i8 %21, 0
  br i1 %.not49, label %._crit_edge59.loopexit, label %12, !llvm.loop !12

._crit_edge59.loopexit:                           ; preds = %12
  %.pre = ptrtoint ptr %19 to i64
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %._crit_edge59.loopexit, %.preheader
  %.pre-phi = phi i64 [ %.pre, %._crit_edge59.loopexit ], [ %6, %.preheader ]
  %.040.lcssa = phi ptr [ %20, %._crit_edge59.loopexit ], [ %3, %.preheader ]
  %22 = sub i64 %.pre-phi, %6
  %23 = getelementptr inbounds i8, ptr %.040.lcssa, i64 1
  store i8 95, ptr %.040.lcssa, align 1, !tbaa !5
  br label %.sink.split

24:                                               ; preds = %.lr.ph, %24
  %25 = phi i8 [ %8, %.lr.ph ], [ %33, %24 ]
  %.154 = phi ptr [ %1, %.lr.ph ], [ %31, %24 ]
  %.14153 = phi ptr [ %4, %.lr.ph ], [ %32, %24 ]
  %26 = load ptr, ptr %9, align 8, !tbaa !8
  %27 = sext i8 %25 to i64
  %28 = getelementptr inbounds i32, ptr %26, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !10
  %30 = trunc i32 %29 to i8
  store i8 %30, ptr %.14153, align 1, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %.154, i64 1
  %32 = getelementptr inbounds i8, ptr %.14153, i64 1
  %33 = load i8, ptr %31, align 1, !tbaa !5
  %.not = icmp eq i8 %33, 0
  br i1 %.not, label %._crit_edge, label %24, !llvm.loop !14

._crit_edge:                                      ; preds = %24, %.preheader51
  %.141.lcssa = phi ptr [ %4, %.preheader51 ], [ %32, %24 ]
  %34 = getelementptr inbounds i8, ptr %.141.lcssa, i64 1
  store i8 95, ptr %.141.lcssa, align 1, !tbaa !5
  br label %.sink.split

35:                                               ; preds = %7
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %5, ptr align 1 %1, i64 %.04362, i1 false)
  %36 = getelementptr inbounds [257 x i8], ptr %5, i64 0, i64 %.04362
  store i8 95, ptr %36, align 1, !tbaa !5
  %37 = add i64 %.04362, 1
  %38 = getelementptr inbounds [257 x i8], ptr %5, i64 0, i64 %37
  br label %.sink.split

39:                                               ; preds = %7
  %40 = getelementptr inbounds [257 x i8], ptr %3, i64 0, i64 %.04362
  br label %.sink.split

41:                                               ; preds = %7
  %42 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 %.04362
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge59, %._crit_edge, %35, %39, %41
  %.sink = phi ptr [ %42, %41 ], [ %40, %39 ], [ %38, %35 ], [ %34, %._crit_edge ], [ %23, %._crit_edge59 ]
  %.045.ph = phi ptr [ %4, %41 ], [ %3, %39 ], [ %5, %35 ], [ %4, %._crit_edge ], [ %3, %._crit_edge59 ]
  %.144.ph = phi i64 [ %.04362, %41 ], [ %.04362, %39 ], [ %.04362, %35 ], [ %.04362, %._crit_edge ], [ %22, %._crit_edge59 ]
  store i8 0, ptr %.sink, align 1, !tbaa !5
  br label %43

43:                                               ; preds = %.sink.split, %7
  %.045 = phi ptr [ %1, %7 ], [ %.045.ph, %.sink.split ]
  %.144 = phi i64 [ %.04362, %7 ], [ %.144.ph, %.sink.split ]
  %44 = call ptr @dlsym(ptr noundef %0, ptr noundef %.045) #6
  %45 = call ptr @dlerror() #6
  %.not50 = icmp eq ptr %45, null
  br i1 %.not50, label %51, label %46

46:                                               ; preds = %43
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @__FUNCTION__.lh_load_sym)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %1, ptr noundef nonnull %45)
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %50 = add nuw nsw i32 %.04263, 1
  %exitcond.not = icmp eq i32 %50, 7
  br i1 %exitcond.not, label %51, label %7, !llvm.loop !15

51:                                               ; preds = %46, %43
  %.0 = phi ptr [ %44, %43 ], [ null, %46 ]
  call void @llvm.lifetime.end.p0(i64 257, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 257, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 257, ptr nonnull %3) #6
  ret ptr %.0
}

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #4

; Function Attrs: mustprogress 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) #5

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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


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