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

; 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.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.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Point_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Force_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.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.tagbstring = type { i32, i32, ptr }

@.str.62 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [6 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

declare i32 @list_size(ptr noundef) #1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @write_node_information_to_summary_file(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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = 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 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store ptr null, ptr %18, align 8, !tbaa !5
  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 ptr null, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store ptr null, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 4, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Domain_t, ptr %29, i32 0, i32 8
  %31 = call i32 @list_size(ptr noundef %30)
  store i32 %31, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %295, %32
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %25, align 4, !tbaa !9
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %37, label %298

37:                                               ; preds = %33
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = add i32 %38, 4
  %40 = load i32, ptr %25, align 4, !tbaa !9
  %41 = icmp ugt i32 %39, %40
  br i1 %41, label %42, label %46

42:                                               ; preds = %37
  %43 = load i32, ptr %25, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = sub i32 %43, %44
  store i32 %45, ptr %10, align 4, !tbaa !9
  br label %47

46:                                               ; preds = %37
  store i32 4, ptr %10, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %46, %42
  %48 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %48, ptr %13, align 8, !tbaa !5
  %49 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %49, ptr %14, align 8, !tbaa !5
  %50 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %50, ptr %15, align 8, !tbaa !5
  %51 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %51, ptr %16, align 8, !tbaa !5
  %52 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %52, ptr %17, align 8, !tbaa !5
  %53 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %53, ptr %18, align 8, !tbaa !5
  %54 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %54, ptr %19, align 8, !tbaa !5
  %55 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %55, ptr %20, align 8, !tbaa !5
  %56 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %56, ptr %21, align 8, !tbaa !5
  %57 = call ptr (ptr, ...) @bformat(ptr noundef @.str.62)
  store ptr %57, ptr %22, align 8, !tbaa !5
  %58 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %58, ptr %26, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %219, %47
  %60 = load i32, ptr %26, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = add i32 %61, %62
  %64 = icmp ult i32 %60, %63
  br i1 %64, label %65, label %222

65:                                               ; preds = %59
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Domain_t, ptr %66, i32 0, i32 8
  %68 = load i32, ptr %26, align 4, !tbaa !9
  %69 = call ptr @list_get_at(ptr noundef %67, i32 noundef %68)
  store ptr %69, ptr %23, align 8, !tbaa !5
  %70 = load i32, ptr %26, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sub i32 %70, %71
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %26, align 4, !tbaa !9
  %75 = add i32 %74, 1
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = call i32 @write_node_header_to_summary_file(i32 noundef %72, i32 noundef %73, i32 noundef %75, ptr noundef %76)
  store i32 %77, ptr %27, align 4, !tbaa !9
  %78 = load i32, ptr %27, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %65
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %81, ptr noundef %82, i32 noundef 70)
  br label %222

83:                                               ; preds = %65
  %84 = load i32, ptr %26, align 4, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = sub i32 %84, %85
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load ptr, ptr %23, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Node_t, ptr %88, i32 0, i32 3
  %90 = load i32, ptr %89, align 8, !tbaa !11
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = call i32 @write_node_type_to_summary_file(i32 noundef %86, i32 noundef %87, i32 noundef %90, ptr noundef %91)
  store i32 %92, ptr %27, align 4, !tbaa !9
  %93 = load i32, ptr %27, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %98

95:                                               ; preds = %83
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %96, ptr noundef %97, i32 noundef 70)
  br label %222

98:                                               ; preds = %83
  %99 = load i32, ptr %26, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = sub i32 %99, %100
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Node_t, ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds %struct.PointPtr_t, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = call i32 @write_node_x_position_to_summary_file(i32 noundef %101, i32 noundef %102, ptr noundef %105, ptr noundef %106)
  store i32 %107, ptr %27, align 4, !tbaa !9
  %108 = load i32, ptr %27, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %98
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %111, ptr noundef %112, i32 noundef 70)
  br label %222

113:                                              ; preds = %98
  %114 = load i32, ptr %26, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = sub i32 %114, %115
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Node_t, ptr %118, i32 0, i32 2
  %120 = getelementptr inbounds %struct.PointPtr_t, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = call i32 @write_node_y_position_to_summary_file(i32 noundef %116, i32 noundef %117, ptr noundef %120, ptr noundef %121)
  store i32 %122, ptr %27, align 4, !tbaa !9
  %123 = load i32, ptr %27, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %128

125:                                              ; preds = %113
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %126, ptr noundef %127, i32 noundef 70)
  br label %222

128:                                              ; preds = %113
  %129 = load i32, ptr %26, align 4, !tbaa !9
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = sub i32 %129, %130
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Node_t, ptr %133, i32 0, i32 2
  %135 = getelementptr inbounds %struct.PointPtr_t, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = call i32 @write_node_z_position_to_summary_file(i32 noundef %131, i32 noundef %132, ptr noundef %135, ptr noundef %136)
  store i32 %137, ptr %27, align 4, !tbaa !9
  %138 = load i32, ptr %27, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %143

140:                                              ; preds = %128
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %141, ptr noundef %142, i32 noundef 70)
  br label %222

143:                                              ; preds = %128
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = sub i32 %144, %145
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.Node_t, ptr %148, i32 0, i32 5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = call i32 @write_node_mass_information_to_summary_file(i32 noundef %146, i32 noundef %147, ptr noundef %149, ptr noundef %150)
  store i32 %151, ptr %27, align 4, !tbaa !9
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %157

154:                                              ; preds = %143
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %155, ptr noundef %156, i32 noundef 70)
  br label %222

157:                                              ; preds = %143
  %158 = load i32, ptr %26, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = sub i32 %158, %159
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Node_t, ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = call i32 @write_node_buoyancy_information_to_summary_file(i32 noundef %160, i32 noundef %161, ptr noundef %163, ptr noundef %164)
  store i32 %165, ptr %27, align 4, !tbaa !9
  %166 = load i32, ptr %27, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %171

168:                                              ; preds = %157
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %169, ptr noundef %170, i32 noundef 70)
  br label %222

171:                                              ; preds = %157
  %172 = load i32, ptr %26, align 4, !tbaa !9
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = sub i32 %172, %173
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %23, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.Node_t, ptr %176, i32 0, i32 4
  %178 = getelementptr inbounds %struct.ForcePtr_t, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = call i32 @write_node_x_sum_force_to_summary_file(i32 noundef %174, i32 noundef %175, ptr noundef %178, ptr noundef %179)
  store i32 %180, ptr %27, align 4, !tbaa !9
  %181 = load i32, ptr %27, align 4, !tbaa !9
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %186

183:                                              ; preds = %171
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %184, ptr noundef %185, i32 noundef 70)
  br label %222

186:                                              ; preds = %171
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = sub i32 %187, %188
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = load ptr, ptr %23, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.Node_t, ptr %191, i32 0, i32 4
  %193 = getelementptr inbounds %struct.ForcePtr_t, ptr %192, i32 0, i32 1
  %194 = load ptr, ptr %21, align 8, !tbaa !5
  %195 = call i32 @write_node_y_sum_force_to_summary_file(i32 noundef %189, i32 noundef %190, ptr noundef %193, ptr noundef %194)
  store i32 %195, ptr %27, align 4, !tbaa !9
  %196 = load i32, ptr %27, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %201

198:                                              ; preds = %186
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %199, ptr noundef %200, i32 noundef 70)
  br label %222

201:                                              ; preds = %186
  %202 = load i32, ptr %26, align 4, !tbaa !9
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = sub i32 %202, %203
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = load ptr, ptr %23, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.Node_t, ptr %206, i32 0, i32 4
  %208 = getelementptr inbounds %struct.ForcePtr_t, ptr %207, i32 0, i32 2
  %209 = load ptr, ptr %22, align 8, !tbaa !5
  %210 = call i32 @write_node_z_sum_force_to_summary_file(i32 noundef %204, i32 noundef %205, ptr noundef %208, ptr noundef %209)
  store i32 %210, ptr %27, align 4, !tbaa !9
  %211 = load i32, ptr %27, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %216

213:                                              ; preds = %201
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %214, ptr noundef %215, i32 noundef 70)
  br label %222

216:                                              ; preds = %201
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %12, align 4, !tbaa !9
  br label %219

219:                                              ; preds = %216
  %220 = load i32, ptr %26, align 4, !tbaa !9
  %221 = add i32 %220, 1
  store i32 %221, ptr %26, align 4, !tbaa !9
  br label %59, !llvm.loop !20

222:                                              ; preds = %213, %198, %183, %168, %154, %140, %125, %110, %95, %80, %59
  store i32 0, ptr %12, align 4, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.tagbstring, ptr %224, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !22
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.63, ptr noundef %226) #4
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.64) #4
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.tagbstring, ptr %231, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !22
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.63, ptr noundef %233) #4
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.tagbstring, ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !22
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.63, ptr noundef %238) #4
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = load ptr, ptr %16, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.tagbstring, ptr %241, i32 0, i32 2
  %243 = load ptr, ptr %242, align 8, !tbaa !22
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.63, ptr noundef %243) #4
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.tagbstring, ptr %246, i32 0, i32 2
  %248 = load ptr, ptr %247, align 8, !tbaa !22
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.63, ptr noundef %248) #4
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.tagbstring, ptr %251, i32 0, i32 2
  %253 = load ptr, ptr %252, align 8, !tbaa !22
  %254 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.63, ptr noundef %253) #4
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  %256 = load ptr, ptr %19, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.tagbstring, ptr %256, i32 0, i32 2
  %258 = load ptr, ptr %257, align 8, !tbaa !22
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.63, ptr noundef %258) #4
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = load ptr, ptr %20, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.tagbstring, ptr %261, i32 0, i32 2
  %263 = load ptr, ptr %262, align 8, !tbaa !22
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.63, ptr noundef %263) #4
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = load ptr, ptr %21, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.tagbstring, ptr %266, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !22
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.63, ptr noundef %268) #4
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = load ptr, ptr %22, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.tagbstring, ptr %271, i32 0, i32 2
  %273 = load ptr, ptr %272, align 8, !tbaa !22
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.65, ptr noundef %273) #4
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = call i32 @bdestroy(ptr noundef %275)
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = call i32 @bdestroy(ptr noundef %277)
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = call i32 @bdestroy(ptr noundef %279)
  %281 = load ptr, ptr %16, align 8, !tbaa !5
  %282 = call i32 @bdestroy(ptr noundef %281)
  %283 = load ptr, ptr %17, align 8, !tbaa !5
  %284 = call i32 @bdestroy(ptr noundef %283)
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  %286 = call i32 @bdestroy(ptr noundef %285)
  %287 = load ptr, ptr %19, align 8, !tbaa !5
  %288 = call i32 @bdestroy(ptr noundef %287)
  %289 = load ptr, ptr %20, align 8, !tbaa !5
  %290 = call i32 @bdestroy(ptr noundef %289)
  %291 = load ptr, ptr %21, align 8, !tbaa !5
  %292 = call i32 @bdestroy(ptr noundef %291)
  %293 = load ptr, ptr %22, align 8, !tbaa !5
  %294 = call i32 @bdestroy(ptr noundef %293)
  br label %295

295:                                              ; preds = %222
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = add i32 %296, 4
  store i32 %297, ptr %11, align 4, !tbaa !9
  br label %33, !llvm.loop !24

298:                                              ; preds = %33
  br label %299

299:                                              ; preds = %298
  br label %300

300:                                              ; preds = %299
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = load i32, ptr %301, align 4, !tbaa !9
  %303 = icmp eq i32 %302, 0
  br i1 %303, label %304, label %305

304:                                              ; preds = %300
  store i32 0, ptr %5, align 4
  store i32 1, ptr %28, align 4
  br label %311

305:                                              ; preds = %300
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  %307 = load i32, ptr %306, align 4, !tbaa !9
  %308 = icmp eq i32 %307, 2
  br i1 %308, label %309, label %310

309:                                              ; preds = %305
  store i32 2, ptr %5, align 4
  store i32 1, ptr %28, align 4
  br label %311

310:                                              ; preds = %305
  store i32 3, ptr %5, align 4
  store i32 1, ptr %28, align 4
  br label %311

311:                                              ; preds = %310, %309, %304
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 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
  %312 = load i32, ptr %5, align 4
  ret i32 %312
}

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

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

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

declare i32 @bdestroy(ptr noundef) #1

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

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

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

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

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

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

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

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

declare ptr @list_get_at(ptr noundef, i32 noundef) #1

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

!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 360}
!12 = !{!"Node_t", !13, i64 0, !13, i64 120, !13, i64 240, !10, i64 360, !16, i64 368, !17, i64 488, !17, i64 528, !19, i64 568}
!13 = !{!"PointPtr_t", !14, i64 0, !14, i64 40, !14, i64 80}
!14 = !{!"VarTypePtr_t", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !10, i64 28, !10, i64 32}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"ForcePtr_t", !14, i64 0, !14, i64 40, !14, i64 80}
!17 = !{!"VarType_t", !6, i64 0, !6, i64 8, !18, i64 16, !15, i64 24, !15, i64 25, !10, i64 28, !10, i64 32}
!18 = !{!"double", !7, i64 0}
!19 = !{!"Force_t", !17, i64 0, !17, i64 40, !17, i64 80}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 8}
!23 = !{!"tagbstring", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = distinct !{!24, !21}


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

@.str.62 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @list_size(ptr noundef) local_unnamed_addr #0

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

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @write_node_information_to_summary_file(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %1, i64 1208
  %6 = tail call i32 @list_size(ptr noundef nonnull %5) #4
  %.not150 = icmp eq i32 %6, 0
  br i1 %.not150, label %._crit_edge, label %.lr.ph149

.lr.ph149:                                        ; preds = %4, %.loopexit
  %indvars.iv151 = phi i32 [ %indvars.iv.next152, %.loopexit ], [ 0, %4 ]
  %indvars.iv = phi i32 [ %indvars.iv.next, %.loopexit ], [ 4, %4 ]
  %.0132148 = phi i32 [ %8, %.loopexit ], [ 0, %4 ]
  %umin = tail call i32 @llvm.umin.i32(i32 %6, i32 %indvars.iv)
  %7 = add i32 %umin, %indvars.iv151
  %8 = add i32 %.0132148, 4
  %9 = icmp ugt i32 %8, %6
  %10 = sub i32 %6, %.0132148
  %.0130 = select i1 %9, i32 %10, i32 4
  %11 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %12 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %13 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %14 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %15 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %16 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %17 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %18 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %19 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %20 = tail call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.62) #4
  %21 = add i32 %.0130, %.0132148
  %22 = icmp ult i32 %.0132148, %21
  br i1 %22, label %.lr.ph, label %.loopexit

23:                                               ; preds = %54
  %24 = add nuw i32 %.1146, 1
  %exitcond.not = icmp eq i32 %24, %7
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !5

.lr.ph:                                           ; preds = %.lr.ph149, %23
  %.0147 = phi i32 [ %27, %23 ], [ %.0132148, %.lr.ph149 ]
  %.1146 = phi i32 [ %24, %23 ], [ 0, %.lr.ph149 ]
  %25 = tail call ptr @list_get_at(ptr noundef nonnull %5, i32 noundef %.0147) #4
  %26 = sub nuw i32 %.0147, %.0132148
  %27 = add nuw i32 %.0147, 1
  %28 = tail call i32 @write_node_header_to_summary_file(i32 noundef %26, i32 noundef %.1146, i32 noundef %27, ptr noundef %11)
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %29, label %.loopexit.sink.split

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %25, i64 360
  %31 = load i32, ptr %30, align 8, !tbaa !7
  %32 = tail call i32 @write_node_type_to_summary_file(i32 noundef %26, i32 noundef %.1146, i32 noundef %31, ptr noundef %12)
  %.not135 = icmp eq i32 %32, 0
  br i1 %.not135, label %33, label %.loopexit.sink.split

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %25, i64 240
  %35 = tail call i32 @write_node_x_position_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %34, ptr noundef %13)
  %.not136 = icmp eq i32 %35, 0
  br i1 %.not136, label %36, label %.loopexit.sink.split

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %25, i64 280
  %38 = tail call i32 @write_node_y_position_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %37, ptr noundef %14)
  %.not137 = icmp eq i32 %38, 0
  br i1 %.not137, label %39, label %.loopexit.sink.split

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %25, i64 320
  %41 = tail call i32 @write_node_z_position_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %40, ptr noundef %15)
  %.not138 = icmp eq i32 %41, 0
  br i1 %.not138, label %42, label %.loopexit.sink.split

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %25, i64 488
  %44 = tail call i32 @write_node_mass_information_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %43, ptr noundef %16)
  %.not139 = icmp eq i32 %44, 0
  br i1 %.not139, label %45, label %.loopexit.sink.split

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %25, i64 528
  %47 = tail call i32 @write_node_buoyancy_information_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %46, ptr noundef %17)
  %.not140 = icmp eq i32 %47, 0
  br i1 %.not140, label %48, label %.loopexit.sink.split

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %25, i64 368
  %50 = tail call i32 @write_node_x_sum_force_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %49, ptr noundef %18)
  %.not141 = icmp eq i32 %50, 0
  br i1 %.not141, label %51, label %.loopexit.sink.split

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %25, i64 408
  %53 = tail call i32 @write_node_y_sum_force_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %52, ptr noundef %19)
  %.not142 = icmp eq i32 %53, 0
  br i1 %.not142, label %54, label %.loopexit.sink.split

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %25, i64 448
  %56 = tail call i32 @write_node_z_sum_force_to_summary_file(i32 noundef %26, i32 noundef %.1146, ptr noundef nonnull %55, ptr noundef %20)
  %.not143 = icmp eq i32 %56, 0
  br i1 %.not143, label %23, label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %54, %51, %48, %45, %42, %39, %36, %33, %29, %.lr.ph
  tail call void @set_universal_error(ptr noundef %2, ptr noundef %3, i32 noundef 70) #4
  br label %.loopexit

.loopexit:                                        ; preds = %23, %.loopexit.sink.split, %.lr.ph149
  %57 = getelementptr inbounds i8, ptr %11, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %58) #4
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.64) #4
  %61 = getelementptr inbounds i8, ptr %12, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %62) #4
  %64 = getelementptr inbounds i8, ptr %13, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %65) #4
  %67 = getelementptr inbounds i8, ptr %14, i64 8
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %68) #4
  %70 = getelementptr inbounds i8, ptr %15, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %71) #4
  %73 = getelementptr inbounds i8, ptr %16, i64 8
  %74 = load ptr, ptr %73, align 8, !tbaa !20
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %74) #4
  %76 = getelementptr inbounds i8, ptr %17, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !20
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %77) #4
  %79 = getelementptr inbounds i8, ptr %18, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %80) #4
  %82 = getelementptr inbounds i8, ptr %19, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.63, ptr noundef %83) #4
  %85 = getelementptr inbounds i8, ptr %20, i64 8
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.65, ptr noundef %86) #4
  %88 = tail call i32 @bdestroy(ptr noundef %11) #4
  %89 = tail call i32 @bdestroy(ptr noundef %12) #4
  %90 = tail call i32 @bdestroy(ptr noundef %13) #4
  %91 = tail call i32 @bdestroy(ptr noundef %14) #4
  %92 = tail call i32 @bdestroy(ptr noundef %15) #4
  %93 = tail call i32 @bdestroy(ptr noundef %16) #4
  %94 = tail call i32 @bdestroy(ptr noundef %17) #4
  %95 = tail call i32 @bdestroy(ptr noundef %18) #4
  %96 = tail call i32 @bdestroy(ptr noundef %19) #4
  %97 = tail call i32 @bdestroy(ptr noundef %20) #4
  %98 = icmp ult i32 %8, %6
  %indvars.iv.next = add i32 %indvars.iv, 4
  %indvars.iv.next152 = add i32 %indvars.iv151, -4
  br i1 %98, label %.lr.ph149, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.loopexit, %4
  %99 = load i32, ptr %3, align 4, !tbaa !23
  %switch.selectcmp = icmp eq i32 %99, 2
  %switch.select = select i1 %switch.selectcmp, i32 2, i32 3
  %switch.selectcmp144 = icmp eq i32 %99, 0
  %switch.select145 = select i1 %switch.selectcmp144, i32 0, i32 %switch.select
  ret i32 %switch.select145
}

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

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

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

declare i32 @bdestroy(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

declare ptr @list_get_at(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !15, i64 360}
!8 = !{!"Node_t", !9, i64 0, !9, i64 120, !9, i64 240, !15, i64 360, !16, i64 368, !17, i64 488, !17, i64 528, !19, i64 568}
!9 = !{!"PointPtr_t", !10, i64 0, !10, i64 40, !10, i64 80}
!10 = !{!"VarTypePtr_t", !11, i64 0, !11, i64 8, !11, i64 16, !14, i64 24, !15, i64 28, !15, i64 32}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C/C++ TBAA"}
!14 = !{!"_Bool", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!"ForcePtr_t", !10, i64 0, !10, i64 40, !10, i64 80}
!17 = !{!"VarType_t", !11, i64 0, !11, i64 8, !18, i64 16, !14, i64 24, !14, i64 25, !15, i64 28, !15, i64 32}
!18 = !{!"double", !12, i64 0}
!19 = !{!"Force_t", !17, i64 0, !17, i64 40, !17, i64 80}
!20 = !{!21, !11, i64 8}
!21 = !{!"tagbstring", !15, i64 0, !15, i64 4, !11, i64 8}
!22 = distinct !{!22, !6}
!23 = !{!15, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass