; LLVM IR from cfd-rg-solver/FVM-RG-Solver :: src/observer.ll (ZN8Observer15checkDifferenceESt6vectorI10macroParamSaIS1_EE)

; 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::initializer_list" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl" = type { %"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Observer = type { i32, %"class.std::vector", double }
%struct.macroParam = type { %struct.Mixture, %"class.std::vector.5", %"class.std::vector.5", double, double, double, double, double, double, double, double, %"class.std::__cxx11::basic_string" }
%struct.Mixture = type <{ %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl" }
%"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl" = type { %"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z13pressureCheckSt6vectorI10macroParamSaIS0_EE(ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8Observer15checkDifferenceESt6vectorI10macroParamSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %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 i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.std::initializer_list", align 8
  %21 = alloca [6 x double], align 8
  %22 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store i64 %24, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %25

25:                                               ; preds = %168, %2
  %26 = load i32, ptr %8, align 4, !tbaa !13
  %27 = sext i32 %26 to i64
  %28 = load i64, ptr %7, align 8, !tbaa !11
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %171

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %32 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %33 = load i32, ptr %8, align 4, !tbaa !13
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #5
  %36 = getelementptr inbounds %struct.macroParam, ptr %35, i32 0, i32 8
  %37 = load double, ptr %36, align 8, !tbaa !15
  %38 = load i32, ptr %8, align 4, !tbaa !13
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %39) #5
  %41 = getelementptr inbounds %struct.macroParam, ptr %40, i32 0, i32 8
  %42 = load double, ptr %41, align 8, !tbaa !15
  %43 = fsub double %37, %42
  %44 = call double @llvm.fabs.f64(double %43)
  store double %44, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %45 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %46 = load i32, ptr %8, align 4, !tbaa !13
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47) #5
  %49 = getelementptr inbounds %struct.macroParam, ptr %48, i32 0, i32 3
  %50 = load double, ptr %49, align 8, !tbaa !28
  %51 = load i32, ptr %8, align 4, !tbaa !13
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %52) #5
  %54 = getelementptr inbounds %struct.macroParam, ptr %53, i32 0, i32 3
  %55 = load double, ptr %54, align 8, !tbaa !28
  %56 = fsub double %50, %55
  %57 = call double @llvm.fabs.f64(double %56)
  store double %57, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %58 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %59 = load i32, ptr %8, align 4, !tbaa !13
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #5
  %62 = getelementptr inbounds %struct.macroParam, ptr %61, i32 0, i32 4
  %63 = load double, ptr %62, align 8, !tbaa !29
  %64 = load i32, ptr %8, align 4, !tbaa !13
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %65) #5
  %67 = getelementptr inbounds %struct.macroParam, ptr %66, i32 0, i32 4
  %68 = load double, ptr %67, align 8, !tbaa !29
  %69 = fsub double %63, %68
  %70 = call double @llvm.fabs.f64(double %69)
  store double %70, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %71 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %72 = load i32, ptr %8, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #5
  %75 = getelementptr inbounds %struct.macroParam, ptr %74, i32 0, i32 5
  %76 = load double, ptr %75, align 8, !tbaa !30
  %77 = load i32, ptr %8, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %78) #5
  %80 = getelementptr inbounds %struct.macroParam, ptr %79, i32 0, i32 5
  %81 = load double, ptr %80, align 8, !tbaa !30
  %82 = fsub double %76, %81
  %83 = call double @llvm.fabs.f64(double %82)
  store double %83, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %140, %31
  %85 = load i64, ptr %16, align 8, !tbaa !11
  %86 = load i32, ptr %8, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %87) #5
  %89 = getelementptr inbounds %struct.macroParam, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.Mixture, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !31
  %92 = sext i32 %91 to i64
  %93 = icmp ult i64 %85, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %84
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %143

95:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %96 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %97 = load i32, ptr %8, align 4, !tbaa !13
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #5
  %100 = getelementptr inbounds %struct.macroParam, ptr %99, i32 0, i32 1
  %101 = load i64, ptr %16, align 8, !tbaa !11
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %101) #5
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !13
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %105) #5
  %107 = getelementptr inbounds %struct.macroParam, ptr %106, i32 0, i32 1
  %108 = load i64, ptr %16, align 8, !tbaa !11
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #5
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = fsub double %103, %110
  store double %111, ptr %17, align 8, !tbaa !9
  %112 = load double, ptr %14, align 8, !tbaa !9
  %113 = load double, ptr %17, align 8, !tbaa !9
  %114 = fcmp olt double %112, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %95
  %116 = load double, ptr %17, align 8, !tbaa !9
  store double %116, ptr %14, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %115, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %118 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 1
  %119 = load i32, ptr %8, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #5
  %122 = getelementptr inbounds %struct.macroParam, ptr %121, i32 0, i32 2
  %123 = load i64, ptr %16, align 8, !tbaa !11
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %123) #5
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !13
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %127) #5
  %129 = getelementptr inbounds %struct.macroParam, ptr %128, i32 0, i32 2
  %130 = load i64, ptr %16, align 8, !tbaa !11
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %130) #5
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = fsub double %125, %132
  store double %133, ptr %18, align 8, !tbaa !9
  %134 = load double, ptr %15, align 8, !tbaa !9
  %135 = load double, ptr %18, align 8, !tbaa !9
  %136 = fcmp olt double %134, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %117
  %138 = load double, ptr %18, align 8, !tbaa !9
  store double %138, ptr %15, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %137, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %16, align 8, !tbaa !11
  %142 = add i64 %141, 1
  store i64 %142, ptr %16, align 8, !tbaa !11
  br label %84, !llvm.loop !32

143:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #5
  %144 = load double, ptr %10, align 8, !tbaa !9
  store double %144, ptr %21, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %21, i64 1
  %146 = load double, ptr %11, align 8, !tbaa !9
  store double %146, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds double, ptr %21, i64 2
  %148 = load double, ptr %12, align 8, !tbaa !9
  store double %148, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds double, ptr %21, i64 3
  %150 = load double, ptr %13, align 8, !tbaa !9
  store double %150, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds double, ptr %21, i64 4
  %152 = load double, ptr %14, align 8, !tbaa !9
  store double %152, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %21, i64 5
  %154 = load double, ptr %15, align 8, !tbaa !9
  store double %154, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 0
  store ptr %21, ptr %155, align 8, !tbaa !34
  %156 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 1
  store i64 6, ptr %156, align 8, !tbaa !36
  %157 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %160 = load i64, ptr %159, align 8
  %161 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr %158, i64 %160)
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #5
  store double %161, ptr %19, align 8, !tbaa !9
  %162 = load double, ptr %6, align 8, !tbaa !9
  %163 = load double, ptr %19, align 8, !tbaa !9
  %164 = fcmp olt double %162, %163
  br i1 %164, label %165, label %167

165:                                              ; preds = %143
  %166 = load double, ptr %19, align 8, !tbaa !9
  store double %166, ptr %6, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %165, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %8, align 4, !tbaa !13
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %8, align 4, !tbaa !13
  br label %25, !llvm.loop !37

171:                                              ; preds = %30
  call void @_ZNSt6vectorI10macroParamSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %172 = call noundef zeroext i1 @_Z13pressureCheckSt6vectorI10macroParamSaIS0_EE(ptr noundef %22)
  call void @_ZNSt6vectorI10macroParamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %181

174:                                              ; preds = %171
  %175 = load double, ptr %6, align 8, !tbaa !9
  %176 = getelementptr inbounds %class.Observer, ptr %23, i32 0, i32 2
  %177 = load double, ptr %176, align 8, !tbaa !38
  %178 = fcmp ogt double %175, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %174
  store i1 true, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %181

180:                                              ; preds = %174
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %181

181:                                              ; preds = %180, %179, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %182 = load i1, ptr %3, align 1
  ret i1 %182
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr, i64) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI10macroParamSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

!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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !10, i64 120}
!16 = !{!"_ZTS10macroParam", !17, i64 0, !22, i64 32, !22, i64 56, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !26, i64 144}
!17 = !{!"_ZTS7Mixture", !18, i64 0, !14, i64 24}
!18 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !12, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!16, !10, i64 80}
!29 = !{!16, !10, i64 88}
!30 = !{!16, !10, i64 96}
!31 = !{!16, !14, i64 24}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !12, i64 8}
!36 = !{!35, !12, i64 8}
!37 = distinct !{!37, !33}
!38 = !{!39, !10, i64 32}
!39 = !{!"_ZTS8Observer", !14, i64 0, !40, i64 8, !10, i64 32}
!40 = !{!"_ZTSSt6vectorI10macroParamSaIS0_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseI10macroParamSaIS0_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl" = type { %"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z13pressureCheckSt6vectorI10macroParamSaIS0_EE(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8Observer15checkDifferenceESt6vectorI10macroParamSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %1) local_unnamed_addr #2 align 2 {
  %3 = alloca [6 x double], align 16
  %4 = alloca %"class.std::vector", align 8
  %5 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge58, label %.lr.ph57

.lr.ph57:                                         ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = getelementptr inbounds i8, ptr %3, i64 16
  %8 = getelementptr inbounds i8, ptr %3, i64 32
  br label %13

._crit_edge58:                                    ; preds = %._crit_edge, %2
  %.039.lcssa = phi double [ 0.000000e+00, %2 ], [ %.1, %._crit_edge ]
  call void @_ZNSt6vectorI10macroParamSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %9 = call noundef zeroext i1 @_Z13pressureCheckSt6vectorI10macroParamSaIS0_EE(ptr noundef nonnull %4)
  call void @_ZNSt6vectorI10macroParamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load double, ptr %10, align 8
  %12 = fcmp ogt double %.039.lcssa, %11
  %not. = xor i1 %9, true
  %.0 = select i1 %not., i1 %12, i1 false
  ret i1 %.0

13:                                               ; preds = %.lr.ph57, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph57 ], [ %indvars.iv.next, %._crit_edge ]
  %.03955 = phi double [ 0.000000e+00, %.lr.ph57 ], [ %.1, %._crit_edge ]
  %14 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 120
  %16 = load <2 x double>, ptr %15, align 8
  %17 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %18 = getelementptr inbounds i8, ptr %17, i64 120
  %19 = load <2 x double>, ptr %18, align 8
  %20 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %21 = getelementptr inbounds i8, ptr %20, i64 80
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %24 = getelementptr inbounds i8, ptr %23, i64 80
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = insertelement <2 x double> %16, double %22, i64 1
  %27 = insertelement <2 x double> %19, double %25, i64 1
  %28 = fsub <2 x double> %26, %27
  %29 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %28)
  %30 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 88
  %32 = load <2 x double>, ptr %31, align 8
  %33 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %34 = getelementptr inbounds i8, ptr %33, i64 88
  %35 = load <2 x double>, ptr %34, align 8
  %36 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %37 = getelementptr inbounds i8, ptr %36, i64 96
  %38 = load double, ptr %37, align 8, !tbaa !24
  %39 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %40 = getelementptr inbounds i8, ptr %39, i64 96
  %41 = load double, ptr %40, align 8, !tbaa !24
  %42 = insertelement <2 x double> %32, double %38, i64 1
  %43 = insertelement <2 x double> %35, double %41, i64 1
  %44 = fsub <2 x double> %42, %43
  %45 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %44)
  %46 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = load i32, ptr %47, align 8, !tbaa !25
  %.not60 = icmp eq i32 %48, 0
  br i1 %.not60, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %13
  %49 = phi <2 x double> [ zeroinitializer, %13 ], [ %75, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  store <2 x double> %29, ptr %3, align 16, !tbaa !26
  store <2 x double> %45, ptr %7, align 16, !tbaa !26
  store <2 x double> %49, ptr %8, align 16, !tbaa !26
  %50 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr nonnull %3, i64 6)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  %51 = fcmp olt double %.03955, %50
  %.1 = select i1 %51, double %50, double %.03955
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %5
  br i1 %exitcond.not, label %._crit_edge58, label %13, !llvm.loop !27

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.04351 = phi i64 [ %76, %.lr.ph ], [ 0, %13 ]
  %52 = phi <2 x double> [ %75, %.lr.ph ], [ zeroinitializer, %13 ]
  %53 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %.04351) #5
  %56 = load double, ptr %55, align 8, !tbaa !26
  %57 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %58 = getelementptr inbounds i8, ptr %57, i64 32
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %.04351) #5
  %60 = load double, ptr %59, align 8, !tbaa !26
  %61 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %62 = getelementptr inbounds i8, ptr %61, i64 56
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %.04351) #5
  %64 = load double, ptr %63, align 8, !tbaa !26
  %65 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %66 = getelementptr inbounds i8, ptr %65, i64 56
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %.04351) #5
  %68 = load double, ptr %67, align 8, !tbaa !26
  %69 = insertelement <2 x double> poison, double %56, i64 0
  %70 = insertelement <2 x double> %69, double %64, i64 1
  %71 = insertelement <2 x double> poison, double %60, i64 0
  %72 = insertelement <2 x double> %71, double %68, i64 1
  %73 = fsub <2 x double> %70, %72
  %74 = fcmp olt <2 x double> %52, %73
  %75 = select <2 x i1> %74, <2 x double> %73, <2 x double> %52
  %76 = add nuw i64 %.04351, 1
  %77 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %78 = getelementptr inbounds i8, ptr %77, i64 24
  %79 = load i32, ptr %78, align 8, !tbaa !25
  %80 = sext i32 %79 to i64
  %81 = icmp ult i64 %76, %80
  br i1 %81, label %.lr.ph, label %._crit_edge, !llvm.loop !29
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !20, i64 80}
!6 = !{!"_ZTS10macroParam", !7, i64 0, !16, i64 32, !16, i64 56, !20, i64 80, !20, i64 88, !20, i64 96, !20, i64 104, !20, i64 112, !20, i64 120, !20, i64 128, !20, i64 136, !21, i64 144}
!7 = !{!"_ZTS7Mixture", !8, i64 0, !15, i64 24}
!8 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"int", !13, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!20 = !{!"double", !13, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !13, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!23 = !{!"long", !13, i64 0}
!24 = !{!6, !20, i64 96}
!25 = !{!6, !15, i64 24}
!26 = !{!20, !20, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass