; LLVM IR from garethcmurphy/Interstellar-Jet-MHD-Simulation :: src/eigenvectors.ll (Z11eigenvaluesPdS_)

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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
define dso_local noundef i32 @_Z11eigenvaluesPdS_(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %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 double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca i32, align 4
  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 8, ptr %5) #4
  store double 0x3FFAAAAAAAAAAAAB, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %54 = load double, ptr %5, align 8, !tbaa !9
  %55 = fsub double %54, 1.000000e+00
  store double %55, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %56 = load double, ptr %8, align 8, !tbaa !9
  %57 = fdiv double 1.000000e+00, %56
  store double %57, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double 0.000000e+00, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store double 0.000000e+00, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store double 0.000000e+00, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store double 0.000000e+00, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  store double 0.000000e+00, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store double 0.000000e+00, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  store double 0.000000e+00, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  store double 0.000000e+00, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  store double 0.000000e+00, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  store double 0.000000e+00, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  store double 0.000000e+00, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %58 = call double @sqrt(double noundef 2.000000e+00) #4
  store double %58, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  store double 0.000000e+00, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  store double 0.000000e+00, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  store double 0.000000e+00, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  store double 0.000000e+00, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  store double 0.000000e+00, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  store double 0.000000e+00, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  store double 0.000000e+00, ptr %45, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  store double 0.000000e+00, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  store double 0.000000e+00, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  store double 0.000000e+00, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  store double 0.000000e+00, ptr %49, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  store double 0.000000e+00, ptr %50, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  store double 3.141590e+00, ptr %51, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  store double 0.000000e+00, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #4
  store i32 0, ptr %53, align 4, !tbaa !11
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 0
  %61 = load double, ptr %60, align 8, !tbaa !9
  store double %61, ptr %10, align 8, !tbaa !9
  %62 = load double, ptr %10, align 8, !tbaa !9
  %63 = fdiv double 1.000000e+00, %62
  store double %63, ptr %11, align 8, !tbaa !9
  %64 = load double, ptr %10, align 8, !tbaa !9
  %65 = call double @sqrt(double noundef %64) #4
  store double %65, ptr %49, align 8, !tbaa !9
  %66 = load double, ptr %11, align 8, !tbaa !9
  %67 = call double @sqrt(double noundef %66) #4
  store double %67, ptr %50, align 8, !tbaa !9
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !9
  store double %70, ptr %12, align 8, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 2
  %73 = load double, ptr %72, align 8, !tbaa !9
  store double %73, ptr %13, align 8, !tbaa !9
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 3
  %76 = load double, ptr %75, align 8, !tbaa !9
  store double %76, ptr %14, align 8, !tbaa !9
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 5
  %79 = load double, ptr %78, align 8, !tbaa !9
  store double %79, ptr %15, align 8, !tbaa !9
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 6
  %82 = load double, ptr %81, align 8, !tbaa !9
  store double %82, ptr %16, align 8, !tbaa !9
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 7
  %85 = load double, ptr %84, align 8, !tbaa !9
  store double %85, ptr %17, align 8, !tbaa !9
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 5
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = load double, ptr %50, align 8, !tbaa !9
  %90 = fmul double %88, %89
  store double %90, ptr %18, align 8, !tbaa !9
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %91, i64 6
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = load double, ptr %50, align 8, !tbaa !9
  %95 = fmul double %93, %94
  store double %95, ptr %19, align 8, !tbaa !9
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 7
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = load double, ptr %50, align 8, !tbaa !9
  %100 = fmul double %98, %99
  store double %100, ptr %20, align 8, !tbaa !9
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds double, ptr %101, i64 4
  %103 = load double, ptr %102, align 8, !tbaa !9
  store double %103, ptr %21, align 8, !tbaa !9
  %104 = load double, ptr %18, align 8, !tbaa !9
  %105 = load double, ptr %18, align 8, !tbaa !9
  %106 = load double, ptr %19, align 8, !tbaa !9
  %107 = load double, ptr %19, align 8, !tbaa !9
  %108 = fmul double %106, %107
  %109 = call double @llvm.fmuladd.f64(double %104, double %105, double %108)
  %110 = load double, ptr %20, align 8, !tbaa !9
  %111 = load double, ptr %20, align 8, !tbaa !9
  %112 = call double @llvm.fmuladd.f64(double %110, double %111, double %109)
  store double %112, ptr %32, align 8, !tbaa !9
  %113 = load double, ptr %12, align 8, !tbaa !9
  %114 = load double, ptr %12, align 8, !tbaa !9
  %115 = load double, ptr %13, align 8, !tbaa !9
  %116 = load double, ptr %13, align 8, !tbaa !9
  %117 = fmul double %115, %116
  %118 = call double @llvm.fmuladd.f64(double %113, double %114, double %117)
  %119 = load double, ptr %14, align 8, !tbaa !9
  %120 = load double, ptr %14, align 8, !tbaa !9
  %121 = call double @llvm.fmuladd.f64(double %119, double %120, double %118)
  store double %121, ptr %33, align 8, !tbaa !9
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = load double, ptr %18, align 8, !tbaa !9
  %124 = fmul double %122, %123
  store double %124, ptr %24, align 8, !tbaa !9
  %125 = load double, ptr %24, align 8, !tbaa !9
  %126 = call double @sqrt(double noundef %125) #4
  store double %126, ptr %23, align 8, !tbaa !9
  %127 = load double, ptr %5, align 8, !tbaa !9
  %128 = load double, ptr %21, align 8, !tbaa !9
  %129 = fmul double %127, %128
  %130 = load double, ptr %11, align 8, !tbaa !9
  %131 = fmul double %129, %130
  store double %131, ptr %28, align 8, !tbaa !9
  %132 = load double, ptr %28, align 8, !tbaa !9
  %133 = call double @sqrt(double noundef %132) #4
  store double %133, ptr %29, align 8, !tbaa !9
  %134 = load double, ptr %28, align 8, !tbaa !9
  %135 = fdiv double 1.000000e+00, %134
  store double %135, ptr %44, align 8, !tbaa !9
  %136 = load double, ptr %44, align 8, !tbaa !9
  %137 = fmul double %136, 5.000000e-01
  store double %137, ptr %45, align 8, !tbaa !9
  %138 = load double, ptr %28, align 8, !tbaa !9
  %139 = load double, ptr %32, align 8, !tbaa !9
  %140 = fadd double %138, %139
  store double %140, ptr %31, align 8, !tbaa !9
  %141 = load double, ptr %31, align 8, !tbaa !9
  %142 = load double, ptr %31, align 8, !tbaa !9
  %143 = load double, ptr %28, align 8, !tbaa !9
  %144 = fmul double 4.000000e+00, %143
  %145 = load double, ptr %24, align 8, !tbaa !9
  %146 = fmul double %144, %145
  %147 = fneg double %146
  %148 = call double @llvm.fmuladd.f64(double %141, double %142, double %147)
  %149 = call double @sqrt(double noundef %148) #4
  store double %149, ptr %30, align 8, !tbaa !9
  %150 = load double, ptr %31, align 8, !tbaa !9
  %151 = load double, ptr %30, align 8, !tbaa !9
  %152 = fsub double %150, %151
  %153 = fmul double 5.000000e-01, %152
  store double %153, ptr %26, align 8, !tbaa !9
  %154 = load double, ptr %31, align 8, !tbaa !9
  %155 = load double, ptr %30, align 8, !tbaa !9
  %156 = fadd double %154, %155
  %157 = fmul double 5.000000e-01, %156
  store double %157, ptr %27, align 8, !tbaa !9
  %158 = load double, ptr %26, align 8, !tbaa !9
  %159 = call double @sqrt(double noundef %158) #4
  store double %159, ptr %22, align 8, !tbaa !9
  %160 = load double, ptr %27, align 8, !tbaa !9
  %161 = call double @sqrt(double noundef %160) #4
  store double %161, ptr %25, align 8, !tbaa !9
  %162 = load double, ptr %12, align 8, !tbaa !9
  %163 = load double, ptr %25, align 8, !tbaa !9
  %164 = fsub double %162, %163
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 0
  store double %164, ptr %166, align 8, !tbaa !9
  %167 = load double, ptr %12, align 8, !tbaa !9
  %168 = load double, ptr %23, align 8, !tbaa !9
  %169 = fsub double %167, %168
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %170, i64 1
  store double %169, ptr %171, align 8, !tbaa !9
  %172 = load double, ptr %12, align 8, !tbaa !9
  %173 = load double, ptr %22, align 8, !tbaa !9
  %174 = fsub double %172, %173
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 2
  store double %174, ptr %176, align 8, !tbaa !9
  %177 = load double, ptr %12, align 8, !tbaa !9
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 3
  store double %177, ptr %179, align 8, !tbaa !9
  %180 = load double, ptr %12, align 8, !tbaa !9
  %181 = load double, ptr %22, align 8, !tbaa !9
  %182 = fadd double %180, %181
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds double, ptr %183, i64 4
  store double %182, ptr %184, align 8, !tbaa !9
  %185 = load double, ptr %12, align 8, !tbaa !9
  %186 = load double, ptr %23, align 8, !tbaa !9
  %187 = fadd double %185, %186
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 5
  store double %187, ptr %189, align 8, !tbaa !9
  %190 = load double, ptr %12, align 8, !tbaa !9
  %191 = load double, ptr %25, align 8, !tbaa !9
  %192 = fadd double %190, %191
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds double, ptr %193, i64 6
  store double %192, ptr %194, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) uwtable
define dso_local noundef i32 @_Z11eigenvaluesPdS_(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #2 {
  %3 = load double, ptr %0, align 8, !tbaa !5
  %4 = fdiv double 1.000000e+00, %3
  %5 = fcmp olt double %3, 0.000000e+00
  br i1 %5, label %cdce.call, label %cdce.end, !prof !9

cdce.call:                                        ; preds = %2
  %6 = tail call double @sqrt(double noundef %3) #4
  br label %cdce.end

cdce.end:                                         ; preds = %2, %cdce.call
  %7 = tail call double @sqrt(double noundef %4) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = load double, ptr %10, align 8, !tbaa !5
  %14 = load double, ptr %11, align 8, !tbaa !5
  %15 = load double, ptr %12, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = fmul double %17, 0x3FFAAAAAAAAAAAAB
  %19 = fmul double %4, %18
  %20 = fcmp olt double %19, 0.000000e+00
  br i1 %20, label %cdce.call72, label %cdce.end73, !prof !9

cdce.call72:                                      ; preds = %cdce.end
  %21 = tail call double @sqrt(double noundef %19) #4
  br label %cdce.end73

cdce.end73:                                       ; preds = %cdce.end, %cdce.call72
  %22 = fmul double %7, %13
  %23 = fmul double %22, %22
  %sqrt = tail call double @llvm.sqrt.f64(double %23)
  %24 = fmul double %7, %15
  %25 = fmul double %7, %14
  %26 = fmul double %25, %25
  %27 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %26)
  %28 = tail call double @llvm.fmuladd.f64(double %24, double %24, double %27)
  %29 = fadd double %19, %28
  %30 = fmul double %19, -4.000000e+00
  %31 = fmul double %23, %30
  %32 = tail call double @llvm.fmuladd.f64(double %29, double %29, double %31)
  %33 = tail call double @sqrt(double noundef %32) #4
  %34 = fsub double %29, %33
  %35 = fmul double %34, 5.000000e-01
  %36 = fadd double %29, %33
  %37 = fmul double %36, 5.000000e-01
  %38 = tail call double @sqrt(double noundef %35) #4
  %39 = tail call double @sqrt(double noundef %37) #4
  %40 = insertelement <2 x double> poison, double %9, i64 0
  %41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
  %42 = insertelement <2 x double> poison, double %39, i64 0
  %43 = insertelement <2 x double> %42, double %sqrt, i64 1
  %44 = fsub <2 x double> %41, %43
  store <2 x double> %44, ptr %1, align 8, !tbaa !5
  %45 = fsub double %9, %38
  %46 = getelementptr inbounds i8, ptr %1, i64 16
  store double %45, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %1, i64 24
  store double %9, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %1, i64 32
  %49 = insertelement <2 x double> poison, double %38, i64 0
  %50 = insertelement <2 x double> %49, double %sqrt, i64 1
  %51 = fadd <2 x double> %41, %50
  store <2 x double> %51, ptr %48, align 8, !tbaa !5
  %52 = fadd double %9, %39
  %53 = getelementptr inbounds i8, ptr %1, i64 48
  store double %52, ptr %53, align 8, !tbaa !5
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #3

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LibCallsShrinkWrapPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass