; LLVM IR from Dimandragon/non-parametric-dsp :: 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, 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.180 = 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_impl36smoothnessmonitorexportc1test1reportEPKNS_24optguardnonc1test1reportEPKNS_9ae_vectorEPS0_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 %200

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.180, 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 11
  %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 11
  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 12
  %54 = load i64, ptr %53, align 8, !tbaa !22
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %55, i32 0, i32 12
  store i64 %54, ptr %56, align 8, !tbaa !22
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !23
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %60, i32 0, i32 1
  store i64 %59, ptr %61, align 8, !tbaa !23
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !17
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %65, i32 0, i32 2
  store i64 %64, ptr %66, align 8, !tbaa !17
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %67, i32 0, i32 8
  %69 = load i64, ptr %68, align 8, !tbaa !24
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %70, i32 0, i32 8
  store i64 %69, ptr %71, align 8, !tbaa !24
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %72, i32 0, i32 5
  %74 = load i64, ptr %73, align 8, !tbaa !18
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %75, i32 0, i32 5
  store i64 %74, ptr %76, align 8, !tbaa !18
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %77, i32 0, i32 3
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %79, i32 0, i32 5
  %81 = load i64, ptr %80, align 8, !tbaa !18
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %78, i64 noundef %81, ptr noundef %82)
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %85, i32 0, i32 5
  %87 = load i64, ptr %86, align 8, !tbaa !18
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %84, i64 noundef %87, ptr noundef %88)
  store i64 0, ptr %9, align 8, !tbaa !25
  br label %89

89:                                               ; preds = %137, %34
  %90 = load i64, ptr %9, align 8, !tbaa !25
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %91, i32 0, i32 5
  %93 = load i64, ptr %92, align 8, !tbaa !18
  %94 = sub nsw i64 %93, 1
  %95 = icmp sle i64 %90, %94
  br i1 %95, label %96, label %140

96:                                               ; preds = %89
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  %101 = load i64, ptr %9, align 8, !tbaa !25
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !27
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  %107 = load i64, ptr %9, align 8, !tbaa !25
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !27
  %110 = fmul double %103, %109
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %111, i32 0, i32 3
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !26
  %115 = load i64, ptr %9, align 8, !tbaa !25
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double %110, ptr %116, align 8, !tbaa !27
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %117, i32 0, i32 4
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !26
  %121 = load i64, ptr %9, align 8, !tbaa !25
  %122 = getelementptr inbounds double, ptr %120, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !27
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = load i64, ptr %9, align 8, !tbaa !25
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !27
  %130 = fmul double %123, %129
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = load i64, ptr %9, align 8, !tbaa !25
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  store double %130, ptr %136, align 8, !tbaa !27
  br label %137

137:                                              ; preds = %96
  %138 = load i64, ptr %9, align 8, !tbaa !25
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %9, align 8, !tbaa !25
  br label %89, !llvm.loop !29

140:                                              ; preds = %89
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %141, i32 0, i32 6
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %143, i32 0, i32 8
  %145 = load i64, ptr %144, align 8, !tbaa !24
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %142, i64 noundef %145, ptr noundef %146)
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %147, i32 0, i32 7
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %149, i32 0, i32 8
  %151 = load i64, ptr %150, align 8, !tbaa !24
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %148, i64 noundef %151, ptr noundef %152)
  store i64 0, ptr %9, align 8, !tbaa !25
  br label %153

153:                                              ; preds = %196, %140
  %154 = load i64, ptr %9, align 8, !tbaa !25
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %155, i32 0, i32 8
  %157 = load i64, ptr %156, align 8, !tbaa !24
  %158 = sub nsw i64 %157, 1
  %159 = icmp sle i64 %154, %158
  br i1 %159, label %160, label %199

160:                                              ; preds = %153
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %161, i32 0, i32 6
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %162, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !26
  %165 = load i64, ptr %9, align 8, !tbaa !25
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !27
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %168, i32 0, i32 6
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !26
  %172 = load i64, ptr %9, align 8, !tbaa !25
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store double %167, ptr %173, align 8, !tbaa !27
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %174, i32 0, i32 7
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  %178 = load i64, ptr %9, align 8, !tbaa !25
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !27
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !26
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %184, i32 0, i32 2
  %186 = load i64, ptr %185, align 8, !tbaa !17
  %187 = getelementptr inbounds double, ptr %183, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !27
  %189 = fdiv double %180, %188
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %190, i32 0, i32 7
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !26
  %194 = load i64, ptr %9, align 8, !tbaa !25
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  store double %189, ptr %195, align 8, !tbaa !27
  br label %196

196:                                              ; preds = %160
  %197 = load i64, ptr %9, align 8, !tbaa !25
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %9, align 8, !tbaa !25
  br label %153, !llvm.loop !31

199:                                              ; preds = %153
  br label %229

200:                                              ; preds = %4
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %201, i32 0, i32 9
  store i64 -1, ptr %202, align 8, !tbaa !19
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %203, i32 0, i32 10
  store i64 -1, ptr %204, align 8, !tbaa !20
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %205, i32 0, i32 11
  store i64 -1, ptr %206, align 8, !tbaa !21
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %207, i32 0, i32 12
  store i64 -1, ptr %208, align 8, !tbaa !22
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %209, i32 0, i32 1
  store i64 -1, ptr %210, align 8, !tbaa !23
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %211, i32 0, i32 2
  store i64 -1, ptr %212, align 8, !tbaa !17
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %213, i32 0, i32 8
  store i64 0, ptr %214, align 8, !tbaa !24
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %215, i32 0, i32 5
  store i64 0, ptr %216, align 8, !tbaa !18
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %217, i32 0, i32 3
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %218, i64 noundef 0, ptr noundef %219)
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %221, i64 noundef 0, ptr noundef %222)
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %223, i32 0, i32 6
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %224, i64 noundef 0, ptr noundef %225)
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test1report", ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %227, i64 noundef 0, ptr noundef %228)
  br label %229

229:                                              ; preds = %200, %199
  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, !12, i64 312, !12, i64 320}
!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 312}
!22 = !{!10, !12, i64 320}
!23 = !{!10, !12, i64 8}
!24 = !{!10, !12, i64 288}
!25 = !{!12, !12, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


; 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.180 = 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_impl36smoothnessmonitorexportc1test1reportEPKNS_24optguardnonc1test1reportEPKNS_9ae_vectorEPS0_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 %88

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.180, 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 312
  %21 = getelementptr inbounds i8, ptr %2, i64 312
  %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 8
  %24 = getelementptr inbounds i8, ptr %2, i64 8
  %25 = load <2 x i64>, ptr %23, align 8, !tbaa !18
  store <2 x i64> %25, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %0, i64 288
  %27 = load i64, ptr %26, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %2, i64 288
  store i64 %27, ptr %28, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 152
  %30 = load i64, ptr %29, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %2, i64 152
  store i64 %30, ptr %31, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %30, ptr noundef %3)
  %33 = getelementptr inbounds i8, ptr %2, i64 88
  %34 = load i64, ptr %29, align 8, !tbaa !17
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %33, i64 noundef %34, ptr noundef %3)
  %35 = load i64, ptr %29, align 8, !tbaa !17
  %.not.not80 = icmp sgt i64 %35, 0
  br i1 %.not.not80, label %.lr.ph, label %._crit_edge

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

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

._crit_edge:                                      ; preds = %41, %15
  %61 = getelementptr inbounds i8, ptr %2, i64 160
  %62 = load i64, ptr %26, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %61, i64 noundef %62, ptr noundef %3)
  %63 = getelementptr inbounds i8, ptr %2, i64 224
  %64 = load i64, ptr %26, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %63, i64 noundef %64, ptr noundef %3)
  %65 = load i64, ptr %26, align 8, !tbaa !19
  %.not.not7982 = icmp sgt i64 %65, 0
  br i1 %.not.not7982, label %.lr.ph85, label %.loopexit

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

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

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

.loopexit:                                        ; preds = %72, %._crit_edge, %88
  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, !10, i64 312, !10, i64 320}
!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