; LLVM IR from sp-nitech/SPTK :: src/input (input_source_interpolation)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::InputSourceInterpolation" = type { %"class.sptk::InputSourceInterface", i32, i32, i32, i8, i32, i32, i32, ptr, i8, %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.sptk::InputSourceInterface" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN4sptk24InputSourceInterpolationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk24InputSourceInterpolationC2EiibPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  %17 = zext i1 %3 to i8
  store i8 %17, ptr %9, align 1, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk24InputSourceInterpolationE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !13
  %19 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %20, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 2
  %22 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %22, ptr %21, align 4, !tbaa !22
  %23 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 3
  %24 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 2
  %25 = load i32, ptr %24, align 4, !tbaa !22
  %26 = sdiv i32 %25, 2
  store i32 %26, ptr %23, align 8, !tbaa !23
  %27 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 4
  %28 = load i8, ptr %9, align 1, !tbaa !11, !range !24, !noundef !25
  %29 = trunc i8 %28 to i1
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %27, align 4, !tbaa !26
  %31 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 5
  store i32 0, ptr %31, align 8, !tbaa !27
  %32 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 6
  store i32 0, ptr %32, align 4, !tbaa !28
  %33 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 7
  store i32 0, ptr %33, align 8, !tbaa !29
  %34 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 8
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !30
  %36 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 9
  store i8 1, ptr %36, align 8, !tbaa !31
  %37 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 10
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #4
  %38 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 11
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  %39 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 12
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %40 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp sle i32 %41, 0
  br i1 %42, label %66, label %43

43:                                               ; preds = %5
  %44 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 2
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %66, label %47

47:                                               ; preds = %43
  %48 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !15
  %50 = sdiv i32 %49, 2
  %51 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 2
  %52 = load i32, ptr %51, align 4, !tbaa !22
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %66, label %54

54:                                               ; preds = %47
  %55 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %57 = icmp eq ptr null, %56
  br i1 %57, label %66, label %58

58:                                               ; preds = %54
  %59 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 8
  %60 = load ptr, ptr %59, align 8, !tbaa !30
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %61, i64 3
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %65 unwind label %68

65:                                               ; preds = %58
  br i1 %64, label %72, label %66

66:                                               ; preds = %65, %54, %47, %43, %5
  %67 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 9
  store i8 0, ptr %67, align 8, !tbaa !31
  br label %136

68:                                               ; preds = %134, %129, %105, %100, %83, %72, %58
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #4
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br label %137

72:                                               ; preds = %65
  %73 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 8
  %74 = load ptr, ptr %73, align 8, !tbaa !30
  %75 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 10
  %76 = load ptr, ptr %74, align 8, !tbaa !13
  %77 = getelementptr inbounds ptr, ptr %76, i64 4
  %78 = load ptr, ptr %77, align 8
  %79 = invoke noundef zeroext i1 %78(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef %75)
          to label %80 unwind label %68

80:                                               ; preds = %72
  br i1 %79, label %83, label %81

81:                                               ; preds = %80
  %82 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 5
  store i32 0, ptr %82, align 8, !tbaa !27
  br label %136

83:                                               ; preds = %80
  %84 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 1
  %85 = load i32, ptr %84, align 8, !tbaa !15
  %86 = add nsw i32 %85, 1
  %87 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 5
  store i32 %86, ptr %87, align 8, !tbaa !27
  %88 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 10
  %89 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #4
  %90 = trunc i64 %89 to i32
  %91 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 6
  store i32 %90, ptr %91, align 4, !tbaa !28
  %92 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 8
  %93 = load ptr, ptr %92, align 8, !tbaa !30
  %94 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 11
  %95 = load ptr, ptr %93, align 8, !tbaa !13
  %96 = getelementptr inbounds ptr, ptr %95, i64 4
  %97 = load ptr, ptr %96, align 8
  %98 = invoke noundef zeroext i1 %97(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef %94)
          to label %99 unwind label %68

99:                                               ; preds = %83
  br i1 %98, label %125, label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 11
  %102 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 6
  %103 = load i32, ptr %102, align 4, !tbaa !28
  %104 = sext i32 %103 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %104)
          to label %105 unwind label %68

105:                                              ; preds = %100
  %106 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 10
  %107 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #4
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 10
  %110 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #4
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  %112 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 11
  %113 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #4
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %116, ptr %118, ptr %120)
          to label %122 unwind label %68

122:                                              ; preds = %105
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %121, ptr %123, align 8
  %124 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 5
  store i32 1, ptr %124, align 8, !tbaa !27
  br label %125

125:                                              ; preds = %122, %99
  %126 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 2
  %127 = load i32, ptr %126, align 4, !tbaa !22
  %128 = icmp slt i32 0, %127
  br i1 %128, label %129, label %136

129:                                              ; preds = %125
  %130 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 12
  %131 = getelementptr inbounds %"class.sptk::InputSourceInterpolation", ptr %18, i32 0, i32 6
  %132 = load i32, ptr %131, align 4, !tbaa !28
  %133 = sext i32 %132 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %133)
          to label %134 unwind label %68

134:                                              ; preds = %129
  invoke void @_ZN4sptk24InputSourceInterpolation18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(128) %18)
          to label %135 unwind label %68

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %125, %81, %66
  ret void

137:                                              ; preds = %68
  %138 = load ptr, ptr %11, align 8
  %139 = load i32, ptr %12, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr, ptr, ptr) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk24InputSourceInterpolation18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { 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 #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 = !{!"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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN4sptk24InputSourceInterpolationE", !17, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !12, i64 48, !18, i64 56, !18, i64 80, !18, i64 104}
!17 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!16, !10, i64 12}
!23 = !{!16, !10, i64 16}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!16, !12, i64 20}
!27 = !{!16, !10, i64 24}
!28 = !{!16, !10, i64 28}
!29 = !{!16, !10, i64 32}
!30 = !{!16, !6, i64 40}
!31 = !{!16, !12, i64 48}


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

@_ZTVN4sptk24InputSourceInterpolationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk24InputSourceInterpolationC2EiibPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = zext i1 %3 to i8
  tail call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk24InputSourceInterpolationE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %8, align 4, !tbaa !19
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = sdiv i32 %2, 2
  store i32 %10, ptr %9, align 8, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 %6, ptr %11, align 4, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %12, align 8, !tbaa !22
  %13 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %13, align 4, !tbaa !23
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %14, align 8, !tbaa !24
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %4, ptr %15, align 8, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 1, ptr %16, align 8, !tbaa !26
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %20 = load i32, ptr %7, align 8, !tbaa !8
  %21 = icmp slt i32 %20, 1
  br i1 %21, label %34, label %22

22:                                               ; preds = %5
  %23 = load i32, ptr %8, align 4, !tbaa !19
  %24 = lshr i32 %20, 1
  %or.cond = icmp ugt i32 %23, %24
  br i1 %or.cond, label %34, label %25

25:                                               ; preds = %22
  %26 = load ptr, ptr %15, align 8, !tbaa !25
  %27 = icmp eq ptr %26, null
  br i1 %27, label %34, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr %26, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef zeroext i1 %31(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %33 unwind label %35

33:                                               ; preds = %28
  br i1 %32, label %37, label %34

34:                                               ; preds = %33, %25, %22, %5
  store i8 0, ptr %16, align 8, !tbaa !26
  br label %72

35:                                               ; preds = %68, %59, %56, %45, %37, %28
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  tail call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %36

37:                                               ; preds = %33
  %38 = load ptr, ptr %15, align 8, !tbaa !25
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull %17)
          to label %43 unwind label %35

43:                                               ; preds = %37
  br i1 %42, label %45, label %44

44:                                               ; preds = %43
  store i32 0, ptr %12, align 8, !tbaa !22
  br label %72

45:                                               ; preds = %43
  %46 = load i32, ptr %7, align 8, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %12, align 8, !tbaa !22
  %48 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %13, align 4, !tbaa !23
  %50 = load ptr, ptr %15, align 8, !tbaa !25
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef zeroext i1 %53(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull %18)
          to label %55 unwind label %35

55:                                               ; preds = %45
  br i1 %54, label %65, label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %13, align 4, !tbaa !23
  %58 = sext i32 %57 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %58)
          to label %59 unwind label %35

59:                                               ; preds = %56
  %60 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %61 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %62 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %63 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %60, ptr %61, ptr %62)
          to label %64 unwind label %35

64:                                               ; preds = %59
  store i32 1, ptr %12, align 8, !tbaa !22
  br label %65

65:                                               ; preds = %64, %55
  %66 = load i32, ptr %8, align 4, !tbaa !19
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %68, label %72

68:                                               ; preds = %65
  %69 = load i32, ptr %13, align 4, !tbaa !23
  %70 = sext i32 %69 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %70)
          to label %71 unwind label %35

71:                                               ; preds = %68
  tail call void @_ZN4sptk24InputSourceInterpolation18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  br label %72

72:                                               ; preds = %71, %65, %44, %34
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr, ptr, ptr) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk24InputSourceInterpolation18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN4sptk24InputSourceInterpolationE", !10, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !13, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !14, i64 40, !13, i64 48, !15, i64 56, !15, i64 80, !15, i64 104}
!10 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"bool", !12, i64 0}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!9, !11, i64 12}
!20 = !{!9, !11, i64 16}
!21 = !{!9, !13, i64 20}
!22 = !{!9, !11, i64 24}
!23 = !{!9, !11, i64 28}
!24 = !{!9, !11, i64 32}
!25 = !{!9, !14, i64 40}
!26 = !{!9, !13, i64 48}


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