; LLVM IR from HRI-EU/Rcs :: src/RcsCore/ViaPointSequence.ll (ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct._MatNd = type { ptr, i32, i32, i32, i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_ = external hidden unnamed_addr constant [15 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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23computeDependentIndicesPK6_MatNdRSt6vectorIiSaIiEES5_S5_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @lround(double noundef) #3

declare double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) #4

declare zeroext i1 @Math_isBitSet(i32 noundef, i32 noundef) #4

declare void @MatNd_set(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #5

declare void @MatNd_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare void @print_trace() #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_(ptr noundef %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  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 24, ptr %5) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZL23computeDependentIndicesPK6_MatNdRSt6vectorIiSaIiEES5_S5_(ptr noundef %25, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %26 unwind label %35

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %485, %26
  %28 = load i64, ptr %11, align 8, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._MatNd, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = zext i32 %31 to i64
  %33 = icmp ult i64 %28, %32
  br i1 %33, label %39, label %34

34:                                               ; preds = %27
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %489

35:                                               ; preds = %2
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %490

39:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._MatNd, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._MatNd, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = zext i32 %46 to i64
  %48 = mul i64 %43, %47
  %49 = add i64 %48, 0
  %50 = getelementptr inbounds double, ptr %42, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !17
  store double %51, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %52 = load double, ptr %13, align 8, !tbaa !17
  %53 = load double, ptr %13, align 8, !tbaa !17
  %54 = fmul double %52, %53
  store double %54, ptr %14, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %55 = load double, ptr %14, align 8, !tbaa !17
  %56 = load double, ptr %13, align 8, !tbaa !17
  %57 = fmul double %55, %56
  store double %57, ptr %15, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %58 = load double, ptr %14, align 8, !tbaa !17
  %59 = load double, ptr %14, align 8, !tbaa !17
  %60 = fmul double %58, %59
  store double %60, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %61 = load double, ptr %15, align 8, !tbaa !17
  %62 = load double, ptr %14, align 8, !tbaa !17
  %63 = fmul double %61, %62
  store double %63, ptr %17, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = trunc i64 %65 to i32
  %67 = invoke double @MatNd_get(ptr noundef %64, i32 noundef %66, i32 noundef 4)
          to label %68 unwind label %109

68:                                               ; preds = %39
  %69 = call i64 @lround(double noundef %67) #7
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %18, align 4, !tbaa !19
  %71 = load i32, ptr %18, align 4, !tbaa !19
  %72 = invoke zeroext i1 @Math_isBitSet(i32 noundef %71, i32 noundef 0)
          to label %73 unwind label %109

73:                                               ; preds = %68
  br i1 %72, label %74, label %212

74:                                               ; preds = %73
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = trunc i64 %76 to i32
  %78 = load double, ptr %17, align 8, !tbaa !17
  invoke void @MatNd_set(ptr noundef %75, i32 noundef %77, i32 noundef 0, double noundef %78)
          to label %79 unwind label %109

79:                                               ; preds = %74
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = trunc i64 %81 to i32
  %83 = load double, ptr %16, align 8, !tbaa !17
  invoke void @MatNd_set(ptr noundef %80, i32 noundef %82, i32 noundef 1, double noundef %83)
          to label %84 unwind label %109

84:                                               ; preds = %79
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = trunc i64 %86 to i32
  %88 = load double, ptr %15, align 8, !tbaa !17
  invoke void @MatNd_set(ptr noundef %85, i32 noundef %87, i32 noundef 2, double noundef %88)
          to label %89 unwind label %109

89:                                               ; preds = %84
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = trunc i64 %91 to i32
  %93 = load double, ptr %14, align 8, !tbaa !17
  invoke void @MatNd_set(ptr noundef %90, i32 noundef %92, i32 noundef 3, double noundef %93)
          to label %94 unwind label %109

94:                                               ; preds = %89
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = trunc i64 %96 to i32
  %98 = load double, ptr %13, align 8, !tbaa !17
  invoke void @MatNd_set(ptr noundef %95, i32 noundef %97, i32 noundef 4, double noundef %98)
          to label %99 unwind label %109

99:                                               ; preds = %94
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = trunc i64 %101 to i32
  invoke void @MatNd_set(ptr noundef %100, i32 noundef %102, i32 noundef 5, double noundef 1.000000e+00)
          to label %103 unwind label %109

103:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %206, %103
  %105 = load i64, ptr %19, align 8, !tbaa !9
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = icmp ult i64 %105, %106
  br i1 %107, label %113, label %108

108:                                              ; preds = %104
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %209

109:                                              ; preds = %374, %368, %362, %356, %352, %240, %234, %228, %222, %216, %212, %99, %94, %89, %84, %79, %74, %68, %39
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %8, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %9, align 4
  br label %488

113:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load i64, ptr %19, align 8, !tbaa !9
  %116 = trunc i64 %115 to i32
  %117 = invoke double @MatNd_get(ptr noundef %114, i32 noundef %116, i32 noundef 0)
          to label %118 unwind label %139

118:                                              ; preds = %113
  store double %117, ptr %20, align 8, !tbaa !17
  %119 = load double, ptr %20, align 8, !tbaa !17
  %120 = load double, ptr %13, align 8, !tbaa !17
  %121 = fcmp oge double %119, %120
  br i1 %121, label %122, label %145

122:                                              ; preds = %118
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @MatNd_printCommentDigits(ptr noundef @.str, ptr noundef %123, i32 noundef 5)
          to label %124 unwind label %139

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 367) #7
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = load i64, ptr %11, align 8, !tbaa !9
  %130 = trunc i64 %129 to i32
  %131 = load i64, ptr %19, align 8, !tbaa !9
  %132 = trunc i64 %131 to i32
  %133 = load double, ptr %20, align 8, !tbaa !17
  %134 = load double, ptr %13, align 8, !tbaa !17
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.3, i32 noundef %130, i32 noundef %132, double noundef %133, double noundef %134) #7
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.4) #7
  invoke void @print_trace()
          to label %138 unwind label %139

138:                                              ; preds = %125
  call void @exit(i32 noundef 1) #8
  unreachable

139:                                              ; preds = %203, %191, %183, %171, %163, %151, %125, %122, %113
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %8, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %488

143:                                              ; No predecessors!
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %118
  %146 = load i64, ptr %19, align 8, !tbaa !9
  %147 = sub i64 %146, 1
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %147) #7
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = icmp ne i32 %149, -1
  br i1 %150, label %151, label %165

151:                                              ; preds = %145
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = trunc i64 %153 to i32
  %155 = load i64, ptr %19, align 8, !tbaa !9
  %156 = sub i64 %155, 1
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %156) #7
  %158 = load i32, ptr %157, align 4, !tbaa !19
  %159 = load double, ptr %13, align 8, !tbaa !17
  %160 = load double, ptr %20, align 8, !tbaa !17
  %161 = fsub double %159, %160
  %162 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %161, i32 noundef 5)
          to label %163 unwind label %139

163:                                              ; preds = %151
  invoke void @MatNd_set(ptr noundef %152, i32 noundef %154, i32 noundef %158, double noundef %162)
          to label %164 unwind label %139

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %145
  %166 = load i64, ptr %19, align 8, !tbaa !9
  %167 = sub i64 %166, 1
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %167) #7
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = icmp ne i32 %169, -1
  br i1 %170, label %171, label %185

171:                                              ; preds = %165
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = load i64, ptr %10, align 8, !tbaa !9
  %174 = trunc i64 %173 to i32
  %175 = load i64, ptr %19, align 8, !tbaa !9
  %176 = sub i64 %175, 1
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %176) #7
  %178 = load i32, ptr %177, align 4, !tbaa !19
  %179 = load double, ptr %13, align 8, !tbaa !17
  %180 = load double, ptr %20, align 8, !tbaa !17
  %181 = fsub double %179, %180
  %182 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %181, i32 noundef 4)
          to label %183 unwind label %139

183:                                              ; preds = %171
  invoke void @MatNd_set(ptr noundef %172, i32 noundef %174, i32 noundef %178, double noundef %182)
          to label %184 unwind label %139

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184, %165
  %186 = load i64, ptr %19, align 8, !tbaa !9
  %187 = sub i64 %186, 1
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %187) #7
  %189 = load i32, ptr %188, align 4, !tbaa !19
  %190 = icmp ne i32 %189, -1
  br i1 %190, label %191, label %205

191:                                              ; preds = %185
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = load i64, ptr %10, align 8, !tbaa !9
  %194 = trunc i64 %193 to i32
  %195 = load i64, ptr %19, align 8, !tbaa !9
  %196 = sub i64 %195, 1
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %196) #7
  %198 = load i32, ptr %197, align 4, !tbaa !19
  %199 = load double, ptr %13, align 8, !tbaa !17
  %200 = load double, ptr %20, align 8, !tbaa !17
  %201 = fsub double %199, %200
  %202 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %201, i32 noundef 3)
          to label %203 unwind label %139

203:                                              ; preds = %191
  invoke void @MatNd_set(ptr noundef %192, i32 noundef %194, i32 noundef %198, double noundef %202)
          to label %204 unwind label %139

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %206

206:                                              ; preds = %205
  %207 = load i64, ptr %19, align 8, !tbaa !9
  %208 = add i64 %207, 1
  store i64 %208, ptr %19, align 8, !tbaa !9
  br label %104, !llvm.loop !20

209:                                              ; preds = %108
  %210 = load i64, ptr %10, align 8, !tbaa !9
  %211 = add i64 %210, 1
  store i64 %211, ptr %10, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %209, %73
  %213 = load i32, ptr %18, align 4, !tbaa !19
  %214 = invoke zeroext i1 @Math_isBitSet(i32 noundef %213, i32 noundef 1)
          to label %215 unwind label %109

215:                                              ; preds = %212
  br i1 %214, label %216, label %352

216:                                              ; preds = %215
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = load i64, ptr %10, align 8, !tbaa !9
  %219 = trunc i64 %218 to i32
  %220 = load double, ptr %16, align 8, !tbaa !17
  %221 = fmul double 5.000000e+00, %220
  invoke void @MatNd_set(ptr noundef %217, i32 noundef %219, i32 noundef 0, double noundef %221)
          to label %222 unwind label %109

222:                                              ; preds = %216
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = load i64, ptr %10, align 8, !tbaa !9
  %225 = trunc i64 %224 to i32
  %226 = load double, ptr %15, align 8, !tbaa !17
  %227 = fmul double 4.000000e+00, %226
  invoke void @MatNd_set(ptr noundef %223, i32 noundef %225, i32 noundef 1, double noundef %227)
          to label %228 unwind label %109

228:                                              ; preds = %222
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = load i64, ptr %10, align 8, !tbaa !9
  %231 = trunc i64 %230 to i32
  %232 = load double, ptr %14, align 8, !tbaa !17
  %233 = fmul double 3.000000e+00, %232
  invoke void @MatNd_set(ptr noundef %229, i32 noundef %231, i32 noundef 2, double noundef %233)
          to label %234 unwind label %109

234:                                              ; preds = %228
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = load i64, ptr %10, align 8, !tbaa !9
  %237 = trunc i64 %236 to i32
  %238 = load double, ptr %13, align 8, !tbaa !17
  %239 = fmul double 2.000000e+00, %238
  invoke void @MatNd_set(ptr noundef %235, i32 noundef %237, i32 noundef 3, double noundef %239)
          to label %240 unwind label %109

240:                                              ; preds = %234
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = load i64, ptr %10, align 8, !tbaa !9
  %243 = trunc i64 %242 to i32
  invoke void @MatNd_set(ptr noundef %241, i32 noundef %243, i32 noundef 4, double noundef 1.000000e+00)
          to label %244 unwind label %109

244:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 1, ptr %21, align 8, !tbaa !9
  br label %245

245:                                              ; preds = %346, %244
  %246 = load i64, ptr %21, align 8, !tbaa !9
  %247 = load i64, ptr %11, align 8, !tbaa !9
  %248 = icmp ult i64 %246, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %245
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %349

250:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = load i64, ptr %21, align 8, !tbaa !9
  %253 = trunc i64 %252 to i32
  %254 = invoke double @MatNd_get(ptr noundef %251, i32 noundef %253, i32 noundef 0)
          to label %255 unwind label %276

255:                                              ; preds = %250
  store double %254, ptr %22, align 8, !tbaa !17
  %256 = load double, ptr %22, align 8, !tbaa !17
  %257 = load double, ptr %13, align 8, !tbaa !17
  %258 = fcmp oge double %256, %257
  br i1 %258, label %259, label %282

259:                                              ; preds = %255
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @MatNd_printCommentDigits(ptr noundef @.str, ptr noundef %260, i32 noundef 5)
          to label %261 unwind label %276

261:                                              ; preds = %259
  br label %262

262:                                              ; preds = %261
  %263 = load ptr, ptr @stderr, align 8, !tbaa !5
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 409) #7
  %265 = load ptr, ptr @stderr, align 8, !tbaa !5
  %266 = load i64, ptr %11, align 8, !tbaa !9
  %267 = trunc i64 %266 to i32
  %268 = load i64, ptr %21, align 8, !tbaa !9
  %269 = trunc i64 %268 to i32
  %270 = load double, ptr %22, align 8, !tbaa !17
  %271 = load double, ptr %13, align 8, !tbaa !17
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.3, i32 noundef %267, i32 noundef %269, double noundef %270, double noundef %271) #7
  %273 = load ptr, ptr @stderr, align 8, !tbaa !5
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.4) #7
  invoke void @print_trace()
          to label %275 unwind label %276

275:                                              ; preds = %262
  call void @exit(i32 noundef 1) #8
  unreachable

276:                                              ; preds = %342, %330, %321, %309, %300, %288, %262, %259, %250
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %8, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %488

280:                                              ; No predecessors!
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281, %255
  %283 = load i64, ptr %21, align 8, !tbaa !9
  %284 = sub i64 %283, 1
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %284) #7
  %286 = load i32, ptr %285, align 4, !tbaa !19
  %287 = icmp ne i32 %286, -1
  br i1 %287, label %288, label %303

288:                                              ; preds = %282
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = load i64, ptr %10, align 8, !tbaa !9
  %291 = trunc i64 %290 to i32
  %292 = load i64, ptr %21, align 8, !tbaa !9
  %293 = sub i64 %292, 1
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %293) #7
  %295 = load i32, ptr %294, align 4, !tbaa !19
  %296 = load double, ptr %13, align 8, !tbaa !17
  %297 = load double, ptr %22, align 8, !tbaa !17
  %298 = fsub double %296, %297
  %299 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %298, i32 noundef 3)
          to label %300 unwind label %276

300:                                              ; preds = %288
  %301 = fmul double 4.000000e+00, %299
  invoke void @MatNd_set(ptr noundef %289, i32 noundef %291, i32 noundef %295, double noundef %301)
          to label %302 unwind label %276

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %282
  %304 = load i64, ptr %21, align 8, !tbaa !9
  %305 = sub i64 %304, 1
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %305) #7
  %307 = load i32, ptr %306, align 4, !tbaa !19
  %308 = icmp ne i32 %307, -1
  br i1 %308, label %309, label %324

309:                                              ; preds = %303
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = load i64, ptr %10, align 8, !tbaa !9
  %312 = trunc i64 %311 to i32
  %313 = load i64, ptr %21, align 8, !tbaa !9
  %314 = sub i64 %313, 1
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %314) #7
  %316 = load i32, ptr %315, align 4, !tbaa !19
  %317 = load double, ptr %13, align 8, !tbaa !17
  %318 = load double, ptr %22, align 8, !tbaa !17
  %319 = fsub double %317, %318
  %320 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %319, i32 noundef 4)
          to label %321 unwind label %276

321:                                              ; preds = %309
  %322 = fmul double 5.000000e+00, %320
  invoke void @MatNd_set(ptr noundef %310, i32 noundef %312, i32 noundef %316, double noundef %322)
          to label %323 unwind label %276

323:                                              ; preds = %321
  br label %324

324:                                              ; preds = %323, %303
  %325 = load i64, ptr %21, align 8, !tbaa !9
  %326 = sub i64 %325, 1
  %327 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %326) #7
  %328 = load i32, ptr %327, align 4, !tbaa !19
  %329 = icmp ne i32 %328, -1
  br i1 %329, label %330, label %345

330:                                              ; preds = %324
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = load i64, ptr %10, align 8, !tbaa !9
  %333 = trunc i64 %332 to i32
  %334 = load i64, ptr %21, align 8, !tbaa !9
  %335 = sub i64 %334, 1
  %336 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %335) #7
  %337 = load i32, ptr %336, align 4, !tbaa !19
  %338 = load double, ptr %13, align 8, !tbaa !17
  %339 = load double, ptr %22, align 8, !tbaa !17
  %340 = fsub double %338, %339
  %341 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %340, i32 noundef 2)
          to label %342 unwind label %276

342:                                              ; preds = %330
  %343 = fmul double 3.000000e+00, %341
  invoke void @MatNd_set(ptr noundef %331, i32 noundef %333, i32 noundef %337, double noundef %343)
          to label %344 unwind label %276

344:                                              ; preds = %342
  br label %345

345:                                              ; preds = %344, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %346

346:                                              ; preds = %345
  %347 = load i64, ptr %21, align 8, !tbaa !9
  %348 = add i64 %347, 1
  store i64 %348, ptr %21, align 8, !tbaa !9
  br label %245, !llvm.loop !22

349:                                              ; preds = %249
  %350 = load i64, ptr %10, align 8, !tbaa !9
  %351 = add i64 %350, 1
  store i64 %351, ptr %10, align 8, !tbaa !9
  br label %352

352:                                              ; preds = %349, %215
  %353 = load i32, ptr %18, align 4, !tbaa !19
  %354 = invoke zeroext i1 @Math_isBitSet(i32 noundef %353, i32 noundef 2)
          to label %355 unwind label %109

355:                                              ; preds = %352
  br i1 %354, label %356, label %484

356:                                              ; preds = %355
  %357 = load ptr, ptr %3, align 8, !tbaa !5
  %358 = load i64, ptr %10, align 8, !tbaa !9
  %359 = trunc i64 %358 to i32
  %360 = load double, ptr %15, align 8, !tbaa !17
  %361 = fmul double 2.000000e+01, %360
  invoke void @MatNd_set(ptr noundef %357, i32 noundef %359, i32 noundef 0, double noundef %361)
          to label %362 unwind label %109

362:                                              ; preds = %356
  %363 = load ptr, ptr %3, align 8, !tbaa !5
  %364 = load i64, ptr %10, align 8, !tbaa !9
  %365 = trunc i64 %364 to i32
  %366 = load double, ptr %14, align 8, !tbaa !17
  %367 = fmul double 1.200000e+01, %366
  invoke void @MatNd_set(ptr noundef %363, i32 noundef %365, i32 noundef 1, double noundef %367)
          to label %368 unwind label %109

368:                                              ; preds = %362
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = load i64, ptr %10, align 8, !tbaa !9
  %371 = trunc i64 %370 to i32
  %372 = load double, ptr %13, align 8, !tbaa !17
  %373 = fmul double 6.000000e+00, %372
  invoke void @MatNd_set(ptr noundef %369, i32 noundef %371, i32 noundef 2, double noundef %373)
          to label %374 unwind label %109

374:                                              ; preds = %368
  %375 = load ptr, ptr %3, align 8, !tbaa !5
  %376 = load i64, ptr %10, align 8, !tbaa !9
  %377 = trunc i64 %376 to i32
  invoke void @MatNd_set(ptr noundef %375, i32 noundef %377, i32 noundef 3, double noundef 2.000000e+00)
          to label %378 unwind label %109

378:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %379

379:                                              ; preds = %478, %378
  %380 = load i64, ptr %23, align 8, !tbaa !9
  %381 = load i64, ptr %11, align 8, !tbaa !9
  %382 = icmp ult i64 %380, %381
  br i1 %382, label %384, label %383

383:                                              ; preds = %379
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %481

384:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  %386 = load i64, ptr %23, align 8, !tbaa !9
  %387 = trunc i64 %386 to i32
  %388 = invoke double @MatNd_get(ptr noundef %385, i32 noundef %387, i32 noundef 0)
          to label %389 unwind label %410

389:                                              ; preds = %384
  store double %388, ptr %24, align 8, !tbaa !17
  %390 = load double, ptr %24, align 8, !tbaa !17
  %391 = load double, ptr %13, align 8, !tbaa !17
  %392 = fcmp oge double %390, %391
  br i1 %392, label %393, label %416

393:                                              ; preds = %389
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @MatNd_printCommentDigits(ptr noundef @.str, ptr noundef %394, i32 noundef 5)
          to label %395 unwind label %410

395:                                              ; preds = %393
  br label %396

396:                                              ; preds = %395
  %397 = load ptr, ptr @stderr, align 8, !tbaa !5
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 451) #7
  %399 = load ptr, ptr @stderr, align 8, !tbaa !5
  %400 = load i64, ptr %11, align 8, !tbaa !9
  %401 = trunc i64 %400 to i32
  %402 = load i64, ptr %23, align 8, !tbaa !9
  %403 = trunc i64 %402 to i32
  %404 = load double, ptr %24, align 8, !tbaa !17
  %405 = load double, ptr %13, align 8, !tbaa !17
  %406 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %399, ptr noundef @.str.3, i32 noundef %401, i32 noundef %403, double noundef %404, double noundef %405) #7
  %407 = load ptr, ptr @stderr, align 8, !tbaa !5
  %408 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %407, ptr noundef @.str.4) #7
  invoke void @print_trace()
          to label %409 unwind label %410

409:                                              ; preds = %396
  call void @exit(i32 noundef 1) #8
  unreachable

410:                                              ; preds = %474, %462, %453, %441, %422, %396, %393, %384
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %8, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %488

414:                                              ; No predecessors!
  br label %415

415:                                              ; preds = %414
  br label %416

416:                                              ; preds = %415, %389
  %417 = load i64, ptr %23, align 8, !tbaa !9
  %418 = sub i64 %417, 1
  %419 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %418) #7
  %420 = load i32, ptr %419, align 4, !tbaa !19
  %421 = icmp ne i32 %420, -1
  br i1 %421, label %422, label %435

422:                                              ; preds = %416
  %423 = load ptr, ptr %3, align 8, !tbaa !5
  %424 = load i64, ptr %10, align 8, !tbaa !9
  %425 = trunc i64 %424 to i32
  %426 = load i64, ptr %23, align 8, !tbaa !9
  %427 = sub i64 %426, 1
  %428 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %427) #7
  %429 = load i32, ptr %428, align 4, !tbaa !19
  %430 = load double, ptr %13, align 8, !tbaa !17
  %431 = load double, ptr %24, align 8, !tbaa !17
  %432 = fsub double %430, %431
  %433 = fmul double 6.000000e+00, %432
  invoke void @MatNd_set(ptr noundef %423, i32 noundef %425, i32 noundef %429, double noundef %433)
          to label %434 unwind label %410

434:                                              ; preds = %422
  br label %435

435:                                              ; preds = %434, %416
  %436 = load i64, ptr %23, align 8, !tbaa !9
  %437 = sub i64 %436, 1
  %438 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %437) #7
  %439 = load i32, ptr %438, align 4, !tbaa !19
  %440 = icmp ne i32 %439, -1
  br i1 %440, label %441, label %456

441:                                              ; preds = %435
  %442 = load ptr, ptr %3, align 8, !tbaa !5
  %443 = load i64, ptr %10, align 8, !tbaa !9
  %444 = trunc i64 %443 to i32
  %445 = load i64, ptr %23, align 8, !tbaa !9
  %446 = sub i64 %445, 1
  %447 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %446) #7
  %448 = load i32, ptr %447, align 4, !tbaa !19
  %449 = load double, ptr %13, align 8, !tbaa !17
  %450 = load double, ptr %24, align 8, !tbaa !17
  %451 = fsub double %449, %450
  %452 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %451, i32 noundef 2)
          to label %453 unwind label %410

453:                                              ; preds = %441
  %454 = fmul double 1.200000e+01, %452
  invoke void @MatNd_set(ptr noundef %442, i32 noundef %444, i32 noundef %448, double noundef %454)
          to label %455 unwind label %410

455:                                              ; preds = %453
  br label %456

456:                                              ; preds = %455, %435
  %457 = load i64, ptr %23, align 8, !tbaa !9
  %458 = sub i64 %457, 1
  %459 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %458) #7
  %460 = load i32, ptr %459, align 4, !tbaa !19
  %461 = icmp ne i32 %460, -1
  br i1 %461, label %462, label %477

462:                                              ; preds = %456
  %463 = load ptr, ptr %3, align 8, !tbaa !5
  %464 = load i64, ptr %10, align 8, !tbaa !9
  %465 = trunc i64 %464 to i32
  %466 = load i64, ptr %23, align 8, !tbaa !9
  %467 = sub i64 %466, 1
  %468 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %467) #7
  %469 = load i32, ptr %468, align 4, !tbaa !19
  %470 = load double, ptr %13, align 8, !tbaa !17
  %471 = load double, ptr %24, align 8, !tbaa !17
  %472 = fsub double %470, %471
  %473 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %472, i32 noundef 3)
          to label %474 unwind label %410

474:                                              ; preds = %462
  %475 = fmul double 2.000000e+01, %473
  invoke void @MatNd_set(ptr noundef %463, i32 noundef %465, i32 noundef %469, double noundef %475)
          to label %476 unwind label %410

476:                                              ; preds = %474
  br label %477

477:                                              ; preds = %476, %456
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %478

478:                                              ; preds = %477
  %479 = load i64, ptr %23, align 8, !tbaa !9
  %480 = add i64 %479, 1
  store i64 %480, ptr %23, align 8, !tbaa !9
  br label %379, !llvm.loop !23

481:                                              ; preds = %383
  %482 = load i64, ptr %10, align 8, !tbaa !9
  %483 = add i64 %482, 1
  store i64 %483, ptr %10, align 8, !tbaa !9
  br label %484

484:                                              ; preds = %481, %355
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %485

485:                                              ; preds = %484
  %486 = load i64, ptr %11, align 8, !tbaa !9
  %487 = add i64 %486, 1
  store i64 %487, ptr %11, align 8, !tbaa !9
  br label %27, !llvm.loop !24

488:                                              ; preds = %410, %276, %139, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %490

489:                                              ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  ret void

490:                                              ; preds = %488, %35
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %491

491:                                              ; preds = %490
  %492 = load ptr, ptr %8, align 8
  %493 = load i32, ptr %9, align 4
  %494 = insertvalue { ptr, i32 } poison, ptr %492, 0
  %495 = insertvalue { ptr, i32 } %494, i32 %493, 1
  resume { ptr, i32 } %495
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 "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 = { "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 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS6_MatNd", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !13, i64 12}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_ = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23computeDependentIndicesPK6_MatNdRSt6vectorIiSaIiEES5_S5_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @lround(double noundef) local_unnamed_addr #3

declare double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare zeroext i1 @Math_isBitSet(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @MatNd_set(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #5

declare void @MatNd_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

declare void @print_trace() local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  invoke void @_ZL23computeDependentIndicesPK6_MatNdRSt6vectorIiSaIiEES5_S5_(ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %.preheader196 unwind label %9

.preheader196:                                    ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %.not231 = icmp eq i32 %7, 0
  br i1 %.not231, label %._crit_edge230, label %.lr.ph229

.lr.ph229:                                        ; preds = %.preheader196
  %8 = getelementptr inbounds i8, ptr %1, i64 12
  br label %11

._crit_edge230:                                   ; preds = %193, %.preheader196
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

9:                                                ; preds = %2
  %10 = landingpad { ptr, i32 }
          cleanup
  br label %198

11:                                               ; preds = %.lr.ph229, %193
  %.0160228 = phi i64 [ 0, %.lr.ph229 ], [ %.3, %193 ]
  %.0163226 = phi i64 [ 0, %.lr.ph229 ], [ %194, %193 ]
  %12 = load ptr, ptr %1, align 8, !tbaa !12
  %13 = load i32, ptr %8, align 4, !tbaa !13
  %14 = zext i32 %13 to i64
  %15 = mul nuw i64 %.0163226, %14
  %16 = getelementptr inbounds double, ptr %12, i64 %15
  %17 = load double, ptr %16, align 8, !tbaa !14
  %18 = fmul double %17, %17
  %19 = fmul double %17, %18
  %20 = fmul double %18, %18
  %21 = fmul double %18, %19
  %22 = trunc nuw i64 %.0163226 to i32
  %23 = invoke double @MatNd_get(ptr noundef nonnull %1, i32 noundef %22, i32 noundef 4)
          to label %24 unwind label %38

24:                                               ; preds = %11
  %25 = call i64 @lround(double noundef %23) #8
  %26 = trunc i64 %25 to i32
  %27 = invoke zeroext i1 @Math_isBitSet(i32 noundef %26, i32 noundef 0)
          to label %28 unwind label %38

28:                                               ; preds = %24
  br i1 %27, label %29, label %80

29:                                               ; preds = %28
  %30 = trunc i64 %.0160228 to i32
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 0, double noundef %21)
          to label %31 unwind label %38

31:                                               ; preds = %29
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 1, double noundef %20)
          to label %32 unwind label %38

32:                                               ; preds = %31
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 2, double noundef %19)
          to label %33 unwind label %38

33:                                               ; preds = %32
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 3, double noundef %18)
          to label %34 unwind label %38

34:                                               ; preds = %33
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 4, double noundef %17)
          to label %35 unwind label %38

35:                                               ; preds = %34
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef 5, double noundef 1.000000e+00)
          to label %.preheader190 unwind label %38

.preheader190:                                    ; preds = %35
  %36 = icmp ugt i64 %.0163226, 1
  br i1 %36, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %78, %.preheader190
  %37 = add i64 %.0160228, 1
  br label %80

38:                                               ; preds = %148, %146, %144, %141, %138, %92, %90, %88, %86, %83, %80, %35, %34, %33, %32, %31, %29, %24, %11
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %198

.lr.ph:                                           ; preds = %.preheader190, %78
  %.0162219 = phi i64 [ %79, %78 ], [ 1, %.preheader190 ]
  %40 = trunc nuw i64 %.0162219 to i32
  %41 = invoke double @MatNd_get(ptr noundef nonnull %1, i32 noundef %40, i32 noundef 0)
          to label %42 unwind label %.loopexit191

42:                                               ; preds = %.lr.ph
  %43 = fcmp ult double %41, %17
  br i1 %43, label %53, label %44

44:                                               ; preds = %42
  invoke void @MatNd_printCommentDigits(ptr noundef nonnull @.str, ptr noundef nonnull %1, i32 noundef 5)
          to label %45 unwind label %.loopexit.split-lp192

45:                                               ; preds = %44
  %46 = load ptr, ptr @stderr, align 8, !tbaa !16
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 367) #9
  %48 = load ptr, ptr @stderr, align 8, !tbaa !16
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.3, i32 noundef %22, i32 noundef %40, double noundef %41, double noundef %17) #9
  %50 = load ptr, ptr @stderr, align 8, !tbaa !16
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.4) #9
  invoke void @print_trace()
          to label %52 unwind label %.loopexit.split-lp192

52:                                               ; preds = %45
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit191:                                     ; preds = %.lr.ph, %57, %65, %73
  %lpad.loopexit193 = landingpad { ptr, i32 }
          cleanup
  br label %198

.loopexit.split-lp192:                            ; preds = %44, %45
  %lpad.loopexit.split-lp194 = landingpad { ptr, i32 }
          cleanup
  br label %198

53:                                               ; preds = %42
  %54 = add nsw i64 %.0162219, -1
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54) #8
  %56 = load i32, ptr %55, align 4, !tbaa !17
  %.not179 = icmp eq i32 %56, -1
  br i1 %.not179, label %62, label %57

57:                                               ; preds = %53
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54) #8
  %59 = load i32, ptr %58, align 4, !tbaa !17
  %60 = fsub double %17, %41
  %61 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %60, i32 noundef 5)
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef %59, double noundef %61)
          to label %62 unwind label %.loopexit191

62:                                               ; preds = %57, %53
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %54) #8
  %64 = load i32, ptr %63, align 4, !tbaa !17
  %.not180 = icmp eq i32 %64, -1
  br i1 %.not180, label %70, label %65

65:                                               ; preds = %62
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %54) #8
  %67 = load i32, ptr %66, align 4, !tbaa !17
  %68 = fsub double %17, %41
  %69 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %68, i32 noundef 4)
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef %67, double noundef %69)
          to label %70 unwind label %.loopexit191

70:                                               ; preds = %65, %62
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %54) #8
  %72 = load i32, ptr %71, align 4, !tbaa !17
  %.not181 = icmp eq i32 %72, -1
  br i1 %.not181, label %78, label %73

73:                                               ; preds = %70
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %54) #8
  %75 = load i32, ptr %74, align 4, !tbaa !17
  %76 = fsub double %17, %41
  %77 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %76, i32 noundef 3)
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %30, i32 noundef %75, double noundef %77)
          to label %78 unwind label %.loopexit191

78:                                               ; preds = %73, %70
  %79 = add nuw nsw i64 %.0162219, 1
  %exitcond.not = icmp eq i64 %79, %.0163226
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

80:                                               ; preds = %._crit_edge, %28
  %.1161 = phi i64 [ %37, %._crit_edge ], [ %.0160228, %28 ]
  %81 = invoke zeroext i1 @Math_isBitSet(i32 noundef %26, i32 noundef 1)
          to label %82 unwind label %38

82:                                               ; preds = %80
  br i1 %81, label %83, label %138

83:                                               ; preds = %82
  %84 = trunc i64 %.1161 to i32
  %85 = fmul double %20, 5.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef 0, double noundef %85)
          to label %86 unwind label %38

86:                                               ; preds = %83
  %87 = fmul double %19, 4.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef 1, double noundef %87)
          to label %88 unwind label %38

88:                                               ; preds = %86
  %89 = fmul double %18, 3.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef 2, double noundef %89)
          to label %90 unwind label %38

90:                                               ; preds = %88
  %91 = fmul double %17, 2.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef 3, double noundef %91)
          to label %92 unwind label %38

92:                                               ; preds = %90
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef 4, double noundef 1.000000e+00)
          to label %.preheader184 unwind label %38

.preheader184:                                    ; preds = %92
  %93 = icmp ugt i64 %.0163226, 1
  br i1 %93, label %.lr.ph221, label %._crit_edge222

._crit_edge222:                                   ; preds = %136, %.preheader184
  %94 = add i64 %.1161, 1
  br label %138

.lr.ph221:                                        ; preds = %.preheader184, %136
  %.0159220 = phi i64 [ %137, %136 ], [ 1, %.preheader184 ]
  %95 = trunc nuw i64 %.0159220 to i32
  %96 = invoke double @MatNd_get(ptr noundef nonnull %1, i32 noundef %95, i32 noundef 0)
          to label %97 unwind label %.loopexit185

97:                                               ; preds = %.lr.ph221
  %98 = fcmp ult double %96, %17
  br i1 %98, label %108, label %99

99:                                               ; preds = %97
  invoke void @MatNd_printCommentDigits(ptr noundef nonnull @.str, ptr noundef nonnull %1, i32 noundef 5)
          to label %100 unwind label %.loopexit.split-lp186

100:                                              ; preds = %99
  %101 = load ptr, ptr @stderr, align 8, !tbaa !16
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 409) #9
  %103 = load ptr, ptr @stderr, align 8, !tbaa !16
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.3, i32 noundef %22, i32 noundef %95, double noundef %96, double noundef %17) #9
  %105 = load ptr, ptr @stderr, align 8, !tbaa !16
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.4) #9
  invoke void @print_trace()
          to label %107 unwind label %.loopexit.split-lp186

107:                                              ; preds = %100
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit185:                                     ; preds = %.lr.ph221, %112, %121, %130
  %lpad.loopexit187 = landingpad { ptr, i32 }
          cleanup
  br label %198

.loopexit.split-lp186:                            ; preds = %99, %100
  %lpad.loopexit.split-lp188 = landingpad { ptr, i32 }
          cleanup
  br label %198

108:                                              ; preds = %97
  %109 = add nsw i64 %.0159220, -1
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %109) #8
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %.not176 = icmp eq i32 %111, -1
  br i1 %.not176, label %118, label %112

112:                                              ; preds = %108
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %109) #8
  %114 = load i32, ptr %113, align 4, !tbaa !17
  %115 = fsub double %17, %96
  %116 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %115, i32 noundef 3)
  %117 = fmul double %116, 4.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef %114, double noundef %117)
          to label %118 unwind label %.loopexit185

118:                                              ; preds = %112, %108
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %109) #8
  %120 = load i32, ptr %119, align 4, !tbaa !17
  %.not177 = icmp eq i32 %120, -1
  br i1 %.not177, label %127, label %121

121:                                              ; preds = %118
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %109) #8
  %123 = load i32, ptr %122, align 4, !tbaa !17
  %124 = fsub double %17, %96
  %125 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %124, i32 noundef 4)
  %126 = fmul double %125, 5.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef %123, double noundef %126)
          to label %127 unwind label %.loopexit185

127:                                              ; preds = %121, %118
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %109) #8
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %.not178 = icmp eq i32 %129, -1
  br i1 %.not178, label %136, label %130

130:                                              ; preds = %127
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %109) #8
  %132 = load i32, ptr %131, align 4, !tbaa !17
  %133 = fsub double %17, %96
  %134 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %133, i32 noundef 2)
  %135 = fmul double %134, 3.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %84, i32 noundef %132, double noundef %135)
          to label %136 unwind label %.loopexit185

136:                                              ; preds = %130, %127
  %137 = add nuw nsw i64 %.0159220, 1
  %exitcond262.not = icmp eq i64 %137, %.0163226
  br i1 %exitcond262.not, label %._crit_edge222, label %.lr.ph221, !llvm.loop !20

138:                                              ; preds = %._crit_edge222, %82
  %.2 = phi i64 [ %94, %._crit_edge222 ], [ %.1161, %82 ]
  %139 = invoke zeroext i1 @Math_isBitSet(i32 noundef %26, i32 noundef 2)
          to label %140 unwind label %38

140:                                              ; preds = %138
  br i1 %139, label %141, label %193

141:                                              ; preds = %140
  %142 = trunc i64 %.2 to i32
  %143 = fmul double %19, 2.000000e+01
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef 0, double noundef %143)
          to label %144 unwind label %38

144:                                              ; preds = %141
  %145 = fmul double %18, 1.200000e+01
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef 1, double noundef %145)
          to label %146 unwind label %38

146:                                              ; preds = %144
  %147 = fmul double %17, 6.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef 2, double noundef %147)
          to label %148 unwind label %38

148:                                              ; preds = %146
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef 3, double noundef 2.000000e+00)
          to label %.preheader unwind label %38

.preheader:                                       ; preds = %148
  %149 = icmp ugt i64 %.0163226, 1
  br i1 %149, label %.lr.ph224, label %._crit_edge225

._crit_edge225:                                   ; preds = %191, %.preheader
  %150 = add i64 %.2, 1
  br label %193

.lr.ph224:                                        ; preds = %.preheader, %191
  %.0156223 = phi i64 [ %192, %191 ], [ 1, %.preheader ]
  %151 = trunc nuw i64 %.0156223 to i32
  %152 = invoke double @MatNd_get(ptr noundef nonnull %1, i32 noundef %151, i32 noundef 0)
          to label %153 unwind label %.loopexit

153:                                              ; preds = %.lr.ph224
  %154 = fcmp ult double %152, %17
  br i1 %154, label %164, label %155

155:                                              ; preds = %153
  invoke void @MatNd_printCommentDigits(ptr noundef nonnull @.str, ptr noundef nonnull %1, i32 noundef 5)
          to label %156 unwind label %.loopexit.split-lp

156:                                              ; preds = %155
  %157 = load ptr, ptr @stderr, align 8, !tbaa !16
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN3Rcs16ViaPointSequence14computeB_poly5EP6_MatNdPKS1_, i32 noundef 451) #9
  %159 = load ptr, ptr @stderr, align 8, !tbaa !16
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.3, i32 noundef %22, i32 noundef %151, double noundef %152, double noundef %17) #9
  %161 = load ptr, ptr @stderr, align 8, !tbaa !16
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef nonnull @.str.4) #9
  invoke void @print_trace()
          to label %163 unwind label %.loopexit.split-lp

163:                                              ; preds = %156
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit:                                        ; preds = %.lr.ph224, %168, %176, %185
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %198

.loopexit.split-lp:                               ; preds = %155, %156
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %198

164:                                              ; preds = %153
  %165 = add nsw i64 %.0156223, -1
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %165) #8
  %167 = load i32, ptr %166, align 4, !tbaa !17
  %.not = icmp eq i32 %167, -1
  br i1 %.not, label %173, label %168

168:                                              ; preds = %164
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %165) #8
  %170 = load i32, ptr %169, align 4, !tbaa !17
  %171 = fsub double %17, %152
  %172 = fmul double %171, 6.000000e+00
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef %170, double noundef %172)
          to label %173 unwind label %.loopexit

173:                                              ; preds = %168, %164
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %165) #8
  %175 = load i32, ptr %174, align 4, !tbaa !17
  %.not174 = icmp eq i32 %175, -1
  br i1 %.not174, label %182, label %176

176:                                              ; preds = %173
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %165) #8
  %178 = load i32, ptr %177, align 4, !tbaa !17
  %179 = fsub double %17, %152
  %180 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %179, i32 noundef 2)
  %181 = fmul double %180, 1.200000e+01
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef %178, double noundef %181)
          to label %182 unwind label %.loopexit

182:                                              ; preds = %176, %173
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %165) #8
  %184 = load i32, ptr %183, align 4, !tbaa !17
  %.not175 = icmp eq i32 %184, -1
  br i1 %.not175, label %191, label %185

185:                                              ; preds = %182
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %165) #8
  %187 = load i32, ptr %186, align 4, !tbaa !17
  %188 = fsub double %17, %152
  %189 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %188, i32 noundef 3)
  %190 = fmul double %189, 2.000000e+01
  invoke void @MatNd_set(ptr noundef %0, i32 noundef %142, i32 noundef %187, double noundef %190)
          to label %191 unwind label %.loopexit

191:                                              ; preds = %185, %182
  %192 = add nuw nsw i64 %.0156223, 1
  %exitcond263.not = icmp eq i64 %192, %.0163226
  br i1 %exitcond263.not, label %._crit_edge225, label %.lr.ph224, !llvm.loop !21

193:                                              ; preds = %._crit_edge225, %140
  %.3 = phi i64 [ %150, %._crit_edge225 ], [ %.2, %140 ]
  %194 = add nuw nsw i64 %.0163226, 1
  %195 = load i32, ptr %6, align 8, !tbaa !5
  %196 = zext i32 %195 to i64
  %197 = icmp ult i64 %194, %196
  br i1 %197, label %11, label %._crit_edge230, !llvm.loop !22

198:                                              ; preds = %.loopexit, %.loopexit.split-lp, %.loopexit185, %.loopexit.split-lp186, %.loopexit191, %.loopexit.split-lp192, %38, %9
  %.pn.pn = phi { ptr, i32 } [ %10, %9 ], [ %39, %38 ], [ %lpad.loopexit193, %.loopexit191 ], [ %lpad.loopexit.split-lp194, %.loopexit.split-lp192 ], [ %lpad.loopexit187, %.loopexit185 ], [ %lpad.loopexit.split-lp188, %.loopexit.split-lp186 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 "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 = { "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 = { 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 #6 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn 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, !10, i64 8}
!6 = !{!"_ZTS6_MatNd", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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