; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx/scfx_rep.ll (ZN5sc_dt8scfx_rep5roundEi)

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

%"class.sc_dt::scfx_index" = type { i32, i32 }
%"class.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep5roundEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.sc_dt::scfx_index", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %12 = load ptr, ptr %3, align 8
  %13 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %12)
  br i1 %13, label %18, label %14

14:                                               ; preds = %2
  %15 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %12)
  br i1 %15, label %18, label %16

16:                                               ; preds = %14
  %17 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %12)
  br i1 %17, label %18, label %19

18:                                               ; preds = %16, %14, %2
  br label %99

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %20 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 4
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %24 = sub nsw i32 %21, %23
  %25 = add nsw i32 %24, 1
  %26 = mul nsw i32 %25, 32
  store i32 %26, ptr %5, align 4, !tbaa !9
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %19
  store i32 1, ptr %6, align 4
  br label %97

31:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %32 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 0
  %33 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 4
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %32, i32 noundef %34)
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %37)
  store i32 %38, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %39 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 0
  %40 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 5
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %39, i32 noundef %41)
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef %44)
  store i32 %45, ptr %8, align 4, !tbaa !9
  %46 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 4
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = mul nsw i32 %47, 32
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = add nsw i32 %48, %49
  %51 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 5
  %52 = load i32, ptr %51, align 8, !tbaa !16
  %53 = mul nsw i32 %52, 32
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = add nsw i32 %53, %54
  %56 = sub nsw i32 %50, %55
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %5, align 4, !tbaa !9
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = load i32, ptr %4, align 4, !tbaa !9
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %31
  store i32 1, ptr %6, align 4
  br label %96

62:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %63 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 4
  %64 = load i32, ptr %63, align 4, !tbaa !11
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 1
  %67 = sdiv i32 %66, 32
  %68 = sub nsw i32 %64, %67
  store i32 %68, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = sub nsw i32 %70, 1
  %72 = srem i32 %71, 32
  %73 = sub nsw i32 %69, %72
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %62
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = add nsw i32 %79, 32
  store i32 %80, ptr %10, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %76, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN5sc_dt10scfx_indexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %82, i32 noundef %83)
  %84 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br i1 %86, label %87, label %93

87:                                               ; preds = %85, %81
  %88 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br i1 %88, label %89, label %94

89:                                               ; preds = %87
  %90 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br i1 %90, label %91, label %94

91:                                               ; preds = %89
  %92 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_oddERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br i1 %92, label %93, label %94

93:                                               ; preds = %91, %85
  call void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br label %94

94:                                               ; preds = %93, %91, %89, %87
  call void @_ZN5sc_dt8scfx_rep7q_clearERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %12)
  %95 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %12, i32 0, i32 6
  store i8 1, ptr %95, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  store i32 0, ptr %6, align 4
  br label %96

96:                                               ; preds = %94, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %97

97:                                               ; preds = %96, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %98 = load i32, ptr %6, align 4
  switch i32 %98, label %100 [
    i32 0, label %99
    i32 1, label %99
  ]

99:                                               ; preds = %97, %97, %18
  ret void

100:                                              ; preds = %97
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_oddERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7q_clearERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt10scfx_indexC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

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

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"_ZTSN5sc_dt8scfx_repE", !13, i64 0, !10, i64 16, !10, i64 20, !14, i64 24, !10, i64 28, !10, i64 32, !15, i64 36}
!13 = !{!"_ZTSN5sc_dt9scfx_mantE", !6, i64 0, !10, i64 8}
!14 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !15, i64 36}


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

%"class.sc_dt::scfx_index" = type { i32, i32 }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep5roundEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"class.sc_dt::scfx_index", align 4
  %4 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %4, label %50, label %5

5:                                                ; preds = %2
  %6 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %6, label %50, label %7

7:                                                ; preds = %5
  %8 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %8, label %50, label %9

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load i32, ptr %12, align 8, !tbaa !14
  %14 = sub nsw i32 %11, %13
  %15 = shl i32 %14, 5
  %16 = add i32 %15, 32
  %.not = icmp sgt i32 %16, %1
  br i1 %.not, label %17, label %50

17:                                               ; preds = %9
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %11)
  %19 = load i32, ptr %18, align 4, !tbaa !15
  %20 = zext i32 %19 to i64
  %21 = tail call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %20)
  %22 = load i32, ptr %12, align 8, !tbaa !14
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %22)
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = zext i32 %24 to i64
  %26 = tail call noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef %25)
  %27 = load i32, ptr %10, align 4, !tbaa !5
  %28 = load i32, ptr %12, align 8, !tbaa !14
  %reass.add = sub i32 %27, %28
  %reass.mul = shl i32 %reass.add, 5
  %29 = sub i32 %21, %26
  %30 = add i32 %29, %reass.mul
  %.not17.not = icmp slt i32 %30, %1
  br i1 %.not17.not, label %50, label %31

31:                                               ; preds = %17
  %32 = add nsw i32 %1, -1
  %.neg = sdiv i32 %32, -32
  %33 = srem i32 %32, 32
  %34 = sub nsw i32 %21, %33
  %.lobit = ashr i32 %34, 31
  %35 = add nsw i32 %.lobit, %.neg
  %.014 = add i32 %35, %27
  %36 = lshr i32 %34, 26
  %37 = and i32 %36, 32
  %.0 = add i32 %37, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN5sc_dt10scfx_indexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %.014, i32 noundef %.0)
  %38 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %38, label %39, label %41

39:                                               ; preds = %31
  %40 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %40, label %41, label %47

41:                                               ; preds = %39, %31
  %42 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %42, label %43, label %48

43:                                               ; preds = %41
  %44 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %44, label %45, label %48

45:                                               ; preds = %43
  %46 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_oddERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %46, label %47, label %48

47:                                               ; preds = %45, %39
  call void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br label %48

48:                                               ; preds = %47, %45, %43, %41
  call void @_ZN5sc_dt8scfx_rep7q_clearERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %49 = getelementptr inbounds i8, ptr %0, i64 36
  store i8 1, ptr %49, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %50

50:                                               ; preds = %9, %17, %48, %2, %5, %7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_bitERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6q_zeroERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep5q_oddERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7q_clearERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt10scfx_indexC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

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

!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, !11, i64 28}
!6 = !{!"_ZTSN5sc_dt8scfx_repE", !7, i64 0, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 28, !11, i64 32, !13, i64 36}
!7 = !{!"_ZTSN5sc_dt9scfx_mantE", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!6, !11, i64 32}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !13, i64 36}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass