; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (optimization)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }

@.str.127 = external hidden unnamed_addr constant [61 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl36smoothnessmonitorexportc1test1reportEPNS_24optguardnonc1test1reportEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %10, i32 0, i32 0
  %12 = load i8, ptr %11, align 8, !tbaa !9, !range !15, !noundef !16
  %13 = trunc i8 %12 to i1
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %14, i32 0, i32 0
  %16 = zext i1 %13 to i8
  store i8 %16, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %17, i32 0, i32 0
  %19 = load i8, ptr %18, align 8, !tbaa !9, !range !15, !noundef !16
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %190

21:                                               ; preds = %4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %22, i32 0, i32 2
  %24 = load i64, ptr %23, align 8, !tbaa !17
  %25 = icmp sge i64 %24, 0
  br i1 %25, label %26, label %34

26:                                               ; preds = %21
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %27, i32 0, i32 2
  %29 = load i64, ptr %28, align 8, !tbaa !17
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %30, i32 0, i32 5
  %32 = load i64, ptr %31, align 8, !tbaa !18
  %33 = icmp slt i64 %29, %32
  br label %34

34:                                               ; preds = %26, %21
  %35 = phi i1 [ false, %21 ], [ %33, %26 ]
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.127, ptr noundef %36)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %37, i32 0, i32 9
  %39 = load i64, ptr %38, align 8, !tbaa !19
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %40, i32 0, i32 9
  store i64 %39, ptr %41, align 8, !tbaa !19
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %42, i32 0, i32 10
  %44 = load i64, ptr %43, align 8, !tbaa !20
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %45, i32 0, i32 10
  store i64 %44, ptr %46, align 8, !tbaa !20
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !21
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %50, i32 0, i32 1
  store i64 %49, ptr %51, align 8, !tbaa !21
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %52, i32 0, i32 2
  %54 = load i64, ptr %53, align 8, !tbaa !17
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %55, i32 0, i32 2
  store i64 %54, ptr %56, align 8, !tbaa !17
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %57, i32 0, i32 8
  %59 = load i64, ptr %58, align 8, !tbaa !22
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %60, i32 0, i32 8
  store i64 %59, ptr %61, align 8, !tbaa !22
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %62, i32 0, i32 5
  %64 = load i64, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %65, i32 0, i32 5
  store i64 %64, ptr %66, align 8, !tbaa !18
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %69, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %68, i64 noundef %71, ptr noundef %72)
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %75, i32 0, i32 5
  %77 = load i64, ptr %76, align 8, !tbaa !18
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %74, i64 noundef %77, ptr noundef %78)
  store i64 0, ptr %9, align 8, !tbaa !23
  br label %79

79:                                               ; preds = %127, %34
  %80 = load i64, ptr %9, align 8, !tbaa !23
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %81, i32 0, i32 5
  %83 = load i64, ptr %82, align 8, !tbaa !18
  %84 = sub nsw i64 %83, 1
  %85 = icmp sle i64 %80, %84
  br i1 %85, label %86, label %130

86:                                               ; preds = %79
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %87, i32 0, i32 3
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = load i64, ptr %9, align 8, !tbaa !23
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !25
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  %97 = load i64, ptr %9, align 8, !tbaa !23
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !25
  %100 = fmul double %93, %99
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %101, i32 0, i32 3
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !24
  %105 = load i64, ptr %9, align 8, !tbaa !23
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double %100, ptr %106, align 8, !tbaa !25
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %107, i32 0, i32 4
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !24
  %111 = load i64, ptr %9, align 8, !tbaa !23
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !25
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !24
  %117 = load i64, ptr %9, align 8, !tbaa !23
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !25
  %120 = fmul double %113, %119
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %121, i32 0, i32 4
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !24
  %125 = load i64, ptr %9, align 8, !tbaa !23
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  store double %120, ptr %126, align 8, !tbaa !25
  br label %127

127:                                              ; preds = %86
  %128 = load i64, ptr %9, align 8, !tbaa !23
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %9, align 8, !tbaa !23
  br label %79, !llvm.loop !27

130:                                              ; preds = %79
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %131, i32 0, i32 6
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %133, i32 0, i32 8
  %135 = load i64, ptr %134, align 8, !tbaa !22
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %132, i64 noundef %135, ptr noundef %136)
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %137, i32 0, i32 7
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %139, i32 0, i32 8
  %141 = load i64, ptr %140, align 8, !tbaa !22
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %138, i64 noundef %141, ptr noundef %142)
  store i64 0, ptr %9, align 8, !tbaa !23
  br label %143

143:                                              ; preds = %186, %130
  %144 = load i64, ptr %9, align 8, !tbaa !23
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %145, i32 0, i32 8
  %147 = load i64, ptr %146, align 8, !tbaa !22
  %148 = sub nsw i64 %147, 1
  %149 = icmp sle i64 %144, %148
  br i1 %149, label %150, label %189

150:                                              ; preds = %143
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %151, i32 0, i32 6
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !24
  %155 = load i64, ptr %9, align 8, !tbaa !23
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !25
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %158, i32 0, i32 6
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !24
  %162 = load i64, ptr %9, align 8, !tbaa !23
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  store double %157, ptr %163, align 8, !tbaa !25
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %164, i32 0, i32 7
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %165, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !24
  %168 = load i64, ptr %9, align 8, !tbaa !23
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !25
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !24
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %174, i32 0, i32 2
  %176 = load i64, ptr %175, align 8, !tbaa !17
  %177 = getelementptr inbounds double, ptr %173, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !25
  %179 = fdiv double %170, %178
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %180, i32 0, i32 7
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !24
  %184 = load i64, ptr %9, align 8, !tbaa !23
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double %179, ptr %185, align 8, !tbaa !25
  br label %186

186:                                              ; preds = %150
  %187 = load i64, ptr %9, align 8, !tbaa !23
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %9, align 8, !tbaa !23
  br label %143, !llvm.loop !29

189:                                              ; preds = %143
  br label %215

190:                                              ; preds = %4
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %191, i32 0, i32 9
  store i64 -1, ptr %192, align 8, !tbaa !19
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %193, i32 0, i32 10
  store i64 -1, ptr %194, align 8, !tbaa !20
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %195, i32 0, i32 1
  store i64 -1, ptr %196, align 8, !tbaa !21
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %197, i32 0, i32 2
  store i64 -1, ptr %198, align 8, !tbaa !17
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %199, i32 0, i32 8
  store i64 0, ptr %200, align 8, !tbaa !22
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %201, i32 0, i32 5
  store i64 0, ptr %202, align 8, !tbaa !18
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %203, i32 0, i32 3
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %204, i64 noundef 0, ptr noundef %205)
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %206, i32 0, i32 4
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %207, i64 noundef 0, ptr noundef %208)
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %209, i32 0, i32 6
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %210, i64 noundef 0, ptr noundef %211)
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %212, i32 0, i32 7
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %213, i64 noundef 0, ptr noundef %214)
  br label %215

215:                                              ; preds = %190, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

!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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !11, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 88, !12, i64 152, !13, i64 160, !13, i64 224, !12, i64 288, !12, i64 296, !12, i64 304}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !11, i64 16, !14, i64 24, !7, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !12, i64 16}
!18 = !{!10, !12, i64 152}
!19 = !{!10, !12, i64 296}
!20 = !{!10, !12, i64 304}
!21 = !{!10, !12, i64 8}
!22 = !{!10, !12, i64 288}
!23 = !{!12, !12, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.127 = external hidden unnamed_addr constant [61 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl36smoothnessmonitorexportc1test1reportEPNS_24optguardnonc1test1reportEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = load i8, ptr %0, align 8, !tbaa !5, !range !14, !noundef !15
  store i8 %5, ptr %2, align 8, !tbaa !5
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %7, label %85

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load i64, ptr %8, align 8, !tbaa !16
  %10 = icmp sgt i64 %9, -1
  br i1 %10, label %11, label %15

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 152
  %13 = load i64, ptr %12, align 8, !tbaa !17
  %14 = icmp slt i64 %9, %13
  br label %15

15:                                               ; preds = %11, %7
  %16 = phi i1 [ false, %7 ], [ %14, %11 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.127, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 296
  %18 = getelementptr inbounds i8, ptr %2, i64 296
  %19 = load <2 x i64>, ptr %17, align 8, !tbaa !18
  store <2 x i64> %19, ptr %18, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = getelementptr inbounds i8, ptr %2, i64 8
  %22 = load <2 x i64>, ptr %20, align 8, !tbaa !18
  store <2 x i64> %22, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 288
  %24 = load i64, ptr %23, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %2, i64 288
  store i64 %24, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 152
  %27 = load i64, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %2, i64 152
  store i64 %27, ptr %28, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %2, i64 24
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %29, i64 noundef %27, ptr noundef %3)
  %30 = getelementptr inbounds i8, ptr %2, i64 88
  %31 = load i64, ptr %26, align 8, !tbaa !17
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %31, ptr noundef %3)
  %32 = load i64, ptr %26, align 8, !tbaa !17
  %.not.not74 = icmp sgt i64 %32, 0
  br i1 %.not.not74, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  %34 = getelementptr inbounds i8, ptr %1, i64 56
  %35 = getelementptr inbounds i8, ptr %2, i64 80
  %36 = getelementptr inbounds i8, ptr %0, i64 144
  %37 = getelementptr inbounds i8, ptr %2, i64 144
  br label %38

38:                                               ; preds = %.lr.ph, %38
  %.075 = phi i64 [ 0, %.lr.ph ], [ %57, %38 ]
  %39 = load ptr, ptr %33, align 8, !tbaa !20
  %40 = getelementptr inbounds double, ptr %39, i64 %.075
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = load ptr, ptr %34, align 8, !tbaa !20
  %43 = getelementptr inbounds double, ptr %42, i64 %.075
  %44 = load double, ptr %43, align 8, !tbaa !21
  %45 = fmul double %41, %44
  %46 = load ptr, ptr %35, align 8, !tbaa !20
  %47 = getelementptr inbounds double, ptr %46, i64 %.075
  store double %45, ptr %47, align 8, !tbaa !21
  %48 = load ptr, ptr %36, align 8, !tbaa !20
  %49 = getelementptr inbounds double, ptr %48, i64 %.075
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = load ptr, ptr %34, align 8, !tbaa !20
  %52 = getelementptr inbounds double, ptr %51, i64 %.075
  %53 = load double, ptr %52, align 8, !tbaa !21
  %54 = fmul double %50, %53
  %55 = load ptr, ptr %37, align 8, !tbaa !20
  %56 = getelementptr inbounds double, ptr %55, i64 %.075
  store double %54, ptr %56, align 8, !tbaa !21
  %57 = add nuw nsw i64 %.075, 1
  %exitcond.not = icmp eq i64 %57, %32
  br i1 %exitcond.not, label %._crit_edge, label %38, !llvm.loop !23

._crit_edge:                                      ; preds = %38, %15
  %58 = getelementptr inbounds i8, ptr %2, i64 160
  %59 = load i64, ptr %23, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %58, i64 noundef %59, ptr noundef %3)
  %60 = getelementptr inbounds i8, ptr %2, i64 224
  %61 = load i64, ptr %23, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %60, i64 noundef %61, ptr noundef %3)
  %62 = load i64, ptr %23, align 8, !tbaa !19
  %.not.not7376 = icmp sgt i64 %62, 0
  br i1 %.not.not7376, label %.lr.ph79, label %.loopexit

.lr.ph79:                                         ; preds = %._crit_edge
  %63 = getelementptr inbounds i8, ptr %0, i64 216
  %64 = getelementptr inbounds i8, ptr %2, i64 216
  %65 = getelementptr inbounds i8, ptr %0, i64 280
  %66 = getelementptr inbounds i8, ptr %1, i64 56
  %67 = load i64, ptr %8, align 8, !tbaa !16
  %68 = getelementptr inbounds i8, ptr %2, i64 280
  br label %69

69:                                               ; preds = %.lr.ph79, %69
  %.177 = phi i64 [ 0, %.lr.ph79 ], [ %84, %69 ]
  %70 = load ptr, ptr %63, align 8, !tbaa !20
  %71 = getelementptr inbounds double, ptr %70, i64 %.177
  %72 = load double, ptr %71, align 8, !tbaa !21
  %73 = load ptr, ptr %64, align 8, !tbaa !20
  %74 = getelementptr inbounds double, ptr %73, i64 %.177
  store double %72, ptr %74, align 8, !tbaa !21
  %75 = load ptr, ptr %65, align 8, !tbaa !20
  %76 = getelementptr inbounds double, ptr %75, i64 %.177
  %77 = load double, ptr %76, align 8, !tbaa !21
  %78 = load ptr, ptr %66, align 8, !tbaa !20
  %79 = getelementptr inbounds double, ptr %78, i64 %67
  %80 = load double, ptr %79, align 8, !tbaa !21
  %81 = fdiv double %77, %80
  %82 = load ptr, ptr %68, align 8, !tbaa !20
  %83 = getelementptr inbounds double, ptr %82, i64 %.177
  store double %81, ptr %83, align 8, !tbaa !21
  %84 = add nuw nsw i64 %.177, 1
  %exitcond80.not = icmp eq i64 %84, %62
  br i1 %exitcond80.not, label %.loopexit, label %69, !llvm.loop !25

85:                                               ; preds = %4
  %86 = getelementptr inbounds i8, ptr %2, i64 296
  %87 = getelementptr inbounds i8, ptr %2, i64 8
  %88 = getelementptr inbounds i8, ptr %2, i64 288
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %87, i8 -1, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %86, i8 -1, i64 16, i1 false)
  store i64 0, ptr %88, align 8, !tbaa !19
  %89 = getelementptr inbounds i8, ptr %2, i64 152
  store i64 0, ptr %89, align 8, !tbaa !17
  %90 = getelementptr inbounds i8, ptr %2, i64 24
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %90, i64 noundef 0, ptr noundef %3)
  %91 = getelementptr inbounds i8, ptr %2, i64 88
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %91, i64 noundef 0, ptr noundef %3)
  %92 = getelementptr inbounds i8, ptr %2, i64 160
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %92, i64 noundef 0, ptr noundef %3)
  %93 = getelementptr inbounds i8, ptr %2, i64 224
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %93, i64 noundef 0, ptr noundef %3)
  br label %.loopexit

.loopexit:                                        ; preds = %69, %._crit_edge, %85
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 88, !10, i64 152, !11, i64 160, !11, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !7, i64 16, !12, i64 24, !8, i64 56}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !10, i64 16}
!17 = !{!6, !10, i64 152}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 288}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass