; LLVM IR from hpcg-benchmark/hpcg :: src (CG_ref)

; 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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%struct.SparseMatrix_STRUCT = type { ptr, ptr, i64, i64, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, %"class.std::unordered_map", %"class.std::vector", i8, i8, i8, i8, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.CGData_STRUCT = type { %struct.Vector_STRUCT, %struct.Vector_STRUCT, %struct.Vector_STRUCT, %struct.Vector_STRUCT }
%struct.Vector_STRUCT = type { i32, ptr, ptr }
%struct.Geometry_STRUCT = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i64, i64, i64, i64, i64, i64 }

@HPCG_fout = external global %"class.std::basic_ofstream", align 8
@.str = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6CG_refRK19SparseMatrix_STRUCTR13CGData_STRUCTRK13Vector_STRUCTRS4_idRiRdS9_Pdb(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %4, double noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %9, i1 noundef zeroext %10) #0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  %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 i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store i32 %4, ptr %16, align 4, !tbaa !9
  store double %5, ptr %17, align 8, !tbaa !11
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  %41 = zext i1 %10 to i8
  store i8 %41, ptr %22, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %42 = call noundef double @_Z7mytimerv()
  store double %42, ptr %23, align 8, !tbaa !11
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  store double 0.000000e+00, ptr %43, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store double 0.000000e+00, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store double 0.000000e+00, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store double 0.000000e+00, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SparseMatrix_STRUCT, ptr %44, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !15
  store i32 %46, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.CGData_STRUCT, ptr %47, i32 0, i32 0
  store ptr %48, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.CGData_STRUCT, ptr %49, i32 0, i32 1
  store ptr %50, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CGData_STRUCT, ptr %51, i32 0, i32 2
  store ptr %52, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.CGData_STRUCT, ptr %53, i32 0, i32 3
  store ptr %54, ptr %39, align 8, !tbaa !5
  %55 = load i8, ptr %22, align 1, !tbaa !13, !range !28, !noundef !29
  %56 = trunc i8 %55 to i1
  br i1 %56, label %67, label %57

57:                                               ; preds = %11
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.SparseMatrix_STRUCT, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !30
  %61 = getelementptr inbounds %struct.Geometry_STRUCT, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !31
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %57
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @HPCG_fout, ptr noundef @.str)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %67

67:                                               ; preds = %64, %57, %11
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %38, align 8, !tbaa !5
  call void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 8 dereferenceable(24) %69)
  %70 = call noundef double @_Z7mytimerv()
  store double %70, ptr %29, align 8, !tbaa !11
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load ptr, ptr %38, align 8, !tbaa !5
  %73 = load ptr, ptr %39, align 8, !tbaa !5
  %74 = call noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256) %71, ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(24) %73)
  %75 = call noundef double @_Z7mytimerv()
  %76 = load double, ptr %29, align 8, !tbaa !11
  %77 = fsub double %75, %76
  %78 = load double, ptr %32, align 8, !tbaa !11
  %79 = fadd double %78, %77
  store double %79, ptr %32, align 8, !tbaa !11
  %80 = call noundef double @_Z7mytimerv()
  store double %80, ptr %29, align 8, !tbaa !11
  %81 = load i32, ptr %35, align 4, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load ptr, ptr %39, align 8, !tbaa !5
  %84 = load ptr, ptr %36, align 8, !tbaa !5
  %85 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %81, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %82, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(24) %84)
  %86 = call noundef double @_Z7mytimerv()
  %87 = load double, ptr %29, align 8, !tbaa !11
  %88 = fsub double %86, %87
  %89 = load double, ptr %31, align 8, !tbaa !11
  %90 = fadd double %89, %88
  store double %90, ptr %31, align 8, !tbaa !11
  %91 = call noundef double @_Z7mytimerv()
  store double %91, ptr %29, align 8, !tbaa !11
  %92 = load i32, ptr %35, align 4, !tbaa !9
  %93 = load ptr, ptr %36, align 8, !tbaa !5
  %94 = load ptr, ptr %36, align 8, !tbaa !5
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %92, ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %97 = call noundef double @_Z7mytimerv()
  %98 = load double, ptr %29, align 8, !tbaa !11
  %99 = fsub double %97, %98
  %100 = load double, ptr %30, align 8, !tbaa !11
  %101 = fadd double %100, %99
  store double %101, ptr %30, align 8, !tbaa !11
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = call double @sqrt(double noundef %103) #6
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  store double %104, ptr %105, align 8, !tbaa !11
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = load ptr, ptr %20, align 8, !tbaa !5
  store double %107, ptr %108, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 1, ptr %40, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %252, %67
  %110 = load i32, ptr %40, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = icmp sle i32 %110, %111
  br i1 %112, label %113, label %121

113:                                              ; preds = %109
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = fdiv double %115, %117
  %119 = load double, ptr %17, align 8, !tbaa !11
  %120 = fcmp ogt double %118, %119
  br label %121

121:                                              ; preds = %113, %109
  %122 = phi i1 [ false, %109 ], [ %120, %113 ]
  br i1 %122, label %124, label %123

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %255

124:                                              ; preds = %121
  %125 = call noundef double @_Z7mytimerv()
  store double %125, ptr %29, align 8, !tbaa !11
  %126 = load i8, ptr %22, align 1, !tbaa !13, !range !28, !noundef !29
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %133

128:                                              ; preds = %124
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load ptr, ptr %36, align 8, !tbaa !5
  %131 = load ptr, ptr %37, align 8, !tbaa !5
  %132 = call noundef i32 @_Z13ComputeMG_refRK19SparseMatrix_STRUCTRK13Vector_STRUCTRS2_(ptr noundef nonnull align 8 dereferenceable(256) %129, ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(24) %131)
  br label %139

133:                                              ; preds = %124
  %134 = load i32, ptr %35, align 4, !tbaa !9
  %135 = load ptr, ptr %36, align 8, !tbaa !5
  %136 = load ptr, ptr %36, align 8, !tbaa !5
  %137 = load ptr, ptr %37, align 8, !tbaa !5
  %138 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %134, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %135, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull align 8 dereferenceable(24) %137)
  br label %139

139:                                              ; preds = %133, %128
  %140 = call noundef double @_Z7mytimerv()
  %141 = load double, ptr %29, align 8, !tbaa !11
  %142 = fsub double %140, %141
  %143 = load double, ptr %34, align 8, !tbaa !11
  %144 = fadd double %143, %142
  store double %144, ptr %34, align 8, !tbaa !11
  %145 = load i32, ptr %40, align 4, !tbaa !9
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %147, label %165

147:                                              ; preds = %139
  %148 = load ptr, ptr %37, align 8, !tbaa !5
  %149 = load ptr, ptr %38, align 8, !tbaa !5
  call void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 8 dereferenceable(24) %149)
  %150 = call noundef double @_Z7mytimerv()
  %151 = load double, ptr %29, align 8, !tbaa !11
  %152 = fsub double %150, %151
  %153 = load double, ptr %31, align 8, !tbaa !11
  %154 = fadd double %153, %152
  store double %154, ptr %31, align 8, !tbaa !11
  %155 = call noundef double @_Z7mytimerv()
  store double %155, ptr %29, align 8, !tbaa !11
  %156 = load i32, ptr %35, align 4, !tbaa !9
  %157 = load ptr, ptr %36, align 8, !tbaa !5
  %158 = load ptr, ptr %37, align 8, !tbaa !5
  %159 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %156, ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %160 = call noundef double @_Z7mytimerv()
  %161 = load double, ptr %29, align 8, !tbaa !11
  %162 = fsub double %160, %161
  %163 = load double, ptr %30, align 8, !tbaa !11
  %164 = fadd double %163, %162
  store double %164, ptr %30, align 8, !tbaa !11
  br label %192

165:                                              ; preds = %139
  %166 = load double, ptr %24, align 8, !tbaa !11
  store double %166, ptr %25, align 8, !tbaa !11
  %167 = call noundef double @_Z7mytimerv()
  store double %167, ptr %29, align 8, !tbaa !11
  %168 = load i32, ptr %35, align 4, !tbaa !9
  %169 = load ptr, ptr %36, align 8, !tbaa !5
  %170 = load ptr, ptr %37, align 8, !tbaa !5
  %171 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %168, ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %172 = call noundef double @_Z7mytimerv()
  %173 = load double, ptr %29, align 8, !tbaa !11
  %174 = fsub double %172, %173
  %175 = load double, ptr %30, align 8, !tbaa !11
  %176 = fadd double %175, %174
  store double %176, ptr %30, align 8, !tbaa !11
  %177 = load double, ptr %24, align 8, !tbaa !11
  %178 = load double, ptr %25, align 8, !tbaa !11
  %179 = fdiv double %177, %178
  store double %179, ptr %27, align 8, !tbaa !11
  %180 = call noundef double @_Z7mytimerv()
  store double %180, ptr %29, align 8, !tbaa !11
  %181 = load i32, ptr %35, align 4, !tbaa !9
  %182 = load ptr, ptr %37, align 8, !tbaa !5
  %183 = load double, ptr %27, align 8, !tbaa !11
  %184 = load ptr, ptr %38, align 8, !tbaa !5
  %185 = load ptr, ptr %38, align 8, !tbaa !5
  %186 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %181, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %182, double noundef %183, ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 8 dereferenceable(24) %185)
  %187 = call noundef double @_Z7mytimerv()
  %188 = load double, ptr %29, align 8, !tbaa !11
  %189 = fsub double %187, %188
  %190 = load double, ptr %31, align 8, !tbaa !11
  %191 = fadd double %190, %189
  store double %191, ptr %31, align 8, !tbaa !11
  br label %192

192:                                              ; preds = %165, %147
  %193 = call noundef double @_Z7mytimerv()
  store double %193, ptr %29, align 8, !tbaa !11
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load ptr, ptr %38, align 8, !tbaa !5
  %196 = load ptr, ptr %39, align 8, !tbaa !5
  %197 = call noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256) %194, ptr noundef nonnull align 8 dereferenceable(24) %195, ptr noundef nonnull align 8 dereferenceable(24) %196)
  %198 = call noundef double @_Z7mytimerv()
  %199 = load double, ptr %29, align 8, !tbaa !11
  %200 = fsub double %198, %199
  %201 = load double, ptr %32, align 8, !tbaa !11
  %202 = fadd double %201, %200
  store double %202, ptr %32, align 8, !tbaa !11
  %203 = call noundef double @_Z7mytimerv()
  store double %203, ptr %29, align 8, !tbaa !11
  %204 = load i32, ptr %35, align 4, !tbaa !9
  %205 = load ptr, ptr %38, align 8, !tbaa !5
  %206 = load ptr, ptr %39, align 8, !tbaa !5
  %207 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %204, ptr noundef nonnull align 8 dereferenceable(24) %205, ptr noundef nonnull align 8 dereferenceable(24) %206, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %208 = call noundef double @_Z7mytimerv()
  %209 = load double, ptr %29, align 8, !tbaa !11
  %210 = fsub double %208, %209
  %211 = load double, ptr %30, align 8, !tbaa !11
  %212 = fadd double %211, %210
  store double %212, ptr %30, align 8, !tbaa !11
  %213 = load double, ptr %24, align 8, !tbaa !11
  %214 = load double, ptr %28, align 8, !tbaa !11
  %215 = fdiv double %213, %214
  store double %215, ptr %26, align 8, !tbaa !11
  %216 = call noundef double @_Z7mytimerv()
  store double %216, ptr %29, align 8, !tbaa !11
  %217 = load i32, ptr %35, align 4, !tbaa !9
  %218 = load ptr, ptr %15, align 8, !tbaa !5
  %219 = load double, ptr %26, align 8, !tbaa !11
  %220 = load ptr, ptr %38, align 8, !tbaa !5
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %217, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %218, double noundef %219, ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 8 dereferenceable(24) %221)
  %223 = load i32, ptr %35, align 4, !tbaa !9
  %224 = load ptr, ptr %36, align 8, !tbaa !5
  %225 = load double, ptr %26, align 8, !tbaa !11
  %226 = fneg double %225
  %227 = load ptr, ptr %39, align 8, !tbaa !5
  %228 = load ptr, ptr %36, align 8, !tbaa !5
  %229 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %223, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %224, double noundef %226, ptr noundef nonnull align 8 dereferenceable(24) %227, ptr noundef nonnull align 8 dereferenceable(24) %228)
  %230 = call noundef double @_Z7mytimerv()
  %231 = load double, ptr %29, align 8, !tbaa !11
  %232 = fsub double %230, %231
  %233 = load double, ptr %31, align 8, !tbaa !11
  %234 = fadd double %233, %232
  store double %234, ptr %31, align 8, !tbaa !11
  %235 = call noundef double @_Z7mytimerv()
  store double %235, ptr %29, align 8, !tbaa !11
  %236 = load i32, ptr %35, align 4, !tbaa !9
  %237 = load ptr, ptr %36, align 8, !tbaa !5
  %238 = load ptr, ptr %36, align 8, !tbaa !5
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %236, ptr noundef nonnull align 8 dereferenceable(24) %237, ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %241 = call noundef double @_Z7mytimerv()
  %242 = load double, ptr %29, align 8, !tbaa !11
  %243 = fsub double %241, %242
  %244 = load double, ptr %30, align 8, !tbaa !11
  %245 = fadd double %244, %243
  store double %245, ptr %30, align 8, !tbaa !11
  %246 = load ptr, ptr %19, align 8, !tbaa !5
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = call double @sqrt(double noundef %247) #6
  %249 = load ptr, ptr %19, align 8, !tbaa !5
  store double %248, ptr %249, align 8, !tbaa !11
  %250 = load i32, ptr %40, align 4, !tbaa !9
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %250, ptr %251, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %192
  %253 = load i32, ptr %40, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %40, align 4, !tbaa !9
  br label %109, !llvm.loop !33

255:                                              ; preds = %123
  %256 = load double, ptr %30, align 8, !tbaa !11
  %257 = load ptr, ptr %21, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 1
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = fadd double %259, %256
  store double %260, ptr %258, align 8, !tbaa !11
  %261 = load double, ptr %31, align 8, !tbaa !11
  %262 = load ptr, ptr %21, align 8, !tbaa !5
  %263 = getelementptr inbounds double, ptr %262, i64 2
  %264 = load double, ptr %263, align 8, !tbaa !11
  %265 = fadd double %264, %261
  store double %265, ptr %263, align 8, !tbaa !11
  %266 = load double, ptr %32, align 8, !tbaa !11
  %267 = load ptr, ptr %21, align 8, !tbaa !5
  %268 = getelementptr inbounds double, ptr %267, i64 3
  %269 = load double, ptr %268, align 8, !tbaa !11
  %270 = fadd double %269, %266
  store double %270, ptr %268, align 8, !tbaa !11
  %271 = load double, ptr %33, align 8, !tbaa !11
  %272 = load ptr, ptr %21, align 8, !tbaa !5
  %273 = getelementptr inbounds double, ptr %272, i64 4
  %274 = load double, ptr %273, align 8, !tbaa !11
  %275 = fadd double %274, %271
  store double %275, ptr %273, align 8, !tbaa !11
  %276 = load double, ptr %34, align 8, !tbaa !11
  %277 = load ptr, ptr %21, align 8, !tbaa !5
  %278 = getelementptr inbounds double, ptr %277, i64 5
  %279 = load double, ptr %278, align 8, !tbaa !11
  %280 = fadd double %279, %276
  store double %280, ptr %278, align 8, !tbaa !11
  %281 = call noundef double @_Z7mytimerv()
  %282 = load double, ptr %23, align 8, !tbaa !11
  %283 = fsub double %281, %282
  %284 = load ptr, ptr %21, align 8, !tbaa !5
  %285 = getelementptr inbounds double, ptr %284, i64 0
  %286 = load double, ptr %285, align 8, !tbaa !11
  %287 = fadd double %286, %283
  store double %287, ptr %285, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  ret i32 0
}

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

declare noundef double @_Z7mytimerv() #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

declare noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

declare noundef i32 @_Z13ComputeMG_refRK19SparseMatrix_STRUCTRK13Vector_STRUCTRS2_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !10, i64 32}
!16 = !{!"_ZTS19SparseMatrix_STRUCT", !6, i64 0, !6, i64 8, !17, i64 16, !17, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !18, i64 88, !24, i64 144, !14, i64 168, !14, i64 169, !14, i64 170, !14, i64 171, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIxiSt4hashIxESt8equal_toIxESaISt4pairIKxiEEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIxSt4pairIKxiESaIS2_ENSt8__detail10_Select1stESt8equal_toIxESt4hashIxENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !23, i64 0, !20, i64 8}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIxSaIxEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!16, !6, i64 8}
!31 = !{!32, !10, i64 4}
!32 = !{!"_ZTS15Geometry_STRUCT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; 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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@HPCG_fout = external global %"class.std::basic_ofstream", align 8
@.str = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6CG_refRK19SparseMatrix_STRUCTR13CGData_STRUCTRK13Vector_STRUCTRS4_idRiRdS9_Pdb(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %4, double noundef %5, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr nocapture noundef nonnull align 8 dereferenceable(8) %8, ptr nocapture noundef %9, i1 noundef zeroext %10) local_unnamed_addr #0 {
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = tail call noundef double @_Z7mytimerv()
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %1, i64 24
  %19 = getelementptr inbounds i8, ptr %1, i64 48
  %20 = getelementptr inbounds i8, ptr %1, i64 72
  br i1 %10, label %30, label %21

21:                                               ; preds = %11
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !25
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !26
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %30

27:                                               ; preds = %21
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @HPCG_fout, ptr noundef nonnull @.str)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %30

30:                                               ; preds = %27, %21, %11
  tail call void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %19)
  %31 = tail call noundef double @_Z7mytimerv()
  %32 = tail call noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %33 = tail call noundef double @_Z7mytimerv()
  %34 = fsub double %33, %31
  %35 = fadd double %34, 0.000000e+00
  %36 = tail call noundef double @_Z7mytimerv()
  %37 = tail call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %38 = tail call noundef double @_Z7mytimerv()
  %39 = tail call noundef double @_Z7mytimerv()
  %40 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %41 = call noundef double @_Z7mytimerv()
  %42 = insertelement <2 x double> poison, double %41, i64 0
  %43 = insertelement <2 x double> %42, double %38, i64 1
  %44 = insertelement <2 x double> poison, double %39, i64 0
  %45 = insertelement <2 x double> %44, double %36, i64 1
  %46 = fsub <2 x double> %43, %45
  %47 = fadd <2 x double> %46, zeroinitializer
  %48 = load double, ptr %7, align 8, !tbaa !5
  %49 = call double @sqrt(double noundef %48) #6
  store double %49, ptr %7, align 8, !tbaa !5
  store double %49, ptr %8, align 8, !tbaa !5
  %.not118 = icmp slt i32 %4, 1
  %50 = insertelement <2 x double> <double poison, double 0.000000e+00>, double %35, i64 0
  br i1 %.not118, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %30
  %51 = load double, ptr %7, align 8, !tbaa !5
  %52 = fdiv double %51, %49
  %53 = fcmp ogt double %52, %5
  br i1 %53, label %54, label %.critedge

54:                                               ; preds = %.lr.ph.preheader
  %55 = call noundef double @_Z7mytimerv()
  br i1 %10, label %58, label %56

56:                                               ; preds = %54
  %57 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
  br label %60

58:                                               ; preds = %54
  %59 = call noundef i32 @_Z13ComputeMG_refRK19SparseMatrix_STRUCTRK13Vector_STRUCTRS2_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
  br label %60

60:                                               ; preds = %58, %56
  %61 = call noundef double @_Z7mytimerv()
  call void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
  %62 = call noundef double @_Z7mytimerv()
  %63 = call noundef double @_Z7mytimerv()
  %64 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %65 = call noundef double @_Z7mytimerv()
  %66 = fsub double %65, %63
  %67 = extractelement <2 x double> %47, i64 0
  %.1.peel = fadd double %67, %66
  %68 = call noundef double @_Z7mytimerv()
  %69 = call noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %70 = call noundef double @_Z7mytimerv()
  %71 = insertelement <2 x double> poison, double %70, i64 0
  %72 = insertelement <2 x double> %71, double %61, i64 1
  %73 = insertelement <2 x double> poison, double %55, i64 1
  %74 = insertelement <2 x double> %73, double %68, i64 0
  %75 = fsub <2 x double> %72, %74
  %76 = fadd <2 x double> %50, %75
  %77 = call noundef double @_Z7mytimerv()
  %78 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %79 = call noundef double @_Z7mytimerv()
  %80 = load double, ptr %12, align 8, !tbaa !5
  %81 = load double, ptr %13, align 8, !tbaa !5
  %82 = fdiv double %80, %81
  %83 = call noundef double @_Z7mytimerv()
  %84 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %82, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %85 = fneg double %82
  %86 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %85, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %87 = call noundef double @_Z7mytimerv()
  %88 = call noundef double @_Z7mytimerv()
  %89 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %90 = call noundef double @_Z7mytimerv()
  %91 = insertelement <2 x double> poison, double %79, i64 0
  %92 = insertelement <2 x double> %91, double %62, i64 1
  %93 = insertelement <2 x double> %73, double %77, i64 0
  %94 = fsub <2 x double> %92, %93
  %95 = insertelement <2 x double> %47, double %.1.peel, i64 0
  %96 = fadd <2 x double> %95, %94
  %97 = insertelement <2 x double> poison, double %90, i64 0
  %98 = insertelement <2 x double> %97, double %87, i64 1
  %99 = insertelement <2 x double> poison, double %88, i64 0
  %100 = insertelement <2 x double> %99, double %83, i64 1
  %101 = fsub <2 x double> %98, %100
  %102 = fadd <2 x double> %96, %101
  %103 = load double, ptr %7, align 8, !tbaa !5
  %104 = call double @sqrt(double noundef %103) #6
  store double %104, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %6, align 4, !tbaa !28
  %exitcond.peel.not = icmp eq i32 %4, 1
  br i1 %exitcond.peel.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %60, %135
  %105 = phi double [ %185, %135 ], [ %104, %60 ]
  %.0123 = phi i32 [ %186, %135 ], [ 2, %60 ]
  %106 = phi <2 x double> [ %183, %135 ], [ %102, %60 ]
  %107 = phi <2 x double> [ %156, %135 ], [ %76, %60 ]
  %108 = load double, ptr %8, align 8, !tbaa !5
  %109 = fdiv double %105, %108
  %110 = fcmp ogt double %109, %5
  br i1 %110, label %129, label %.critedge

.critedge:                                        ; preds = %.lr.ph, %135, %.lr.ph.preheader, %60, %30
  %111 = phi <2 x double> [ %47, %30 ], [ %47, %.lr.ph.preheader ], [ %102, %60 ], [ %106, %.lr.ph ], [ %183, %135 ]
  %112 = phi <2 x double> [ %50, %30 ], [ %50, %.lr.ph.preheader ], [ %76, %60 ], [ %107, %.lr.ph ], [ %156, %135 ]
  %113 = getelementptr inbounds i8, ptr %9, i64 8
  %114 = load <2 x double>, ptr %113, align 8, !tbaa !5
  %115 = fadd <2 x double> %111, %114
  store <2 x double> %115, ptr %113, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %9, i64 24
  %117 = load double, ptr %14, align 8, !tbaa !5
  %118 = load <2 x double>, ptr %116, align 8, !tbaa !5
  %119 = insertelement <2 x double> %112, double %117, i64 1
  %120 = fadd <2 x double> %119, %118
  store <2 x double> %120, ptr %116, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %9, i64 40
  %122 = load double, ptr %121, align 8, !tbaa !5
  %123 = extractelement <2 x double> %112, i64 1
  %124 = fadd double %123, %122
  store double %124, ptr %121, align 8, !tbaa !5
  %125 = call noundef double @_Z7mytimerv()
  %126 = fsub double %125, %15
  %127 = load double, ptr %9, align 8, !tbaa !5
  %128 = fadd double %127, %126
  store double %128, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  ret i32 0

129:                                              ; preds = %.lr.ph
  %130 = call noundef double @_Z7mytimerv()
  br i1 %10, label %131, label %133

131:                                              ; preds = %129
  %132 = call noundef i32 @_Z13ComputeMG_refRK19SparseMatrix_STRUCTRK13Vector_STRUCTRS2_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
  br label %135

133:                                              ; preds = %129
  %134 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
  br label %135

135:                                              ; preds = %133, %131
  %136 = call noundef double @_Z7mytimerv()
  %137 = load double, ptr %12, align 8, !tbaa !5
  %138 = call noundef double @_Z7mytimerv()
  %139 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %140 = call noundef double @_Z7mytimerv()
  %141 = load double, ptr %12, align 8, !tbaa !5
  %142 = fdiv double %141, %137
  %143 = call noundef double @_Z7mytimerv()
  %144 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %142, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %19)
  %145 = call noundef double @_Z7mytimerv()
  %146 = fsub double %140, %138
  %147 = extractelement <2 x double> %106, i64 0
  %.1 = fadd double %147, %146
  %148 = call noundef double @_Z7mytimerv()
  %149 = call noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %150 = call noundef double @_Z7mytimerv()
  %151 = insertelement <2 x double> poison, double %150, i64 0
  %152 = insertelement <2 x double> %151, double %136, i64 1
  %153 = insertelement <2 x double> poison, double %148, i64 0
  %154 = insertelement <2 x double> %153, double %130, i64 1
  %155 = fsub <2 x double> %152, %154
  %156 = fadd <2 x double> %107, %155
  %157 = call noundef double @_Z7mytimerv()
  %158 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %159 = call noundef double @_Z7mytimerv()
  %160 = load double, ptr %12, align 8, !tbaa !5
  %161 = load double, ptr %13, align 8, !tbaa !5
  %162 = fdiv double %160, %161
  %163 = call noundef double @_Z7mytimerv()
  %164 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %162, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %165 = fneg double %162
  %166 = call noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef %17, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %165, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %167 = call noundef double @_Z7mytimerv()
  %168 = call noundef double @_Z7mytimerv()
  %169 = call noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %170 = call noundef double @_Z7mytimerv()
  %171 = insertelement <2 x double> poison, double %159, i64 0
  %172 = insertelement <2 x double> %171, double %145, i64 1
  %173 = insertelement <2 x double> poison, double %157, i64 0
  %174 = insertelement <2 x double> %173, double %143, i64 1
  %175 = fsub <2 x double> %172, %174
  %176 = insertelement <2 x double> %106, double %.1, i64 0
  %177 = fadd <2 x double> %176, %175
  %178 = insertelement <2 x double> poison, double %170, i64 0
  %179 = insertelement <2 x double> %178, double %167, i64 1
  %180 = insertelement <2 x double> poison, double %168, i64 0
  %181 = insertelement <2 x double> %180, double %163, i64 1
  %182 = fsub <2 x double> %179, %181
  %183 = fadd <2 x double> %177, %182
  %184 = load double, ptr %7, align 8, !tbaa !5
  %185 = call double @sqrt(double noundef %184) #6
  store double %185, ptr %7, align 8, !tbaa !5
  store i32 %.0123, ptr %6, align 4, !tbaa !28
  %186 = add nuw i32 %.0123, 1
  %exitcond.not = icmp eq i32 %.0123, %4
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !29
}

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

declare noundef double @_Z7mytimerv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10CopyVectorRK13Vector_STRUCTRS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

declare noundef i32 @_Z15ComputeSPMV_refRK19SparseMatrix_STRUCTR13Vector_STRUCTS3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare noundef i32 @_Z17ComputeWAXPBY_refidRK13Vector_STRUCTdS1_RS_(i32 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare noundef i32 @_Z21ComputeDotProduct_refiRK13Vector_STRUCTS1_RdS2_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

declare noundef i32 @_Z13ComputeMG_refRK19SparseMatrix_STRUCTRK13Vector_STRUCTRS2_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { 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 = !{!10, !13, i64 32}
!10 = !{!"_ZTS19SparseMatrix_STRUCT", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !14, i64 88, !20, i64 144, !24, i64 168, !24, i64 169, !24, i64 170, !24, i64 171, !11, i64 176, !11, i64 184, !11, i64 192, !13, i64 200, !13, i64 204, !13, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIxiSt4hashIxESt8equal_toIxESaISt4pairIKxiEEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIxSt4pairIKxiESaIS2_ENSt8__detail10_Select1stESt8equal_toIxESt4hashIxENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIxSaIxEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!24 = !{!"bool", !7, i64 0}
!25 = !{!10, !11, i64 8}
!26 = !{!27, !13, i64 4}
!27 = !{!"_ZTS15Geometry_STRUCT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !11, i64 48, !11, i64 56, !13, i64 64, !13, i64 68, !13, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120}
!28 = !{!13, !13, i64 0}
!29 = distinct !{!29, !30, !31}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass