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

; 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::InputSourceInterpolationWithMagicNumber" = type { %"class.sptk::InputSourceInterface", i32, i32, i32, i8, double, 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 }

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

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

47:                                               ; preds = %6
  %48 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 2
  %49 = load i32, ptr %48, align 4, !tbaa !24
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %70, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = sdiv i32 %53, 2
  %55 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !24
  %57 = icmp slt i32 %54, %56
  br i1 %57, label %70, label %58

58:                                               ; preds = %51
  %59 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 9
  %60 = load ptr, ptr %59, align 8, !tbaa !33
  %61 = icmp eq ptr null, %60
  br i1 %61, label %70, label %62

62:                                               ; preds = %58
  %63 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 9
  %64 = load ptr, ptr %63, align 8, !tbaa !33
  %65 = load ptr, ptr %64, align 8, !tbaa !15
  %66 = getelementptr inbounds ptr, ptr %65, i64 3
  %67 = load ptr, ptr %66, align 8
  %68 = invoke noundef zeroext i1 %67(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %69 unwind label %72

69:                                               ; preds = %62
  br i1 %68, label %76, label %70

70:                                               ; preds = %69, %58, %51, %47, %6
  %71 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 10
  store i8 0, ptr %71, align 8, !tbaa !34
  br label %140

72:                                               ; preds = %138, %133, %109, %104, %87, %76, %62
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  br label %141

76:                                               ; preds = %69
  %77 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 9
  %78 = load ptr, ptr %77, align 8, !tbaa !33
  %79 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 11
  %80 = load ptr, ptr %78, align 8, !tbaa !15
  %81 = getelementptr inbounds ptr, ptr %80, i64 4
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef zeroext i1 %82(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %79)
          to label %84 unwind label %72

84:                                               ; preds = %76
  br i1 %83, label %87, label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 6
  store i32 0, ptr %86, align 8, !tbaa !30
  br label %140

87:                                               ; preds = %84
  %88 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !17
  %90 = add nsw i32 %89, 1
  %91 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 6
  store i32 %90, ptr %91, align 8, !tbaa !30
  %92 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 11
  %93 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #4
  %94 = trunc i64 %93 to i32
  %95 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 7
  store i32 %94, ptr %95, align 4, !tbaa !31
  %96 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 9
  %97 = load ptr, ptr %96, align 8, !tbaa !33
  %98 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 12
  %99 = load ptr, ptr %97, align 8, !tbaa !15
  %100 = getelementptr inbounds ptr, ptr %99, i64 4
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef zeroext i1 %101(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef %98)
          to label %103 unwind label %72

103:                                              ; preds = %87
  br i1 %102, label %129, label %104

104:                                              ; preds = %103
  %105 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 12
  %106 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 7
  %107 = load i32, ptr %106, align 4, !tbaa !31
  %108 = sext i32 %107 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %108)
          to label %109 unwind label %72

109:                                              ; preds = %104
  %110 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 11
  %111 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #4
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  %113 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 11
  %114 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #4
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 12
  %117 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #4
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %120, ptr %122, ptr %124)
          to label %126 unwind label %72

126:                                              ; preds = %109
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %125, ptr %127, align 8
  %128 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 6
  store i32 1, ptr %128, align 8, !tbaa !30
  br label %129

129:                                              ; preds = %126, %103
  %130 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !24
  %132 = icmp slt i32 0, %131
  br i1 %132, label %133, label %140

133:                                              ; preds = %129
  %134 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 13
  %135 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %20, i32 0, i32 7
  %136 = load i32, ptr %135, align 4, !tbaa !31
  %137 = sext i32 %136 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %137)
          to label %138 unwind label %72

138:                                              ; preds = %133
  invoke void @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136) %20)
          to label %139 unwind label %72

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139, %129, %85, %70
  ret void

141:                                              ; preds = %72
  %142 = load ptr, ptr %13, align 8
  %143 = load i32, ptr %14, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

; 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 @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136)) #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 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4sptk39InputSourceInterpolationWithMagicNumberE", !19, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !14, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !12, i64 56, !20, i64 64, !20, i64 88, !20, i64 112}
!19 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!18, !10, i64 12}
!25 = !{!18, !10, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!18, !12, i64 20}
!29 = !{!18, !14, i64 24}
!30 = !{!18, !10, i64 32}
!31 = !{!18, !10, i64 36}
!32 = !{!18, !10, i64 40}
!33 = !{!18, !6, i64 48}
!34 = !{!18, !12, i64 56}


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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk39InputSourceInterpolationWithMagicNumberC2EiibdPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3, double noundef %4, ptr noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = 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 @_ZTVN4sptk39InputSourceInterpolationWithMagicNumberE, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %8, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %9, align 4, !tbaa !20
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = sdiv i32 %2, 2
  store i32 %11, ptr %10, align 8, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 %7, ptr %12, align 4, !tbaa !22
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  store double %4, ptr %13, align 8, !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 36
  store i32 0, ptr %15, align 4, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 0, ptr %16, align 8, !tbaa !26
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %5, ptr %17, align 8, !tbaa !27
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  store i8 1, ptr %18, align 8, !tbaa !28
  %19 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %21 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  %22 = load i32, ptr %8, align 8, !tbaa !8
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %36, label %24

24:                                               ; preds = %6
  %25 = load i32, ptr %9, align 4, !tbaa !20
  %26 = lshr i32 %22, 1
  %or.cond = icmp ugt i32 %25, %26
  br i1 %or.cond, label %36, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr %17, align 8, !tbaa !27
  %29 = icmp eq ptr %28, null
  br i1 %29, label %36, label %30

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

35:                                               ; preds = %30
  br i1 %34, label %39, label %36

36:                                               ; preds = %35, %27, %24, %6
  store i8 0, ptr %18, align 8, !tbaa !28
  br label %74

37:                                               ; preds = %70, %61, %58, %47, %39, %30
  %38 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  tail call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %38

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

45:                                               ; preds = %39
  br i1 %44, label %47, label %46

46:                                               ; preds = %45
  store i32 0, ptr %14, align 8, !tbaa !24
  br label %74

47:                                               ; preds = %45
  %48 = load i32, ptr %8, align 8, !tbaa !8
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %14, align 8, !tbaa !24
  %50 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr %15, align 4, !tbaa !25
  %52 = load ptr, ptr %17, align 8, !tbaa !27
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  %55 = load ptr, ptr %54, align 8
  %56 = invoke noundef zeroext i1 %55(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull %20)
          to label %57 unwind label %37

57:                                               ; preds = %47
  br i1 %56, label %67, label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %15, align 4, !tbaa !25
  %60 = sext i32 %59 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %60)
          to label %61 unwind label %37

61:                                               ; preds = %58
  %62 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %63 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %64 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %65 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %62, ptr %63, ptr %64)
          to label %66 unwind label %37

66:                                               ; preds = %61
  store i32 1, ptr %14, align 8, !tbaa !24
  br label %67

67:                                               ; preds = %66, %57
  %68 = load i32, ptr %9, align 4, !tbaa !20
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = load i32, ptr %15, align 4, !tbaa !25
  %72 = sext i32 %71 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %72)
          to label %73 unwind label %37

73:                                               ; preds = %70
  tail call void @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
  br label %74

74:                                               ; preds = %73, %67, %46, %36
  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 @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136)) 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 = !{!"_ZTSN4sptk39InputSourceInterpolationWithMagicNumberE", !10, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !13, i64 20, !14, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !15, i64 48, !13, i64 56, !16, i64 64, !16, i64 88, !16, i64 112}
!10 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"bool", !12, i64 0}
!14 = !{!"double", !12, i64 0}
!15 = !{!"any pointer", !12, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!9, !11, i64 12}
!21 = !{!9, !11, i64 16}
!22 = !{!9, !13, i64 20}
!23 = !{!9, !14, i64 24}
!24 = !{!9, !11, i64 32}
!25 = !{!9, !11, i64 36}
!26 = !{!9, !11, i64 40}
!27 = !{!9, !15, i64 48}
!28 = !{!9, !13, i64 56}


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