; LLVM IR from OpenFAST/openfast :: modules/map/src (mapinit)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.tagbstring = type { i32, i32, ptr }
%struct.Vector_t = type { double, double, double }
%struct.Node_t = type { %struct.PointPtr_t, %struct.PointPtr_t, %struct.PointPtr_t, i32, %struct.ForcePtr_t, %struct.VarType_t, %struct.VarType_t, %struct.Force_t }
%struct.PointPtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.VarTypePtr_t = type { ptr, ptr, ptr, i8, i32, i32 }
%struct.ForcePtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Domain_t = type { %struct.InnerSolveAttributes_t, %struct.OuterSolveAttributes_t, %struct.DomainOptions_t, ptr, i32, %struct.Vessel_t, %struct.list_t, %struct.list_t, %struct.list_t, %struct.list_t, ptr }
%struct.InnerSolveAttributes_t = type { ptr, double, double, double, [2 x double], [2 x double], [4 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], double, i32, i32, i32, i32, i32, [2 x i32], i32, i32 }
%struct.OuterSolveAttributes_t = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8, i32, i32, i32 }
%struct.DomainOptions_t = type { ptr, double, double, double, i8, i8, i32 }
%struct.Vessel_t = type { %struct.EulerAngle_t, ptr, ptr, ptr, %struct.Point_t, %struct.Point_t, %struct.Force_t }
%struct.EulerAngle_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Point_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.list_t = type { ptr, ptr, ptr, i32, ptr, i32, i32, i32, ptr, %struct.list_attributes_s }
%struct.list_attributes_s = type { ptr, ptr, ptr, i32, ptr, ptr, ptr }
%struct.InitializationData_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.bstrList = type { i32, i32, ptr }

@.str.33 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

declare ptr @bsplits(ptr noundef, ptr noundef) #2

declare i32 @bstrListDestroy(ptr noundef) #2

declare ptr @bstrcpy(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_number(i32 noundef, ptr noundef) #3

declare ptr @bformat(ptr noundef, ...) #2

declare i32 @bdestroy(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_type(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_x(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_y(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_z(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_mass(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_buoyancy(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_x(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_y(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_z(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @repeat_nodes(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %struct.tagbstring, align 8
  %28 = alloca %struct.Vector_t, align 8
  %29 = alloca %struct.Vector_t, align 8
  %30 = alloca %struct.Node_t, align 8
  %31 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.Domain_t, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds %struct.DomainOptions_t, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %35, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.InitializationData_t, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !25
  %39 = getelementptr inbounds %struct.bstrList, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !27
  store i32 %40, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %41 = load i32, ptr %17, align 4, !tbaa !9
  %42 = load i32, ptr %16, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  %44 = mul nsw i32 %41, %43
  store i32 %44, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store double 0.000000e+00, ptr %21, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double 0.000000e+00, ptr %22, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store double 0.000000e+00, ptr %24, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %45 = call ptr (ptr, ...) @bformat(ptr noundef @.str.33)
  store ptr %45, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store ptr null, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 688, ptr %30) #4
  br label %46

46:                                               ; preds = %4
  %47 = getelementptr inbounds %struct.tagbstring, ptr %27, i32 0, i32 2
  store ptr @.str.34, ptr %47, align 8, !tbaa !30
  %48 = getelementptr inbounds %struct.tagbstring, ptr %27, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !30
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %56

51:                                               ; preds = %46
  %52 = getelementptr inbounds %struct.tagbstring, ptr %27, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !30
  %54 = call i64 @strlen(ptr noundef %53) #5
  %55 = trunc i64 %54 to i32
  br label %57

56:                                               ; preds = %46
  br label %57

57:                                               ; preds = %56, %51
  %58 = phi i32 [ %55, %51 ], [ 0, %56 ]
  %59 = getelementptr inbounds %struct.tagbstring, ptr %27, i32 0, i32 1
  store i32 %58, ptr %59, align 4, !tbaa !32
  %60 = getelementptr inbounds %struct.tagbstring, ptr %27, i32 0, i32 0
  store i32 -1, ptr %60, align 8, !tbaa !33
  br label %61

61:                                               ; preds = %57
  br label %62

62:                                               ; preds = %61
  %63 = getelementptr inbounds %struct.Vector_t, ptr %28, i32 0, i32 0
  store double 0.000000e+00, ptr %63, align 8, !tbaa !34
  %64 = getelementptr inbounds %struct.Vector_t, ptr %28, i32 0, i32 1
  store double 0.000000e+00, ptr %64, align 8, !tbaa !36
  %65 = getelementptr inbounds %struct.Vector_t, ptr %28, i32 0, i32 2
  store double 0.000000e+00, ptr %65, align 8, !tbaa !37
  %66 = getelementptr inbounds %struct.Vector_t, ptr %29, i32 0, i32 0
  store double 0.000000e+00, ptr %66, align 8, !tbaa !34
  %67 = getelementptr inbounds %struct.Vector_t, ptr %29, i32 0, i32 1
  store double 0.000000e+00, ptr %67, align 8, !tbaa !36
  %68 = getelementptr inbounds %struct.Vector_t, ptr %29, i32 0, i32 2
  store double 0.000000e+00, ptr %68, align 8, !tbaa !37
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.InitializationData_t, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !38
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  %74 = call i32 @bstrListAlloc(ptr noundef %71, i32 noundef %73)
  store i32 %74, ptr %10, align 4, !tbaa !9
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.InitializationData_t, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !38
  %78 = getelementptr inbounds %struct.bstrList, ptr %77, i32 0, i32 0
  store i32 0, ptr %78, align 8, !tbaa !27
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %110, %62
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %83, label %113

83:                                               ; preds = %79
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.InitializationData_t, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  %87 = getelementptr inbounds %struct.bstrList, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !39
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.tagbstring, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !30
  %95 = call ptr @bfromcstr(ptr noundef %94)
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.InitializationData_t, ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !38
  %99 = getelementptr inbounds %struct.bstrList, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !39
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  store ptr %95, ptr %103, align 8, !tbaa !5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.InitializationData_t, ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !38
  %107 = getelementptr inbounds %struct.bstrList, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !27
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %107, align 8, !tbaa !27
  br label %110

110:                                              ; preds = %83
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !9
  br label %79, !llvm.loop !40

113:                                              ; preds = %79
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %311, %113
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %314

118:                                              ; preds = %114
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %307, %118
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %123, label %310

123:                                              ; preds = %119
  %124 = call i32 @reset_node(ptr noundef %30)
  store i32 %124, ptr %10, align 4, !tbaa !9
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = mul nsw i32 %126, %127
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = add nsw i32 %128, %129
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.Domain_t, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.DomainOptions_t, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !42
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !29
  %139 = fmul double %138, 0x3F91DF46A226E211
  store double %139, ptr %24, align 8, !tbaa !29
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.InitializationData_t, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !25
  %143 = getelementptr inbounds %struct.bstrList, ptr %142, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !39
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds ptr, ptr %144, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = call ptr @bsplits(ptr noundef %148, ptr noundef %27)
  store ptr %149, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %123
  br label %151

151:                                              ; preds = %281, %150
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = load ptr, ptr %26, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.bstrList, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !27
  %156 = sub nsw i32 %155, 1
  %157 = icmp slt i32 %152, %156
  br i1 %157, label %158, label %284

158:                                              ; preds = %151
  %159 = load ptr, ptr %26, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.bstrList, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !39
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds ptr, ptr %161, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.tagbstring, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 4, !tbaa !32
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %281

169:                                              ; preds = %158
  %170 = load ptr, ptr %26, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.bstrList, ptr %170, i32 0, i32 2
  %172 = load ptr, ptr %171, align 8, !tbaa !39
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds ptr, ptr %172, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.tagbstring, ptr %176, i32 0, i32 2
  %178 = load ptr, ptr %177, align 8, !tbaa !30
  store ptr %178, ptr %19, align 8, !tbaa !5
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %169
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  %184 = load ptr, ptr %25, align 8, !tbaa !5
  %185 = call i32 @expand_node_number(i32 noundef %183, ptr noundef %184)
  store i32 %185, ptr %10, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %13, align 4, !tbaa !9
  br label %280

188:                                              ; preds = %169
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %197

191:                                              ; preds = %188
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = load ptr, ptr %25, align 8, !tbaa !5
  %194 = call i32 @expand_node_type(ptr noundef %192, ptr noundef %193)
  store i32 %194, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %13, align 4, !tbaa !9
  br label %279

197:                                              ; preds = %188
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 2
  br i1 %199, label %200, label %205

200:                                              ; preds = %197
  %201 = load ptr, ptr %19, align 8, !tbaa !5
  %202 = call i32 @expand_node_position_x(ptr noundef %20, ptr noundef %201)
  store i32 %202, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %13, align 4, !tbaa !9
  br label %278

205:                                              ; preds = %197
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = icmp eq i32 %206, 3
  br i1 %207, label %208, label %213

208:                                              ; preds = %205
  %209 = load ptr, ptr %19, align 8, !tbaa !5
  %210 = call i32 @expand_node_position_y(ptr noundef %21, ptr noundef %209)
  store i32 %210, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %13, align 4, !tbaa !9
  br label %277

213:                                              ; preds = %205
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 4
  br i1 %215, label %216, label %225

216:                                              ; preds = %213
  %217 = load double, ptr %24, align 8, !tbaa !29
  %218 = load double, ptr %20, align 8, !tbaa !29
  %219 = load double, ptr %21, align 8, !tbaa !29
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = load ptr, ptr %25, align 8, !tbaa !5
  %222 = call i32 @expand_node_position_z(ptr noundef %29, double noundef %217, double noundef %218, double noundef %219, ptr noundef %220, ptr noundef %221)
  store i32 %222, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %13, align 4, !tbaa !9
  br label %276

225:                                              ; preds = %213
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = icmp eq i32 %226, 5
  br i1 %227, label %228, label %234

228:                                              ; preds = %225
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  %230 = load ptr, ptr %25, align 8, !tbaa !5
  %231 = call i32 @expand_node_mass(ptr noundef %229, ptr noundef %230)
  store i32 %231, ptr %10, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %13, align 4, !tbaa !9
  br label %275

234:                                              ; preds = %225
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = icmp eq i32 %235, 6
  br i1 %236, label %237, label %243

237:                                              ; preds = %234
  %238 = load ptr, ptr %19, align 8, !tbaa !5
  %239 = load ptr, ptr %25, align 8, !tbaa !5
  %240 = call i32 @expand_node_buoyancy(ptr noundef %238, ptr noundef %239)
  store i32 %240, ptr %10, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %13, align 4, !tbaa !9
  br label %274

243:                                              ; preds = %234
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = icmp eq i32 %244, 7
  br i1 %245, label %246, label %251

246:                                              ; preds = %243
  %247 = load ptr, ptr %19, align 8, !tbaa !5
  %248 = call i32 @expand_node_force_x(ptr noundef %22, ptr noundef %247)
  store i32 %248, ptr %10, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %13, align 4, !tbaa !9
  br label %273

251:                                              ; preds = %243
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = icmp eq i32 %252, 8
  br i1 %253, label %254, label %259

254:                                              ; preds = %251
  %255 = load ptr, ptr %19, align 8, !tbaa !5
  %256 = call i32 @expand_node_force_y(ptr noundef %23, ptr noundef %255)
  store i32 %256, ptr %10, align 4, !tbaa !9
  %257 = load i32, ptr %13, align 4, !tbaa !9
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %13, align 4, !tbaa !9
  br label %272

259:                                              ; preds = %251
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = icmp eq i32 %260, 9
  br i1 %261, label %262, label %271

262:                                              ; preds = %259
  %263 = load double, ptr %24, align 8, !tbaa !29
  %264 = load double, ptr %22, align 8, !tbaa !29
  %265 = load double, ptr %23, align 8, !tbaa !29
  %266 = load ptr, ptr %19, align 8, !tbaa !5
  %267 = load ptr, ptr %25, align 8, !tbaa !5
  %268 = call i32 @expand_node_force_z(ptr noundef %28, double noundef %263, double noundef %264, double noundef %265, ptr noundef %266, ptr noundef %267)
  store i32 %268, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %13, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %262, %259
  br label %272

272:                                              ; preds = %271, %254
  br label %273

273:                                              ; preds = %272, %246
  br label %274

274:                                              ; preds = %273, %237
  br label %275

275:                                              ; preds = %274, %228
  br label %276

276:                                              ; preds = %275, %216
  br label %277

277:                                              ; preds = %276, %208
  br label %278

278:                                              ; preds = %277, %200
  br label %279

279:                                              ; preds = %278, %191
  br label %280

280:                                              ; preds = %279, %181
  br label %281

281:                                              ; preds = %280, %158
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %14, align 4, !tbaa !9
  br label %151, !llvm.loop !43

284:                                              ; preds = %151
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.InitializationData_t, ptr %285, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !38
  %288 = getelementptr inbounds %struct.bstrList, ptr %287, i32 0, i32 0
  %289 = load i32, ptr %288, align 8, !tbaa !27
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %288, align 8, !tbaa !27
  %291 = load ptr, ptr %25, align 8, !tbaa !5
  %292 = call ptr @bstrcpy(ptr noundef %291)
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.InitializationData_t, ptr %293, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !38
  %296 = getelementptr inbounds %struct.bstrList, ptr %295, i32 0, i32 2
  %297 = load ptr, ptr %296, align 8, !tbaa !39
  %298 = load i32, ptr %15, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds ptr, ptr %297, i64 %299
  store ptr %292, ptr %300, align 8, !tbaa !5
  %301 = load ptr, ptr %25, align 8, !tbaa !5
  %302 = call i32 @bassigncstr(ptr noundef %301, ptr noundef @.str.33)
  store i32 %302, ptr %10, align 4, !tbaa !9
  br label %303

303:                                              ; preds = %284
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %26, align 8, !tbaa !5
  %306 = call i32 @bstrListDestroy(ptr noundef %305)
  store i32 %306, ptr %10, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %304
  %308 = load i32, ptr %12, align 4, !tbaa !9
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %12, align 4, !tbaa !9
  br label %119, !llvm.loop !44

310:                                              ; preds = %119
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %11, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %11, align 4, !tbaa !9
  br label %114, !llvm.loop !45

314:                                              ; preds = %114
  %315 = load ptr, ptr %25, align 8, !tbaa !5
  %316 = call i32 @bdestroy(ptr noundef %315)
  store i32 %316, ptr %10, align 4, !tbaa !9
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = load i32, ptr %317, align 4, !tbaa !9
  %319 = icmp eq i32 %318, 0
  br i1 %319, label %320, label %321

320:                                              ; preds = %314
  store i32 0, ptr %5, align 4
  store i32 1, ptr %31, align 4
  br label %327

321:                                              ; preds = %314
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !9
  %324 = icmp eq i32 %323, 2
  br i1 %324, label %325, label %326

325:                                              ; preds = %321
  store i32 2, ptr %5, align 4
  store i32 1, ptr %31, align 4
  br label %327

326:                                              ; preds = %321
  store i32 3, ptr %5, align 4
  store i32 1, ptr %31, align 4
  br label %327

327:                                              ; preds = %326, %325, %320
  call void @llvm.lifetime.end.p0(i64 688, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %328 = load i32, ptr %5, align 4
  ret i32 %328
}

declare i32 @bstrListAlloc(ptr noundef, i32 noundef) #2

declare ptr @bfromcstr(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @reset_node(ptr noundef) #3

declare i32 @bassigncstr(ptr noundef, ptr noundef) #2

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 444}
!12 = !{!"Domain_t", !13, i64 0, !15, i64 240, !17, i64 408, !6, i64 448, !10, i64 456, !18, i64 464, !23, i64 968, !23, i64 1088, !23, i64 1208, !23, i64 1328, !6, i64 1448}
!13 = !{!"InnerSolveAttributes_t", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !7, i64 96, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160, !7, i64 176, !14, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !7, i64 220, !10, i64 228, !10, i64 232}
!14 = !{!"double", !7, i64 0}
!15 = !{!"OuterSolveAttributes_t", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !16, i64 152, !16, i64 153, !16, i64 154, !10, i64 156, !10, i64 160, !10, i64 164}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"DomainOptions_t", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !16, i64 32, !16, i64 33, !10, i64 36}
!18 = !{!"Vessel_t", !19, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !21, i64 144, !21, i64 264, !22, i64 384}
!19 = !{!"EulerAngle_t", !20, i64 0, !20, i64 40, !20, i64 80}
!20 = !{!"VarType_t", !6, i64 0, !6, i64 8, !14, i64 16, !16, i64 24, !16, i64 25, !10, i64 28, !10, i64 32}
!21 = !{!"Point_t", !20, i64 0, !20, i64 40, !20, i64 80}
!22 = !{!"Force_t", !20, i64 0, !20, i64 40, !20, i64 80}
!23 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !6, i64 56, !24, i64 64}
!24 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!25 = !{!26, !6, i64 8}
!26 = !{!"InitializationData_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!27 = !{!28, !10, i64 0}
!28 = !{!"bstrList", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!14, !14, i64 0}
!30 = !{!31, !6, i64 8}
!31 = !{!"tagbstring", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!31, !10, i64 4}
!33 = !{!31, !10, i64 0}
!34 = !{!35, !14, i64 0}
!35 = !{!"Vector_t", !14, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!35, !14, i64 8}
!37 = !{!35, !14, i64 16}
!38 = !{!26, !6, i64 32}
!39 = !{!28, !6, i64 8}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!12, !6, i64 408}
!43 = distinct !{!43, !41}
!44 = distinct !{!44, !41}
!45 = distinct !{!45, !41}


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

%struct.tagbstring = type { i32, i32, ptr }
%struct.Vector_t = type { double, double, double }
%struct.Node_t = type { %struct.PointPtr_t, %struct.PointPtr_t, %struct.PointPtr_t, i32, %struct.ForcePtr_t, %struct.VarType_t, %struct.VarType_t, %struct.Force_t }
%struct.PointPtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.VarTypePtr_t = type { ptr, ptr, ptr, i8, i32, i32 }
%struct.ForcePtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }

@.str.33 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

declare ptr @bsplits(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @bstrListDestroy(ptr noundef) local_unnamed_addr #2

declare ptr @bstrcpy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_number(i32 noundef, ptr noundef) local_unnamed_addr #3

declare ptr @bformat(ptr noundef, ...) local_unnamed_addr #2

declare i32 @bdestroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_type(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_x(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_y(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_position_z(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_mass(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_buoyancy(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_x(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_y(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @expand_node_force_z(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @repeat_nodes(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readnone %2, ptr nocapture noundef readonly %3) local_unnamed_addr #3 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.tagbstring, align 8
  %10 = alloca %struct.Vector_t, align 8
  %11 = alloca %struct.Vector_t, align 8
  %12 = alloca %struct.Node_t, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 408
  %14 = getelementptr inbounds i8, ptr %0, i64 444
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !23
  %18 = load i32, ptr %17, align 8, !tbaa !25
  %19 = add nsw i32 %15, 1
  %20 = mul nsw i32 %18, %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !27
  %21 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.33) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 688, ptr nonnull %12) #5
  %22 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr @.str.34, ptr %22, align 8, !tbaa !28
  %23 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.34) #6
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 %24, ptr %25, align 4, !tbaa !30
  store i32 -1, ptr %9, align 8, !tbaa !31
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  %27 = load ptr, ptr %26, align 8, !tbaa !32
  %28 = add nsw i32 %20, 1
  %29 = tail call i32 @bstrListAlloc(ptr noundef %27, i32 noundef %28) #5
  %30 = load ptr, ptr %26, align 8, !tbaa !32
  store i32 0, ptr %30, align 8, !tbaa !25
  %31 = icmp slt i32 %18, 1
  br i1 %31, label %._crit_edge100, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %.lr.ph

.preheader91:                                     ; preds = %.lr.ph
  %32 = icmp slt i32 %15, 1
  %brmerge = or i1 %32, %31
  br i1 %brmerge, label %._crit_edge100, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader91
  %33 = zext nneg i32 %18 to i64
  %wide.trip.count114 = zext nneg i32 %15 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge98.us
  %indvars.iv111 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next112, %._crit_edge98.us ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %34 = mul nuw nsw i64 %indvars.iv.next112, %33
  br label %35

35:                                               ; preds = %.preheader.us, %._crit_edge.us
  %indvars.iv106 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next107, %._crit_edge.us ]
  %36 = call i32 @reset_node(ptr noundef nonnull %12)
  %37 = add nuw nsw i64 %indvars.iv106, %34
  %38 = load ptr, ptr %13, align 8, !tbaa !33
  %39 = getelementptr inbounds double, ptr %38, i64 %indvars.iv111
  %40 = load double, ptr %39, align 8, !tbaa !27
  %41 = fmul double %40, 0x3F91DF46A226E211
  %42 = load ptr, ptr %16, align 8, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !34
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv106
  %46 = load ptr, ptr %45, align 8, !tbaa !35
  %47 = call ptr @bsplits(ptr noundef %46, ptr noundef nonnull %9) #5
  %48 = load i32, ptr %47, align 8, !tbaa !25
  %49 = icmp sgt i32 %48, 1
  br i1 %49, label %.lr.ph95.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %93, %35
  %50 = load ptr, ptr %26, align 8, !tbaa !32
  %51 = load i32, ptr %50, align 8, !tbaa !25
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %50, align 8, !tbaa !25
  %53 = call ptr @bstrcpy(ptr noundef %21) #5
  %54 = load ptr, ptr %26, align 8, !tbaa !32
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !34
  %57 = getelementptr inbounds ptr, ptr %56, i64 %37
  store ptr %53, ptr %57, align 8, !tbaa !35
  %58 = call i32 @bassigncstr(ptr noundef %21, ptr noundef nonnull @.str.33) #5
  %59 = call i32 @bstrListDestroy(ptr noundef nonnull %47) #5
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %33
  br i1 %exitcond110.not, label %._crit_edge98.us, label %35, !llvm.loop !36

60:                                               ; preds = %.lr.ph95.us, %93
  %indvars.iv103 = phi i64 [ 0, %.lr.ph95.us ], [ %indvars.iv.next104, %93 ]
  %.08593.us = phi i32 [ 0, %.lr.ph95.us ], [ %.186.us, %93 ]
  %61 = load ptr, ptr %98, align 8, !tbaa !34
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv103
  %63 = load ptr, ptr %62, align 8, !tbaa !35
  %64 = getelementptr inbounds i8, ptr %63, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !30
  %.not.us = icmp eq i32 %65, 0
  br i1 %.not.us, label %93, label %66

66:                                               ; preds = %60
  %67 = getelementptr inbounds i8, ptr %63, i64 8
  %68 = load ptr, ptr %67, align 8, !tbaa !28
  switch i32 %.08593.us, label %93 [
    i32 0, label %91
    i32 1, label %89
    i32 2, label %87
    i32 3, label %85
    i32 4, label %81
    i32 5, label %79
    i32 6, label %77
    i32 7, label %75
    i32 8, label %73
    i32 9, label %69
  ]

69:                                               ; preds = %66
  %70 = load double, ptr %7, align 8, !tbaa !27
  %71 = load double, ptr %8, align 8, !tbaa !27
  %72 = call i32 @expand_node_force_z(ptr noundef nonnull %10, double noundef %41, double noundef %70, double noundef %71, ptr noundef %68, ptr noundef %21)
  br label %93

73:                                               ; preds = %66
  %74 = call i32 @expand_node_force_y(ptr noundef nonnull %8, ptr noundef %68)
  br label %93

75:                                               ; preds = %66
  %76 = call i32 @expand_node_force_x(ptr noundef nonnull %7, ptr noundef %68)
  br label %93

77:                                               ; preds = %66
  %78 = call i32 @expand_node_buoyancy(ptr noundef %68, ptr noundef %21)
  br label %93

79:                                               ; preds = %66
  %80 = call i32 @expand_node_mass(ptr noundef %68, ptr noundef %21)
  br label %93

81:                                               ; preds = %66
  %82 = load double, ptr %5, align 8, !tbaa !27
  %83 = load double, ptr %6, align 8, !tbaa !27
  %84 = call i32 @expand_node_position_z(ptr noundef nonnull %11, double noundef %41, double noundef %82, double noundef %83, ptr noundef %68, ptr noundef %21)
  br label %93

85:                                               ; preds = %66
  %86 = call i32 @expand_node_position_y(ptr noundef nonnull %6, ptr noundef %68)
  br label %93

87:                                               ; preds = %66
  %88 = call i32 @expand_node_position_x(ptr noundef nonnull %5, ptr noundef %68)
  br label %93

89:                                               ; preds = %66
  %90 = call i32 @expand_node_type(ptr noundef %68, ptr noundef %21)
  br label %93

91:                                               ; preds = %66
  %92 = call i32 @expand_node_number(i32 noundef %100, ptr noundef %21)
  br label %93

93:                                               ; preds = %91, %89, %87, %85, %81, %79, %77, %75, %73, %69, %66, %60
  %.186.us = phi i32 [ 1, %91 ], [ 2, %89 ], [ 3, %87 ], [ 4, %85 ], [ 5, %81 ], [ 6, %79 ], [ 7, %77 ], [ 8, %75 ], [ 9, %73 ], [ 10, %69 ], [ %.08593.us, %60 ], [ %.08593.us, %66 ]
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %94 = load i32, ptr %47, align 8, !tbaa !25
  %95 = add nsw i32 %94, -1
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next104, %96
  br i1 %97, label %60, label %._crit_edge.us, !llvm.loop !38

.lr.ph95.us:                                      ; preds = %35
  %98 = getelementptr inbounds i8, ptr %47, i64 8
  %99 = trunc i64 %37 to i32
  %100 = add i32 %99, 1
  br label %60

._crit_edge98.us:                                 ; preds = %._crit_edge.us
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge100, label %.preheader.us, !llvm.loop !39

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %101 = load ptr, ptr %16, align 8, !tbaa !23
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load ptr, ptr %102, align 8, !tbaa !34
  %104 = getelementptr inbounds ptr, ptr %103, i64 %indvars.iv
  %105 = load ptr, ptr %104, align 8, !tbaa !35
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  %108 = tail call ptr @bfromcstr(ptr noundef %107) #5
  %109 = load ptr, ptr %26, align 8, !tbaa !32
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = load ptr, ptr %110, align 8, !tbaa !34
  %112 = getelementptr inbounds ptr, ptr %111, i64 %indvars.iv
  store ptr %108, ptr %112, align 8, !tbaa !35
  %113 = load ptr, ptr %26, align 8, !tbaa !32
  %114 = load i32, ptr %113, align 8, !tbaa !25
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader91, label %.lr.ph, !llvm.loop !40

._crit_edge100:                                   ; preds = %._crit_edge98.us, %.preheader91, %4
  %116 = call i32 @bdestroy(ptr noundef %21) #5
  %117 = load i32, ptr %3, align 4, !tbaa !41
  %switch.selectcmp = icmp eq i32 %117, 2
  %switch.select = select i1 %switch.selectcmp, i32 2, i32 3
  %switch.selectcmp89 = icmp eq i32 %117, 0
  %switch.select90 = select i1 %switch.selectcmp89, i32 0, i32 %switch.select
  call void @llvm.lifetime.end.p0(i64 688, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i32 %switch.select90
}

declare i32 @bstrListAlloc(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @bfromcstr(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @reset_node(ptr noundef) local_unnamed_addr #3

declare i32 @bassigncstr(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

!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, !12, i64 444}
!6 = !{!"Domain_t", !7, i64 0, !13, i64 240, !15, i64 408, !8, i64 448, !12, i64 456, !16, i64 464, !21, i64 968, !21, i64 1088, !21, i64 1208, !21, i64 1328, !8, i64 1448}
!7 = !{!"InnerSolveAttributes_t", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !9, i64 32, !9, i64 48, !9, i64 64, !9, i64 96, !9, i64 112, !9, i64 128, !9, i64 144, !9, i64 160, !9, i64 176, !11, i64 192, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !9, i64 220, !12, i64 228, !12, i64 232}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"OuterSolveAttributes_t", !12, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !14, i64 152, !14, i64 153, !14, i64 154, !12, i64 156, !12, i64 160, !12, i64 164}
!14 = !{!"_Bool", !9, i64 0}
!15 = !{!"DomainOptions_t", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !14, i64 32, !14, i64 33, !12, i64 36}
!16 = !{!"Vessel_t", !17, i64 0, !8, i64 120, !8, i64 128, !8, i64 136, !19, i64 144, !19, i64 264, !20, i64 384}
!17 = !{!"EulerAngle_t", !18, i64 0, !18, i64 40, !18, i64 80}
!18 = !{!"VarType_t", !8, i64 0, !8, i64 8, !11, i64 16, !14, i64 24, !14, i64 25, !12, i64 28, !12, i64 32}
!19 = !{!"Point_t", !18, i64 0, !18, i64 40, !18, i64 80}
!20 = !{!"Force_t", !18, i64 0, !18, i64 40, !18, i64 80}
!21 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !12, i64 24, !8, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !8, i64 56, !22, i64 64}
!22 = !{!"list_attributes_s", !8, i64 0, !8, i64 8, !8, i64 16, !12, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!23 = !{!24, !8, i64 8}
!24 = !{!"InitializationData_t", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!25 = !{!26, !12, i64 0}
!26 = !{!"bstrList", !12, i64 0, !12, i64 4, !8, i64 8}
!27 = !{!11, !11, i64 0}
!28 = !{!29, !8, i64 8}
!29 = !{!"tagbstring", !12, i64 0, !12, i64 4, !8, i64 8}
!30 = !{!29, !12, i64 4}
!31 = !{!29, !12, i64 0}
!32 = !{!24, !8, i64 32}
!33 = !{!6, !8, i64 408}
!34 = !{!26, !8, i64 8}
!35 = !{!8, !8, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !37}
!41 = !{!12, !12, i64 0}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass