; LLVM IR from Yinxiaoli/iros2015_folding :: src/folding_planner_cmake/project/2dregistration_v2 (datatypes)

; 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.Eigen::GeneralProduct" = type { %"class.Eigen::ProductBase" }
%"class.Eigen::ProductBase" = type { %"class.Eigen::Transpose", ptr, %"class.Eigen::Matrix.2" }
%"class.Eigen::Transpose" = type { ptr }
%"class.Eigen::Matrix.2" = type { %"class.Eigen::PlainObjectBase.3" }
%"class.Eigen::PlainObjectBase.3" = type { %"class.Eigen::DenseStorage.11" }
%"class.Eigen::DenseStorage.11" = type { ptr, i64 }
%"class.Eigen::GeneralProduct.44" = type { %"class.Eigen::ProductBase.45" }
%"class.Eigen::ProductBase.45" = type { %"class.Eigen::Transpose", ptr, %"class.Eigen::Matrix.12" }
%"class.Eigen::Matrix.12" = type { %"class.Eigen::PlainObjectBase.13" }
%"class.Eigen::PlainObjectBase.13" = type { %"class.Eigen::DenseStorage.21" }
%"class.Eigen::DenseStorage.21" = type { ptr, i64, i64 }
%struct.SSolverVars = type { i32, double, %struct.SVar, %struct.SVar, i32, i32, i32, %"class.Eigen::Matrix.12", double, %"class.Eigen::Matrix.2", %"class.Eigen::Matrix.2", %"class.Eigen::Matrix.12", %"class.Eigen::Matrix.2", double, %"class.Eigen::Matrix.12", i8, i32 }
%struct.SVar = type { %"class.Eigen::Matrix", %"class.Eigen::Matrix.2" }
%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64 }
%struct.SCurve = type { i8, i32, %"class.Eigen::Matrix.2", %"class.Eigen::Matrix.2", %"class.Eigen::Matrix.22" }
%"class.Eigen::Matrix.22" = type { %"class.Eigen::PlainObjectBase.23" }
%"class.Eigen::PlainObjectBase.23" = type { %"class.Eigen::DenseStorage.31" }
%"class.Eigen::DenseStorage.31" = type { ptr, i64 }
%struct.SParameters = type { double, double, double, double, %"struct._BlueTail::_Image::SImage", %struct.SRegion, i32, double, double, double, double, i32, double }
%"struct._BlueTail::_Image::SImage" = type { i32, i32, ptr }
%struct.SRegion = type { double, double, double, double }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14initSolverVarsPK11SParametersPK6SCurveRK4SVarR11SSolverVarsb(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(240) %3, i1 noundef zeroext %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.Eigen::GeneralProduct", align 8
  %14 = alloca %"class.Eigen::Transpose", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.Eigen::GeneralProduct.44", align 8
  %18 = alloca %"class.Eigen::Transpose", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %10, align 1, !tbaa !9
  %20 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %21 = trunc i8 %20 to i1
  br i1 %21, label %31, label %22

22:                                               ; preds = %5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.SSolverVars, ptr %23, i32 0, i32 0
  store i32 0, ptr %24, align 8, !tbaa !13
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SSolverVars, ptr %25, i32 0, i32 1
  store double 2.000000e+00, ptr %26, align 8, !tbaa !28
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SSolverVars, ptr %27, i32 0, i32 16
  store i32 0, ptr %28, align 4, !tbaa !29
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.SSolverVars, ptr %29, i32 0, i32 8
  store double 0x3E7AD7F29ABCAF48, ptr %30, align 8, !tbaa !30
  br label %31

31:                                               ; preds = %22, %5
  %32 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %44

34:                                               ; preds = %31
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SSolverVars, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.SVar, ptr %36, i32 0, i32 0
  %38 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SCurve, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !31
  %42 = sext i32 %41 to i64
  %43 = icmp ne i64 %38, %42
  br i1 %43, label %44, label %162

44:                                               ; preds = %34, %31
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SSolverVars, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.SCurve, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !31
  call void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32) %46, i32 noundef %49)
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SSolverVars, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.SCurve, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !31
  call void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32) %51, i32 noundef %54)
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SSolverVars, ptr %56, i32 0, i32 2
  %58 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %55)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SSolverVars, ptr %60, i32 0, i32 3
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull align 8 dereferenceable(32) %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.SCurve, ptr %63, i32 0, i32 0
  %65 = load i8, ptr %64, align 8, !tbaa !36, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  br i1 %66, label %67, label %71

67:                                               ; preds = %44
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SCurve, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !31
  br label %76

71:                                               ; preds = %44
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SCurve, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !31
  %75 = sub nsw i32 %74, 1
  br label %76

76:                                               ; preds = %71, %67
  %77 = phi i32 [ %70, %67 ], [ %75, %71 ]
  store i32 %77, ptr %11, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.SCurve, ptr %78, i32 0, i32 0
  %80 = load i8, ptr %79, align 8, !tbaa !36, !range !11, !noundef !12
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SCurve, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !31
  br label %91

86:                                               ; preds = %76
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.SCurve, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !31
  %90 = sub nsw i32 %89, 2
  br label %91

91:                                               ; preds = %86, %82
  %92 = phi i32 [ %85, %82 ], [ %90, %86 ]
  store i32 %92, ptr %12, align 4, !tbaa !37
  %93 = load i32, ptr %11, align 4, !tbaa !37
  %94 = load i32, ptr %12, align 4, !tbaa !37
  %95 = add nsw i32 %93, %94
  %96 = load i32, ptr %11, align 4, !tbaa !37
  %97 = add nsw i32 %95, %96
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.SSolverVars, ptr %98, i32 0, i32 4
  store i32 %97, ptr %99, align 8, !tbaa !38
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.SCurve, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !31
  %103 = mul nsw i32 %102, 2
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SSolverVars, ptr %104, i32 0, i32 5
  store i32 %103, ptr %105, align 4, !tbaa !39
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.SCurve, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !31
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SSolverVars, ptr %109, i32 0, i32 6
  store i32 %108, ptr %110, align 8, !tbaa !40
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SSolverVars, ptr %111, i32 0, i32 7
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SSolverVars, ptr %113, i32 0, i32 4
  %115 = load i32, ptr %114, align 8, !tbaa !38
  %116 = sext i32 %115 to i64
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.SSolverVars, ptr %117, i32 0, i32 5
  %119 = load i32, ptr %118, align 4, !tbaa !39
  %120 = sext i32 %119 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %116, i64 noundef %120)
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SSolverVars, ptr %121, i32 0, i32 9
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.SSolverVars, ptr %123, i32 0, i32 5
  %125 = load i32, ptr %124, align 4, !tbaa !39
  %126 = sext i32 %125 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %122, i64 noundef %126)
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.SSolverVars, ptr %127, i32 0, i32 10
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.SSolverVars, ptr %129, i32 0, i32 4
  %131 = load i32, ptr %130, align 8, !tbaa !38
  %132 = sext i32 %131 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %128, i64 noundef %132)
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SSolverVars, ptr %133, i32 0, i32 11
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.SSolverVars, ptr %135, i32 0, i32 5
  %137 = load i32, ptr %136, align 4, !tbaa !39
  %138 = sext i32 %137 to i64
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.SSolverVars, ptr %139, i32 0, i32 5
  %141 = load i32, ptr %140, align 4, !tbaa !39
  %142 = sext i32 %141 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %138, i64 noundef %142)
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.SSolverVars, ptr %143, i32 0, i32 12
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SSolverVars, ptr %145, i32 0, i32 5
  %147 = load i32, ptr %146, align 4, !tbaa !39
  %148 = sext i32 %147 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %144, i64 noundef %148)
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SSolverVars, ptr %149, i32 0, i32 14
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.SSolverVars, ptr %151, i32 0, i32 5
  %153 = load i32, ptr %152, align 4, !tbaa !39
  %154 = sext i32 %153 to i64
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.SSolverVars, ptr %155, i32 0, i32 5
  %157 = load i32, ptr %156, align 4, !tbaa !39
  %158 = sext i32 %157 to i64
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %154, i64 noundef %158)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.SSolverVars, ptr %159, i32 0, i32 14
  %161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE11setIdentityEv(ptr noundef nonnull align 1 dereferenceable(1) %160)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %162

162:                                              ; preds = %91, %34
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.SSolverVars, ptr %165, i32 0, i32 2
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.SSolverVars, ptr %167, i32 0, i32 8
  %169 = load double, ptr %168, align 8, !tbaa !30
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.SSolverVars, ptr %170, i32 0, i32 7
  call void @_Z26computeNumericalDerivativePK11SParametersPK6SCurveRK4SVardRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE(ptr noundef %163, ptr noundef %164, ptr noundef nonnull align 8 dereferenceable(32) %166, double noundef %169, ptr noundef nonnull align 8 dereferenceable(24) %171)
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.SSolverVars, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.SSolverVars, ptr %176, i32 0, i32 10
  call void @_Z9compute_fPK11SParametersPK6SCurveRK4SVarRN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE(ptr noundef %172, ptr noundef %173, ptr noundef nonnull align 8 dereferenceable(32) %175, ptr noundef nonnull align 8 dereferenceable(16) %177)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.SSolverVars, ptr %178, i32 0, i32 7
  %180 = call ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1) %179)
  %181 = getelementptr inbounds %"class.Eigen::Transpose", ptr %14, i32 0, i32 0
  store ptr %180, ptr %181, align 8
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.SSolverVars, ptr %182, i32 0, i32 10
  call void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlINS2_IdLin1ELi1ELi0ELin1ELi1EEEEEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S9_EE5valueEE4TypeERKNS0_IS9_EE(ptr dead_on_unwind writable sret(%"class.Eigen::GeneralProduct") align 8 %13, ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 1 dereferenceable(1) %183)
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.SSolverVars, ptr %184, i32 0, i32 9
  %186 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14GeneralProductINS_9TransposeINS0_IdLin1ELin1ELi0ELin1ELin1EEEEES1_Li4EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %185, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %187 unwind label %221

187:                                              ; preds = %162
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.SSolverVars, ptr %188, i32 0, i32 7
  %190 = call ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1) %189)
  %191 = getelementptr inbounds %"class.Eigen::Transpose", ptr %18, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.SSolverVars, ptr %192, i32 0, i32 7
  call void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlIS3_EEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S8_EE5valueEE4TypeERKNS0_IS8_EE(ptr dead_on_unwind writable sret(%"class.Eigen::GeneralProduct.44") align 8 %17, ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 1 dereferenceable(1) %193)
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.SSolverVars, ptr %194, i32 0, i32 11
  %196 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEaSINS_14GeneralProductINS_9TransposeIS1_EES1_Li5EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %195, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %197 unwind label %225

197:                                              ; preds = %187
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.SParameters, ptr %198, i32 0, i32 9
  %200 = load double, ptr %199, align 8, !tbaa !41
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.SSolverVars, ptr %201, i32 0, i32 11
  %203 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %202)
  %204 = fmul double %200, %203
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.SSolverVars, ptr %205, i32 0, i32 13
  store double %204, ptr %206, align 8, !tbaa !45
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.SSolverVars, ptr %207, i32 0, i32 9
  %209 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %208)
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.SParameters, ptr %210, i32 0, i32 7
  %212 = load double, ptr %211, align 8, !tbaa !46
  %213 = fcmp ole double %209, %212
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.SSolverVars, ptr %214, i32 0, i32 15
  %216 = zext i1 %213 to i8
  store i8 %216, ptr %215, align 8, !tbaa !47
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.SSolverVars, ptr %217, i32 0, i32 9
  %219 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %218)
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %219)
  ret void

221:                                              ; preds = %162
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %15, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %16, align 4
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %229

225:                                              ; preds = %187
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %15, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %16, align 4
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  br label %229

229:                                              ; preds = %225, %221
  %230 = load ptr, ptr %15, align 8
  %231 = load i32, ptr %16, align 4
  %232 = insertvalue { ptr, i32 } poison, ptr %230, 0
  %233 = insertvalue { ptr, i32 } %232, i32 %231, 1
  resume { ptr, i32 } %233
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE11setIdentityEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

declare void @_Z26computeNumericalDerivativePK11SParametersPK6SCurveRK4SVardRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3

declare void @_Z9compute_fPK11SParametersPK6SCurveRK4SVarRN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlINS2_IdLin1ELi1ELi0ELin1ELi1EEEEEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S9_EE5valueEE4TypeERKNS0_IS9_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::GeneralProduct") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14GeneralProductINS_9TransposeINS0_IdLin1ELin1ELi0ELin1ELin1EEEEES1_Li4EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlIS3_EEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S8_EE5valueEE4TypeERKNS0_IS8_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::GeneralProduct.44") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEaSINS_14GeneralProductINS_9TransposeIS1_EES1_Li5EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare i32 @printf(ptr noundef, ...) #3

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

!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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS11SSolverVars", !15, i64 0, !16, i64 8, !17, i64 16, !17, i64 48, !15, i64 80, !15, i64 84, !15, i64 88, !25, i64 96, !16, i64 120, !22, i64 128, !22, i64 144, !25, i64 160, !22, i64 184, !16, i64 200, !25, i64 208, !10, i64 232, !15, i64 236}
!15 = !{!"int", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTS4SVar", !18, i64 0, !22, i64 16}
!18 = !{!"_ZTSN5Eigen6MatrixIdLi2ELin1ELi0ELi2ELin1EEE", !19, i64 0}
!19 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEEE", !20, i64 0}
!20 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELi2ELin1ELi0EEE", !6, i64 0, !21, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE", !23, i64 0}
!23 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEE", !24, i64 0}
!24 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELin1ELi1ELi0EEE", !6, i64 0, !21, i64 8}
!25 = !{!"_ZTSN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE", !26, i64 0}
!26 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEE", !27, i64 0}
!27 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELin1ELin1ELi0EEE", !6, i64 0, !21, i64 8, !21, i64 16}
!28 = !{!14, !16, i64 8}
!29 = !{!14, !15, i64 236}
!30 = !{!14, !16, i64 120}
!31 = !{!32, !15, i64 4}
!32 = !{!"_ZTS6SCurve", !10, i64 0, !15, i64 4, !22, i64 8, !22, i64 24, !33, i64 40}
!33 = !{!"_ZTSN5Eigen6MatrixIiLin1ELi1ELi0ELin1ELi1EEE", !34, i64 0}
!34 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIiLin1ELi1ELi0ELin1ELi1EEEEE", !35, i64 0}
!35 = !{!"_ZTSN5Eigen12DenseStorageIiLin1ELin1ELi1ELi0EEE", !6, i64 0, !21, i64 8}
!36 = !{!32, !10, i64 0}
!37 = !{!15, !15, i64 0}
!38 = !{!14, !15, i64 80}
!39 = !{!14, !15, i64 84}
!40 = !{!14, !15, i64 88}
!41 = !{!42, !16, i64 104}
!42 = !{!"_ZTS11SParameters", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !43, i64 32, !44, i64 48, !15, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !15, i64 120, !16, i64 128}
!43 = !{!"_ZTSN9_BlueTail6_Image6SImageIdLi1EEE", !15, i64 0, !15, i64 4, !6, i64 8}
!44 = !{!"_ZTS7SRegion", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!45 = !{!14, !16, i64 200}
!46 = !{!42, !16, i64 88}
!47 = !{!14, !10, i64 232}


; 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.Eigen::GeneralProduct" = type { %"class.Eigen::ProductBase" }
%"class.Eigen::ProductBase" = type { %"class.Eigen::Transpose", ptr, %"class.Eigen::Matrix.2" }
%"class.Eigen::Transpose" = type { ptr }
%"class.Eigen::Matrix.2" = type { %"class.Eigen::PlainObjectBase.3" }
%"class.Eigen::PlainObjectBase.3" = type { %"class.Eigen::DenseStorage.11" }
%"class.Eigen::DenseStorage.11" = type { ptr, i64 }
%"class.Eigen::GeneralProduct.44" = type { %"class.Eigen::ProductBase.45" }
%"class.Eigen::ProductBase.45" = type { %"class.Eigen::Transpose", ptr, %"class.Eigen::Matrix.12" }
%"class.Eigen::Matrix.12" = type { %"class.Eigen::PlainObjectBase.13" }
%"class.Eigen::PlainObjectBase.13" = type { %"class.Eigen::DenseStorage.21" }
%"class.Eigen::DenseStorage.21" = type { ptr, i64, i64 }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14initSolverVarsPK11SParametersPK6SCurveRK4SVarR11SSolverVarsb(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(240) %3, i1 noundef zeroext %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.Eigen::GeneralProduct", align 8
  %7 = alloca %"class.Eigen::Transpose", align 8
  %8 = alloca %"class.Eigen::GeneralProduct.44", align 8
  %9 = alloca %"class.Eigen::Transpose", align 8
  br i1 %4, label %.critedge, label %10

10:                                               ; preds = %5
  store i32 0, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  store double 2.000000e+00, ptr %11, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %3, i64 236
  store i32 0, ptr %12, align 4, !tbaa !25
  %13 = getelementptr inbounds i8, ptr %3, i64 120
  store double 0x3E7AD7F29ABCAF48, ptr %13, align 8, !tbaa !26
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 4
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !27
  br label %19

.critedge:                                        ; preds = %5
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  %15 = tail call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %16 = getelementptr inbounds i8, ptr %1, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !27
  %18 = sext i32 %17 to i64
  %.not = icmp eq i64 %15, %18
  br i1 %.not, label %58, label %19

19:                                               ; preds = %10, %.critedge
  %20 = phi i32 [ %.pre, %10 ], [ %17, %.critedge ]
  %21 = getelementptr inbounds i8, ptr %3, i64 16
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  tail call void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef %20)
  %23 = getelementptr inbounds i8, ptr %3, i64 48
  %24 = load i32, ptr %22, align 4, !tbaa !27
  tail call void @_Z6resizeR4SVari(ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef %24)
  %25 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %26 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %27 = load i8, ptr %1, align 8, !tbaa !32, !range !33, !noundef !34
  %28 = trunc nuw i8 %27 to i1
  %29 = load i32, ptr %22, align 4, !tbaa !27
  %30 = add nsw i32 %29, -2
  %not. = xor i1 %28, true
  %31 = sext i1 %not. to i32
  %32 = add nsw i32 %29, %31
  %33 = select i1 %28, i32 %29, i32 %30
  %reass.add = shl i32 %32, 1
  %34 = add i32 %33, %reass.add
  %35 = getelementptr inbounds i8, ptr %3, i64 80
  store i32 %34, ptr %35, align 8, !tbaa !35
  %36 = shl nsw i32 %29, 1
  %37 = getelementptr inbounds i8, ptr %3, i64 84
  store i32 %36, ptr %37, align 4, !tbaa !36
  %38 = getelementptr inbounds i8, ptr %3, i64 88
  store i32 %29, ptr %38, align 8, !tbaa !37
  %39 = getelementptr inbounds i8, ptr %3, i64 96
  %40 = sext i32 %34 to i64
  %41 = sext i32 %36 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %40, i64 noundef %41)
  %42 = getelementptr inbounds i8, ptr %3, i64 128
  %43 = load i32, ptr %37, align 4, !tbaa !36
  %44 = sext i32 %43 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %42, i64 noundef %44)
  %45 = getelementptr inbounds i8, ptr %3, i64 144
  %46 = load i32, ptr %35, align 8, !tbaa !35
  %47 = sext i32 %46 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %45, i64 noundef %47)
  %48 = getelementptr inbounds i8, ptr %3, i64 160
  %49 = load i32, ptr %37, align 4, !tbaa !36
  %50 = sext i32 %49 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50, i64 noundef %50)
  %51 = getelementptr inbounds i8, ptr %3, i64 184
  %52 = load i32, ptr %37, align 4, !tbaa !36
  %53 = sext i32 %52 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6resizeEl(ptr noundef nonnull align 8 dereferenceable(16) %51, i64 noundef %53)
  %54 = getelementptr inbounds i8, ptr %3, i64 208
  %55 = load i32, ptr %37, align 4, !tbaa !36
  %56 = sext i32 %55 to i64
  tail call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56, i64 noundef %56)
  %57 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE11setIdentityEv(ptr noundef nonnull align 1 dereferenceable(1) %54)
  br label %58

58:                                               ; preds = %19, %.critedge
  %59 = getelementptr inbounds i8, ptr %3, i64 16
  %60 = getelementptr inbounds i8, ptr %3, i64 120
  %61 = load double, ptr %60, align 8, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %3, i64 96
  tail call void @_Z26computeNumericalDerivativePK11SParametersPK6SCurveRK4SVardRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(32) %59, double noundef %61, ptr noundef nonnull align 8 dereferenceable(24) %62)
  %63 = getelementptr inbounds i8, ptr %3, i64 144
  tail call void @_Z9compute_fPK11SParametersPK6SCurveRK4SVarRN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull align 8 dereferenceable(16) %63)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %64 = tail call ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1) %62)
  store ptr %64, ptr %7, align 8
  call void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlINS2_IdLin1ELi1ELi0ELin1ELi1EEEEEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S9_EE5valueEE4TypeERKNS0_IS9_EE(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::GeneralProduct") align 8 %6, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %63)
  %65 = getelementptr inbounds i8, ptr %3, i64 128
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14GeneralProductINS_9TransposeINS0_IdLin1ELin1ELi0ELin1ELin1EEEEES1_Li4EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %67 unwind label %85

67:                                               ; preds = %58
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %68 = call ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1) %62)
  store ptr %68, ptr %9, align 8
  call void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlIS3_EEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S8_EE5valueEE4TypeERKNS0_IS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::GeneralProduct.44") align 8 %8, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %62)
  %69 = getelementptr inbounds i8, ptr %3, i64 160
  %70 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEaSINS_14GeneralProductINS_9TransposeIS1_EES1_Li5EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %71 unwind label %87

71:                                               ; preds = %67
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  %72 = getelementptr inbounds i8, ptr %0, i64 104
  %73 = load double, ptr %72, align 8, !tbaa !38
  %74 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %69)
  %75 = fmul double %73, %74
  %76 = getelementptr inbounds i8, ptr %3, i64 200
  store double %75, ptr %76, align 8, !tbaa !42
  %77 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %65)
  %78 = getelementptr inbounds i8, ptr %0, i64 88
  %79 = load double, ptr %78, align 8, !tbaa !43
  %80 = fcmp ole double %77, %79
  %81 = getelementptr inbounds i8, ptr %3, i64 232
  %82 = zext i1 %80 to i8
  store i8 %82, ptr %81, align 8, !tbaa !44
  %83 = call noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1) %65)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %83)
  ret void

85:                                               ; preds = %58
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %89

87:                                               ; preds = %67
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN4SVaraSERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6resizeEll(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE11setIdentityEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

declare void @_Z26computeNumericalDerivativePK11SParametersPK6SCurveRK4SVardRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_Z9compute_fPK11SParametersPK6SCurveRK4SVarRN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE9transposeEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlINS2_IdLin1ELi1ELi0ELin1ELi1EEEEEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S9_EE5valueEE4TypeERKNS0_IS9_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::GeneralProduct") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14GeneralProductINS_9TransposeINS0_IdLin1ELin1ELi0ELin1ELin1EEEEES1_Li4EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEENS3_IdLin1ELi1ELi0ELin1ELi1EEELi4EEES5_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEEEmlIS3_EEKNS_17ProductReturnTypeIS4_T_Xsr8internal12product_typeIS4_S8_EE5valueEE4TypeERKNS0_IS8_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::GeneralProduct.44") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEaSINS_14GeneralProductINS_9TransposeIS1_EES1_Li5EEEEERS1_RKNS_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen11ProductBaseINS_14GeneralProductINS_9TransposeINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEES4_Li5EEES5_S4_ED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE6lpNormILin1EEEdv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nofree 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, !7, i64 0}
!6 = !{!"_ZTS11SSolverVars", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 48, !7, i64 80, !7, i64 84, !7, i64 88, !20, i64 96, !10, i64 120, !17, i64 128, !17, i64 144, !20, i64 160, !17, i64 184, !10, i64 200, !20, i64 208, !23, i64 232, !7, i64 236}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTS4SVar", !12, i64 0, !17, i64 16}
!12 = !{!"_ZTSN5Eigen6MatrixIdLi2ELin1ELi0ELi2ELin1EEE", !13, i64 0}
!13 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLi2ELin1ELi0ELi2ELin1EEEEE", !14, i64 0}
!14 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELi2ELin1ELi0EEE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTSN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEE", !18, i64 0}
!18 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEE", !19, i64 0}
!19 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELin1ELi1ELi0EEE", !15, i64 0, !16, i64 8}
!20 = !{!"_ZTSN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEE", !21, i64 0}
!21 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEE", !22, i64 0}
!22 = !{!"_ZTSN5Eigen12DenseStorageIdLin1ELin1ELin1ELi0EEE", !15, i64 0, !16, i64 8, !16, i64 16}
!23 = !{!"bool", !8, i64 0}
!24 = !{!6, !10, i64 8}
!25 = !{!6, !7, i64 236}
!26 = !{!6, !10, i64 120}
!27 = !{!28, !7, i64 4}
!28 = !{!"_ZTS6SCurve", !23, i64 0, !7, i64 4, !17, i64 8, !17, i64 24, !29, i64 40}
!29 = !{!"_ZTSN5Eigen6MatrixIiLin1ELi1ELi0ELin1ELi1EEE", !30, i64 0}
!30 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIiLin1ELi1ELi0ELin1ELi1EEEEE", !31, i64 0}
!31 = !{!"_ZTSN5Eigen12DenseStorageIiLin1ELin1ELi1ELi0EEE", !15, i64 0, !16, i64 8}
!32 = !{!28, !23, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!6, !7, i64 80}
!36 = !{!6, !7, i64 84}
!37 = !{!6, !7, i64 88}
!38 = !{!39, !10, i64 104}
!39 = !{!"_ZTS11SParameters", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !40, i64 32, !41, i64 48, !7, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128}
!40 = !{!"_ZTSN9_BlueTail6_Image6SImageIdLi1EEE", !7, i64 0, !7, i64 4, !15, i64 8}
!41 = !{!"_ZTS7SRegion", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!42 = !{!6, !10, i64 200}
!43 = !{!39, !10, i64 88}
!44 = !{!6, !23, i64 232}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass