; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (io_r)

; 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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@.str.236 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [55 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 void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

declare void @qh_errexit(ptr noundef, i32 noundef, ptr 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 willreturn memory(none)
declare ptr @__ctype_b_loc() #2

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_skipfilename(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %7, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  br label %8

8:                                                ; preds = %27, %2
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = load i8, ptr %9, align 1, !tbaa !9
  %11 = sext i8 %10 to i32
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %25

13:                                               ; preds = %8
  %14 = call ptr @__ctype_b_loc() #5
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = sext i8 %17 to i32
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i16, ptr %15, i64 %19
  %21 = load i16, ptr %20, align 2, !tbaa !10
  %22 = zext i16 %21 to i32
  %23 = and i32 %22, 8192
  %24 = icmp ne i32 %23, 0
  br label %25

25:                                               ; preds = %13, %8
  %26 = phi i1 [ false, %8 ], [ %24, %13 ]
  br i1 %26, label %27, label %30

27:                                               ; preds = %25
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i32 1
  store ptr %29, ptr %5, align 8, !tbaa !5
  br label %8, !llvm.loop !12

30:                                               ; preds = %25
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i32 1
  store ptr %32, ptr %5, align 8, !tbaa !5
  %33 = load i8, ptr %31, align 1, !tbaa !9
  store i8 %33, ptr %6, align 1, !tbaa !9
  %34 = load i8, ptr %6, align 1, !tbaa !9
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %30
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 158
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %38, ptr noundef %41, i32 noundef 6204, ptr noundef @.str.236)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %42, i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %43

43:                                               ; preds = %37, %30
  %44 = load i8, ptr %6, align 1, !tbaa !9
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 39
  br i1 %46, label %51, label %47

47:                                               ; preds = %43
  %48 = load i8, ptr %6, align 1, !tbaa !9
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 34
  br i1 %50, label %51, label %84

51:                                               ; preds = %47, %43
  br label %52

52:                                               ; preds = %78, %51
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = sext i8 %54 to i32
  %56 = load i8, ptr %6, align 1, !tbaa !9
  %57 = sext i8 %56 to i32
  %58 = icmp ne i32 %55, %57
  br i1 %58, label %65, label %59

59:                                               ; preds = %52
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 -1
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 92
  br label %65

65:                                               ; preds = %59, %52
  %66 = phi i1 [ true, %52 ], [ %64, %59 ]
  br i1 %66, label %67, label %81

67:                                               ; preds = %65
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load i8, ptr %68, align 1, !tbaa !9
  %70 = icmp ne i8 %69, 0
  br i1 %70, label %78, label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.qhT, ptr %73, i32 0, i32 158
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %72, ptr noundef %75, i32 noundef 6203, ptr noundef @.str.237, ptr noundef %76)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %77, i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %78

78:                                               ; preds = %71, %67
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i32 1
  store ptr %80, ptr %5, align 8, !tbaa !5
  br label %52, !llvm.loop !21

81:                                               ; preds = %65
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i32 1
  store ptr %83, ptr %5, align 8, !tbaa !5
  br label %109

84:                                               ; preds = %47
  br label %85

85:                                               ; preds = %105, %84
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = sext i8 %87 to i32
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %103

90:                                               ; preds = %85
  %91 = call ptr @__ctype_b_loc() #5
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load i8, ptr %93, align 1, !tbaa !9
  %95 = sext i8 %94 to i32
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i16, ptr %92, i64 %96
  %98 = load i16, ptr %97, align 2, !tbaa !10
  %99 = zext i16 %98 to i32
  %100 = and i32 %99, 8192
  %101 = icmp ne i32 %100, 0
  %102 = xor i1 %101, true
  br label %103

103:                                              ; preds = %90, %85
  %104 = phi i1 [ false, %85 ], [ %102, %90 ]
  br i1 %104, label %105, label %108

105:                                              ; preds = %103
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i32 1
  store ptr %107, ptr %5, align 8, !tbaa !5
  br label %85, !llvm.loop !22

108:                                              ; preds = %103
  br label %109

109:                                              ; preds = %108, %81
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %110
}

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 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 #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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 2424}
!15 = !{!"qhT", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !17, i64 24, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !17, i64 64, !17, i64 72, !16, i64 80, !16, i64 84, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !6, i64 104, !16, i64 112, !16, i64 116, !6, i64 120, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !16, i64 144, !16, i64 148, !16, i64 152, !17, i64 160, !17, i64 168, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !17, i64 192, !17, i64 200, !16, i64 208, !16, i64 212, !17, i64 216, !16, i64 224, !16, i64 228, !16, i64 232, !16, i64 236, !16, i64 240, !16, i64 244, !16, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !16, i64 268, !16, i64 272, !16, i64 276, !16, i64 280, !16, i64 284, !16, i64 288, !16, i64 292, !16, i64 296, !7, i64 300, !16, i64 416, !16, i64 420, !16, i64 424, !16, i64 428, !16, i64 432, !16, i64 436, !16, i64 440, !16, i64 444, !17, i64 448, !17, i64 456, !17, i64 464, !16, i64 472, !16, i64 476, !16, i64 480, !16, i64 484, !16, i64 488, !16, i64 492, !16, i64 496, !16, i64 500, !16, i64 504, !16, i64 508, !16, i64 512, !16, i64 516, !16, i64 520, !16, i64 524, !16, i64 528, !16, i64 532, !16, i64 536, !16, i64 540, !16, i64 544, !17, i64 552, !16, i64 560, !16, i64 564, !16, i64 568, !16, i64 572, !16, i64 576, !16, i64 580, !16, i64 584, !16, i64 588, !17, i64 592, !16, i64 600, !6, i64 608, !6, i64 616, !16, i64 624, !16, i64 628, !16, i64 632, !16, i64 636, !16, i64 640, !6, i64 648, !16, i64 656, !6, i64 664, !16, i64 672, !7, i64 676, !16, i64 932, !7, i64 936, !7, i64 1192, !16, i64 1704, !16, i64 1708, !16, i64 1712, !16, i64 1716, !16, i64 1720, !16, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !17, i64 1760, !17, i64 1768, !17, i64 1776, !17, i64 1784, !17, i64 1792, !17, i64 1800, !17, i64 1808, !17, i64 1816, !17, i64 1824, !17, i64 1832, !17, i64 1840, !17, i64 1848, !17, i64 1856, !17, i64 1864, !6, i64 1872, !17, i64 1880, !17, i64 1888, !17, i64 1896, !17, i64 1904, !16, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !16, i64 2440, !16, i64 2444, !16, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !16, i64 2496, !16, i64 2500, !6, i64 2504, !16, i64 2512, !6, i64 2520, !16, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !16, i64 2568, !16, i64 2572, !16, i64 2576, !16, i64 2580, !16, i64 2584, !16, i64 2588, !16, i64 2592, !16, i64 2596, !18, i64 2600, !16, i64 2608, !16, i64 2612, !16, i64 2616, !16, i64 2620, !16, i64 2624, !6, i64 2632, !6, i64 2640, !16, i64 2648, !16, i64 2652, !16, i64 2656, !17, i64 2664, !16, i64 2672, !17, i64 2680, !17, i64 2688, !17, i64 2696, !16, i64 2704, !16, i64 2708, !16, i64 2712, !16, i64 2716, !16, i64 2720, !17, i64 2728, !17, i64 2736, !16, i64 2744, !16, i64 2748, !16, i64 2752, !16, i64 2756, !16, i64 2760, !16, i64 2764, !17, i64 2768, !17, i64 2776, !16, i64 2784, !16, i64 2788, !16, i64 2792, !16, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !16, i64 2872, !6, i64 2880, !6, i64 2888, !16, i64 2896, !16, i64 2900, !16, i64 2904, !6, i64 2912, !17, i64 2920, !17, i64 2928, !17, i64 2936, !17, i64 2944, !16, i64 2952, !16, i64 2956, !16, i64 2960, !16, i64 2964, !16, i64 2968, !16, i64 2972, !6, i64 2976, !16, i64 2984, !16, i64 2988, !7, i64 2992, !7, i64 3192, !16, i64 3232, !17, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !19, i64 3272, !20, i64 3424}
!16 = !{!"int", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"qhmemT", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !16, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !16, i64 144}
!20 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !16, i64 5320, !16, i64 5324, !16, i64 5328, !16, i64 5332, !17, i64 5336}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


; 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.236 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [55 x i8], align 1

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare void @qh_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local nonnull ptr @qh_skipfilename(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = load i8, ptr %1, align 1, !tbaa !5
  %.not40 = icmp eq i8 %3, 0
  br i1 %.not40, label %.critedge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %4 = tail call ptr @__ctype_b_loc() #3
  %5 = load ptr, ptr %4, align 8, !tbaa !8
  br label %12

.critedge.thread:                                 ; preds = %19, %2
  %.0.lcssa = phi ptr [ %1, %2 ], [ %18, %19 ]
  %6 = getelementptr inbounds i8, ptr %.0.lcssa, i64 1
  %7 = getelementptr inbounds i8, ptr %0, i64 2424
  %8 = load ptr, ptr %7, align 8, !tbaa !10
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %8, i32 noundef 6204, ptr noundef nonnull @.str.236) #4
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 1, ptr noundef null, ptr noundef null) #4
  br label %.preheader

.preheader:                                       ; preds = %.critedge, %.critedge.thread
  %.2.ph = phi ptr [ %18, %.critedge ], [ %6, %.critedge.thread ]
  %9 = load i8, ptr %.2.ph, align 1, !tbaa !5
  %.not3342 = icmp eq i8 %9, 0
  br i1 %.not3342, label %.critedge6, label %.lr.ph44

.lr.ph44:                                         ; preds = %.preheader
  %10 = tail call ptr @__ctype_b_loc() #3
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  br label %34

12:                                               ; preds = %.lr.ph, %19
  %13 = phi i8 [ %3, %.lr.ph ], [ %20, %19 ]
  %.041 = phi ptr [ %1, %.lr.ph ], [ %18, %19 ]
  %14 = sext i8 %13 to i64
  %15 = getelementptr inbounds i16, ptr %5, i64 %14
  %16 = load i16, ptr %15, align 2, !tbaa !17
  %17 = and i16 %16, 8192
  %.not32 = icmp eq i16 %17, 0
  %18 = getelementptr inbounds i8, ptr %.041, i64 1
  br i1 %.not32, label %.critedge, label %19

19:                                               ; preds = %12
  %20 = load i8, ptr %18, align 1, !tbaa !5
  %.not = icmp eq i8 %20, 0
  br i1 %.not, label %.critedge.thread, label %12, !llvm.loop !19

.critedge:                                        ; preds = %12
  switch i8 %13, label %.preheader [
    i8 34, label %.preheader37
    i8 39, label %.preheader37
  ]

.preheader37:                                     ; preds = %.critedge, %.critedge
  %21 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %22

22:                                               ; preds = %.preheader37, %30
  %.1 = phi ptr [ %31, %30 ], [ %18, %.preheader37 ]
  %23 = load i8, ptr %.1, align 1, !tbaa !5
  %.not35 = icmp eq i8 %23, %13
  br i1 %.not35, label %24, label %.critedge4

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %.1, i64 -1
  %26 = load i8, ptr %25, align 1, !tbaa !5
  %27 = icmp eq i8 %26, 92
  br i1 %27, label %.critedge4, label %32

.critedge4:                                       ; preds = %22, %24
  %.not36 = icmp eq i8 %23, 0
  br i1 %.not36, label %28, label %30

28:                                               ; preds = %.critedge4
  %29 = load ptr, ptr %21, align 8, !tbaa !10
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %29, i32 noundef 6203, ptr noundef nonnull @.str.237, ptr noundef nonnull %1) #4
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 1, ptr noundef null, ptr noundef null) #4
  br label %30

30:                                               ; preds = %28, %.critedge4
  %31 = getelementptr inbounds i8, ptr %.1, i64 1
  br label %22, !llvm.loop !21

32:                                               ; preds = %24
  %33 = getelementptr inbounds i8, ptr %.1, i64 1
  br label %.critedge6

34:                                               ; preds = %.lr.ph44, %40
  %35 = phi i8 [ %9, %.lr.ph44 ], [ %42, %40 ]
  %.243 = phi ptr [ %.2.ph, %.lr.ph44 ], [ %41, %40 ]
  %36 = sext i8 %35 to i64
  %37 = getelementptr inbounds i16, ptr %11, i64 %36
  %38 = load i16, ptr %37, align 2, !tbaa !17
  %39 = and i16 %38, 8192
  %.not34 = icmp eq i16 %39, 0
  br i1 %.not34, label %40, label %.critedge6

40:                                               ; preds = %34
  %41 = getelementptr inbounds i8, ptr %.243, i64 1
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %.not33 = icmp eq i8 %42, 0
  br i1 %.not33, label %.critedge6, label %34, !llvm.loop !22

.critedge6:                                       ; preds = %40, %34, %.preheader, %32
  %.3 = phi ptr [ %33, %32 ], [ %.2.ph, %.preheader ], [ %41, %40 ], [ %.243, %34 ]
  ret ptr %.3
}

attributes #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 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 #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 = { nounwind willreturn memory(none) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !9, i64 2424}
!11 = !{!"qhT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !13, i64 64, !13, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !9, i64 104, !12, i64 112, !12, i64 116, !9, i64 120, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !13, i64 160, !13, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !13, i64 192, !13, i64 200, !12, i64 208, !12, i64 212, !13, i64 216, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !6, i64 300, !12, i64 416, !12, i64 420, !12, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !12, i64 520, !12, i64 524, !12, i64 528, !12, i64 532, !12, i64 536, !12, i64 540, !12, i64 544, !13, i64 552, !12, i64 560, !12, i64 564, !12, i64 568, !12, i64 572, !12, i64 576, !12, i64 580, !12, i64 584, !12, i64 588, !13, i64 592, !12, i64 600, !9, i64 608, !9, i64 616, !12, i64 624, !12, i64 628, !12, i64 632, !12, i64 636, !12, i64 640, !9, i64 648, !12, i64 656, !9, i64 664, !12, i64 672, !6, i64 676, !12, i64 932, !6, i64 936, !6, i64 1192, !12, i64 1704, !12, i64 1708, !12, i64 1712, !12, i64 1716, !12, i64 1720, !12, i64 1724, !9, i64 1728, !9, i64 1736, !9, i64 1744, !9, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !9, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !12, i64 1912, !6, i64 1916, !6, i64 1928, !6, i64 2128, !6, i64 2168, !6, i64 2368, !9, i64 2408, !9, i64 2416, !9, i64 2424, !9, i64 2432, !12, i64 2440, !12, i64 2444, !12, i64 2448, !9, i64 2456, !9, i64 2464, !9, i64 2472, !9, i64 2480, !9, i64 2488, !12, i64 2496, !12, i64 2500, !9, i64 2504, !12, i64 2512, !9, i64 2520, !12, i64 2528, !9, i64 2536, !9, i64 2544, !9, i64 2552, !9, i64 2560, !12, i64 2568, !12, i64 2572, !12, i64 2576, !12, i64 2580, !12, i64 2584, !12, i64 2588, !12, i64 2592, !12, i64 2596, !14, i64 2600, !12, i64 2608, !12, i64 2612, !12, i64 2616, !12, i64 2620, !12, i64 2624, !9, i64 2632, !9, i64 2640, !12, i64 2648, !12, i64 2652, !12, i64 2656, !13, i64 2664, !12, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !12, i64 2704, !12, i64 2708, !12, i64 2712, !12, i64 2716, !12, i64 2720, !13, i64 2728, !13, i64 2736, !12, i64 2744, !12, i64 2748, !12, i64 2752, !12, i64 2756, !12, i64 2760, !12, i64 2764, !13, i64 2768, !13, i64 2776, !12, i64 2784, !12, i64 2788, !12, i64 2792, !12, i64 2796, !9, i64 2800, !9, i64 2808, !9, i64 2816, !9, i64 2824, !9, i64 2832, !9, i64 2840, !9, i64 2848, !9, i64 2856, !9, i64 2864, !12, i64 2872, !9, i64 2880, !9, i64 2888, !12, i64 2896, !12, i64 2900, !12, i64 2904, !9, i64 2912, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !12, i64 2952, !12, i64 2956, !12, i64 2960, !12, i64 2964, !12, i64 2968, !12, i64 2972, !9, i64 2976, !12, i64 2984, !12, i64 2988, !6, i64 2992, !6, i64 3192, !12, i64 3232, !13, i64 3240, !9, i64 3248, !9, i64 3256, !9, i64 3264, !15, i64 3272, !16, i64 3424}
!12 = !{!"int", !6, i64 0}
!13 = !{!"double", !6, i64 0}
!14 = !{!"long", !6, i64 0}
!15 = !{!"qhmemT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !12, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144}
!16 = !{!"qhstatT", !6, i64 0, !6, i64 1992, !6, i64 2256, !6, i64 4248, !6, i64 4746, !6, i64 4995, !6, i64 5248, !12, i64 5320, !12, i64 5324, !12, i64 5328, !12, i64 5332, !13, i64 5336}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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