; 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.Line_t = type { ptr, %struct.LineOptions, %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarType_t, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct.list_t, ptr, ptr, i32, i32, i32, i32, i32 }
%struct.LineOptions = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.VarTypePtr_t = type { ptr, ptr, ptr, i8, i32, i32 }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%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.tagbstring = type { i32, i32, ptr }
%struct.bstrList = type { i32, i32, ptr }
%struct.MAP_ConstraintStateType = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%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.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #0

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

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

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

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

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

declare void @set_universal_error_with_message(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

declare i32 @bstrListDestroy(ptr noundef) #1

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

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

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

declare i32 @bdestroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @reset_line(ptr noundef) #4

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @set_line_list(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %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 %struct.Line_t, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %struct.tagbstring, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.bstrList, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !11
  store i32 %25, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 480, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store ptr null, ptr %21, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %5
  %27 = getelementptr inbounds %struct.tagbstring, ptr %20, i32 0, i32 2
  store ptr @.str.34, ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds %struct.tagbstring, ptr %20, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %36

31:                                               ; preds = %26
  %32 = getelementptr inbounds %struct.tagbstring, ptr %20, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = call i64 @strlen(ptr noundef %33) #6
  %35 = trunc i64 %34 to i32
  br label %37

36:                                               ; preds = %26
  br label %37

37:                                               ; preds = %36, %31
  %38 = phi i32 [ %35, %31 ], [ 0, %36 ]
  %39 = getelementptr inbounds %struct.tagbstring, ptr %20, i32 0, i32 1
  store i32 %38, ptr %39, align 4, !tbaa !15
  %40 = getelementptr inbounds %struct.tagbstring, ptr %20, i32 0, i32 0
  store i32 -1, ptr %40, align 8, !tbaa !16
  br label %41

41:                                               ; preds = %37
  br label %42

42:                                               ; preds = %41
  %43 = call i32 @reset_line(ptr noundef %17)
  store i32 %43, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %45, i32 0, i32 2
  store i32 %44, ptr %46, align 8, !tbaa !17
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %48, i32 0, i32 4
  store i32 %47, ptr %49, align 8, !tbaa !19
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = sext i32 %52 to i64
  %54 = mul i64 %53, 8
  %55 = call noalias ptr @malloc(i64 noundef %54) #7
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %56, i32 0, i32 1
  store ptr %55, ptr %57, align 8, !tbaa !20
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 8, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = mul i64 %61, 8
  %63 = call noalias ptr @malloc(i64 noundef %62) #7
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %64, i32 0, i32 3
  store ptr %63, ptr %65, align 8, !tbaa !21
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = icmp eq ptr %68, null
  br i1 %69, label %75, label %70

70:                                               ; preds = %42
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %71, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %78

75:                                               ; preds = %70, %42
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %76, ptr noundef %77, i32 noundef 53, ptr noundef @.str.91)
  store i32 3, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %326

78:                                               ; preds = %70
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %322, %78
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %83, label %325

83:                                               ; preds = %79
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Domain_t, ptr %84, i32 0, i32 7
  %86 = call i32 @list_append(ptr noundef %85, ptr noundef %17)
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Domain_t, ptr %87, i32 0, i32 7
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = call ptr @list_get_at(ptr noundef %88, i32 noundef %89)
  store ptr %90, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.bstrList, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = call ptr @bsplits(ptr noundef %97, ptr noundef %20)
  store ptr %98, ptr %19, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %83
  br label %100

100:                                              ; preds = %314, %99
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.bstrList, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !11
  %105 = sub nsw i32 %104, 1
  %106 = icmp slt i32 %101, %105
  br i1 %106, label %107, label %317

107:                                              ; preds = %100
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.bstrList, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !22
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.tagbstring, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !15
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %314

118:                                              ; preds = %107
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %192

121:                                              ; preds = %118
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Line_t, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  %129 = call i32 @associate_vartype_ptr(ptr noundef %123, ptr noundef %126, i32 noundef %128)
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Line_t, ptr %130, i32 0, i32 3
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !21
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  %137 = call i32 @associate_vartype_ptr(ptr noundef %131, ptr noundef %134, i32 noundef %136)
  store i32 %137, ptr %12, align 4, !tbaa !9
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Line_t, ptr %138, i32 0, i32 2
  %140 = getelementptr inbounds %struct.VarTypePtr_t, ptr %139, i32 0, i32 3
  store i8 0, ptr %140, align 8, !tbaa !23
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  %143 = call ptr (ptr, ...) @bformat(ptr noundef @.str.92, i32 noundef %142)
  store ptr %143, ptr %21, align 8, !tbaa !5
  %144 = load ptr, ptr %21, align 8, !tbaa !5
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.Line_t, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.bstrList, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = call i32 @set_vartype_ptr(ptr noundef @.str.4, ptr noundef %144, i32 noundef %145, ptr noundef %147, ptr noundef %154)
  store i32 %155, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %161

158:                                              ; preds = %121
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %159, ptr noundef %160, i32 noundef 32)
  br label %317

161:                                              ; preds = %121
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = call i32 @bdestroy(ptr noundef %162)
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load ptr, ptr %18, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.Line_t, ptr %164, i32 0, i32 3
  %166 = getelementptr inbounds %struct.VarTypePtr_t, ptr %165, i32 0, i32 3
  store i8 0, ptr %166, align 8, !tbaa !32
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  %169 = call ptr (ptr, ...) @bformat(ptr noundef @.str.93, i32 noundef %168)
  store ptr %169, ptr %21, align 8, !tbaa !5
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %18, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Line_t, ptr %172, i32 0, i32 3
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.bstrList, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !22
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = call i32 @set_vartype_ptr(ptr noundef @.str.4, ptr noundef %170, i32 noundef %171, ptr noundef %173, ptr noundef %180)
  store i32 %181, ptr %12, align 4, !tbaa !9
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %187

184:                                              ; preds = %161
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %185, ptr noundef %186, i32 noundef 32)
  br label %317

187:                                              ; preds = %161
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = call i32 @bdestroy(ptr noundef %188)
  store i32 %189, ptr %12, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %15, align 4, !tbaa !9
  br label %313

192:                                              ; preds = %118
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = icmp eq i32 %193, 1
  br i1 %194, label %195, label %218

195:                                              ; preds = %192
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.bstrList, ptr %198, i32 0, i32 2
  %200 = load ptr, ptr %199, align 8, !tbaa !22
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds ptr, ptr %200, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.tagbstring, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !13
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = call i32 @associate_line_with_cable_property(ptr noundef %196, ptr noundef %197, ptr noundef %206, ptr noundef %207, ptr noundef %208)
  store i32 %209, ptr %12, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %215

212:                                              ; preds = %195
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %213, ptr noundef %214, i32 noundef 32)
  br label %317

215:                                              ; preds = %195
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %15, align 4, !tbaa !9
  br label %312

218:                                              ; preds = %192
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = icmp eq i32 %219, 2
  br i1 %220, label %221, label %247

221:                                              ; preds = %218
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  %224 = call ptr (ptr, ...) @bformat(ptr noundef @.str.94, i32 noundef %223)
  store ptr %224, ptr %21, align 8, !tbaa !5
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.Line_t, ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.bstrList, ptr %229, i32 0, i32 2
  %231 = load ptr, ptr %230, align 8, !tbaa !22
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds ptr, ptr %231, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = call i32 @set_vartype(ptr noundef @.str, ptr noundef %225, i32 noundef %226, ptr noundef %228, ptr noundef %235)
  store i32 %236, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %242

239:                                              ; preds = %221
  %240 = load ptr, ptr %10, align 8, !tbaa !5
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %240, ptr noundef %241, i32 noundef 26)
  br label %317

242:                                              ; preds = %221
  %243 = load ptr, ptr %21, align 8, !tbaa !5
  %244 = call i32 @bdestroy(ptr noundef %243)
  store i32 %244, ptr %12, align 4, !tbaa !9
  %245 = load i32, ptr %15, align 4, !tbaa !9
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %15, align 4, !tbaa !9
  br label %311

247:                                              ; preds = %218
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = icmp eq i32 %248, 3
  br i1 %249, label %250, label %275

250:                                              ; preds = %247
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  %255 = load ptr, ptr %19, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.bstrList, ptr %255, i32 0, i32 2
  %257 = load ptr, ptr %256, align 8, !tbaa !22
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds ptr, ptr %257, i64 %259
  %261 = load ptr, ptr %260, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.tagbstring, ptr %261, i32 0, i32 2
  %263 = load ptr, ptr %262, align 8, !tbaa !13
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load ptr, ptr %11, align 8, !tbaa !5
  %266 = call i32 @associate_line_with_anchor_node(ptr noundef %251, ptr noundef %252, i32 noundef %254, ptr noundef %263, ptr noundef %264, ptr noundef %265)
  store i32 %266, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %272

269:                                              ; preds = %250
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %270, ptr noundef %271, i32 noundef 32)
  br label %317

272:                                              ; preds = %250
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %15, align 4, !tbaa !9
  br label %310

275:                                              ; preds = %247
  %276 = load i32, ptr %15, align 4, !tbaa !9
  %277 = icmp eq i32 %276, 4
  br i1 %277, label %278, label %303

278:                                              ; preds = %275
  %279 = load ptr, ptr %18, align 8, !tbaa !5
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  %283 = load ptr, ptr %19, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.bstrList, ptr %283, i32 0, i32 2
  %285 = load ptr, ptr %284, align 8, !tbaa !22
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds ptr, ptr %285, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.tagbstring, ptr %289, i32 0, i32 2
  %291 = load ptr, ptr %290, align 8, !tbaa !13
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = call i32 @associate_line_with_fairlead_node(ptr noundef %279, ptr noundef %280, i32 noundef %282, ptr noundef %291, ptr noundef %292, ptr noundef %293)
  store i32 %294, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %300

297:                                              ; preds = %278
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %298, ptr noundef %299, i32 noundef 32)
  br label %317

300:                                              ; preds = %278
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %15, align 4, !tbaa !9
  br label %309

303:                                              ; preds = %275
  %304 = load ptr, ptr %19, align 8, !tbaa !5
  %305 = load ptr, ptr %18, align 8, !tbaa !5
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = load ptr, ptr %11, align 8, !tbaa !5
  %308 = call i32 @set_line_option_flags(ptr noundef %304, ptr noundef %14, ptr noundef %305, ptr noundef %306, ptr noundef %307)
  store i32 %308, ptr %12, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %303, %300
  br label %310

310:                                              ; preds = %309, %272
  br label %311

311:                                              ; preds = %310, %242
  br label %312

312:                                              ; preds = %311, %215
  br label %313

313:                                              ; preds = %312, %187
  br label %314

314:                                              ; preds = %313, %107
  %315 = load i32, ptr %14, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %14, align 4, !tbaa !9
  br label %100, !llvm.loop !33

317:                                              ; preds = %297, %269, %239, %212, %184, %158, %100
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = load ptr, ptr %19, align 8, !tbaa !5
  %321 = call i32 @bstrListDestroy(ptr noundef %320)
  store i32 %321, ptr %12, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %319
  %323 = load i32, ptr %13, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %13, align 4, !tbaa !9
  br label %79, !llvm.loop !35

325:                                              ; preds = %79
  store i32 0, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %326

326:                                              ; preds = %325, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 480, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %327 = load i32, ptr %6, align 4
  ret i32 %327
}

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

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

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

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

!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 0}
!12 = !{!"bstrList", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!14, !6, i64 8}
!14 = !{!"tagbstring", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 0}
!17 = !{!18, !10, i64 16}
!18 = !{!"MAP_ConstraintStateType", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80}
!19 = !{!18, !10, i64 32}
!20 = !{!18, !6, i64 8}
!21 = !{!18, !6, i64 24}
!22 = !{!12, !6, i64 8}
!23 = !{!24, !26, i64 64}
!24 = !{!"Line_t", !6, i64 0, !25, i64 8, !27, i64 40, !27, i64 80, !28, i64 120, !6, i64 160, !6, i64 168, !29, i64 176, !29, i64 184, !29, i64 192, !29, i64 200, !29, i64 208, !29, i64 216, !29, i64 224, !29, i64 232, !29, i64 240, !29, i64 248, !29, i64 256, !29, i64 264, !29, i64 272, !29, i64 280, !29, i64 288, !29, i64 296, !29, i64 304, !29, i64 312, !30, i64 320, !6, i64 440, !6, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472}
!25 = !{!"", !26, i64 0, !26, i64 1, !26, i64 2, !26, i64 3, !26, i64 4, !26, i64 5, !26, i64 6, !26, i64 7, !26, i64 8, !26, i64 9, !26, i64 10, !26, i64 11, !26, i64 12, !26, i64 13, !26, i64 14, !26, i64 15, !26, i64 16, !26, i64 17, !26, i64 18, !26, i64 19, !26, i64 20, !26, i64 21, !26, i64 22, !26, i64 23, !26, i64 24, !26, i64 25}
!26 = !{!"_Bool", !7, i64 0}
!27 = !{!"VarTypePtr_t", !6, i64 0, !6, i64 8, !6, i64 16, !26, i64 24, !10, i64 28, !10, i64 32}
!28 = !{!"VarType_t", !6, i64 0, !6, i64 8, !29, i64 16, !26, i64 24, !26, i64 25, !10, i64 28, !10, i64 32}
!29 = !{!"double", !7, i64 0}
!30 = !{!"", !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, !31, i64 64}
!31 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!32 = !{!24, !26, i64 104}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


; 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.Line_t = type { ptr, %struct.LineOptions, %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarType_t, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct.list_t, ptr, ptr, i32, i32, i32, i32, i32 }
%struct.LineOptions = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.VarTypePtr_t = type { ptr, ptr, ptr, i8, i32, i32 }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%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.tagbstring = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

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

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

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

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

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

declare void @set_universal_error_with_message(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare i32 @bstrListDestroy(ptr noundef) local_unnamed_addr #1

declare i32 @list_append(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare i32 @bdestroy(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @set_line_list(ptr nocapture noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #4 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.Line_t, align 8
  %8 = alloca %struct.tagbstring, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %9 = load i32, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr @.str.34, ptr %10, align 8, !tbaa !12
  %11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.34) #6
  %12 = trunc i64 %11 to i32
  %13 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %12, ptr %13, align 4, !tbaa !14
  store i32 -1, ptr %8, align 8, !tbaa !15
  %14 = call i32 @reset_line(ptr noundef nonnull %7)
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %9, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %9, ptr %16, align 8, !tbaa !18
  %17 = sext i32 %9 to i64
  %18 = shl nsw i64 %17, 3
  %19 = call noalias ptr @malloc(i64 noundef %18) #7
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %19, ptr %20, align 8, !tbaa !19
  %21 = call noalias ptr @malloc(i64 noundef %18) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %21, ptr %22, align 8, !tbaa !20
  %23 = icmp eq ptr %19, null
  %24 = icmp eq ptr %21, null
  %or.cond = or i1 %23, %24
  br i1 %or.cond, label %28, label %.preheader

.preheader:                                       ; preds = %5
  %25 = icmp sgt i32 %9, 0
  br i1 %25, label %.lr.ph112, label %.loopexit108

.lr.ph112:                                        ; preds = %.preheader
  %26 = getelementptr inbounds i8, ptr %1, i64 1088
  %27 = getelementptr inbounds i8, ptr %2, i64 8
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %29

28:                                               ; preds = %5
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %3, ptr noundef %4, i32 noundef 53, ptr noundef nonnull @.str.91) #5
  br label %.loopexit108

29:                                               ; preds = %.lr.ph112, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph112 ], [ %indvars.iv.next.pre-phi, %.loopexit ]
  %30 = call i32 @list_append(ptr noundef nonnull %26, ptr noundef nonnull %7) #5
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  %32 = call ptr @list_get_at(ptr noundef nonnull %26, i32 noundef %31) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %33 = load ptr, ptr %27, align 8, !tbaa !21
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  %36 = call ptr @bsplits(ptr noundef %35, ptr noundef nonnull %8) #5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = load i32, ptr %36, align 8, !tbaa !9
  %39 = add nsw i32 %38, -1
  %40 = icmp slt i32 %37, %39
  br i1 %40, label %.lr.ph, label %..loopexit_crit_edge

..loopexit_crit_edge:                             ; preds = %29
  %.pre = add nuw nsw i64 %indvars.iv, 1
  br label %.loopexit

.lr.ph:                                           ; preds = %29
  %41 = getelementptr inbounds i8, ptr %36, i64 8
  %42 = add nuw nsw i64 %indvars.iv, 1
  %43 = getelementptr inbounds i8, ptr %32, i64 120
  %44 = getelementptr inbounds i8, ptr %32, i64 40
  %45 = getelementptr inbounds i8, ptr %32, i64 80
  %46 = getelementptr inbounds i8, ptr %32, i64 64
  %47 = getelementptr inbounds i8, ptr %32, i64 104
  %48 = trunc nuw nsw i64 %42 to i32
  %49 = trunc nuw nsw i64 %42 to i32
  %50 = trunc nuw nsw i64 %42 to i32
  %51 = trunc nuw nsw i64 %42 to i32
  br label %52

52:                                               ; preds = %.lr.ph, %114
  %53 = phi i32 [ %37, %.lr.ph ], [ %116, %114 ]
  %.099109 = phi i32 [ 0, %.lr.ph ], [ %.1, %114 ]
  %54 = load ptr, ptr %41, align 8, !tbaa !21
  %55 = sext i32 %53 to i64
  %56 = getelementptr inbounds ptr, ptr %54, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = getelementptr inbounds i8, ptr %57, i64 4
  %59 = load i32, ptr %58, align 4, !tbaa !14
  %.not = icmp eq i32 %59, 0
  br i1 %.not, label %114, label %60

60:                                               ; preds = %52
  switch i32 %.099109, label %112 [
    i32 0, label %61
    i32 1, label %86
    i32 2, label %91
    i32 3, label %102
    i32 4, label %107
  ]

61:                                               ; preds = %60
  %62 = load ptr, ptr %20, align 8, !tbaa !19
  %63 = call i32 @associate_vartype_ptr(ptr noundef nonnull %44, ptr noundef %62, i32 noundef %51)
  %64 = load ptr, ptr %22, align 8, !tbaa !20
  %65 = call i32 @associate_vartype_ptr(ptr noundef nonnull %45, ptr noundef %64, i32 noundef %51)
  store i8 0, ptr %46, align 8, !tbaa !23
  %66 = call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.92, i32 noundef %51) #5
  %67 = load ptr, ptr %41, align 8, !tbaa !21
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = call i32 @set_vartype_ptr(ptr noundef nonnull @.str.4, ptr noundef %66, i32 noundef %31, ptr noundef nonnull %44, ptr noundef %71)
  %.not106 = icmp eq i32 %72, 0
  br i1 %.not106, label %74, label %73

73:                                               ; preds = %61
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 32) #5
  br label %.loopexit

74:                                               ; preds = %61
  %75 = call i32 @bdestroy(ptr noundef %66) #5
  store i8 0, ptr %47, align 8, !tbaa !32
  %76 = call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.93, i32 noundef %51) #5
  %77 = load ptr, ptr %41, align 8, !tbaa !21
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !22
  %82 = call i32 @set_vartype_ptr(ptr noundef nonnull @.str.4, ptr noundef %76, i32 noundef %31, ptr noundef nonnull %45, ptr noundef %81)
  %.not107 = icmp eq i32 %82, 0
  br i1 %.not107, label %84, label %83

83:                                               ; preds = %74
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 32) #5
  br label %.loopexit

84:                                               ; preds = %74
  %85 = call i32 @bdestroy(ptr noundef %76) #5
  br label %114

86:                                               ; preds = %60
  %87 = getelementptr inbounds i8, ptr %57, i64 8
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = call i32 @associate_line_with_cable_property(ptr noundef %32, ptr noundef %1, ptr noundef %88, ptr noundef %3, ptr noundef %4)
  %.not105 = icmp eq i32 %89, 0
  br i1 %.not105, label %114, label %90

90:                                               ; preds = %86
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 32) #5
  br label %.loopexit

91:                                               ; preds = %60
  %92 = call ptr (ptr, ...) @bformat(ptr noundef nonnull @.str.94, i32 noundef %50) #5
  %93 = load ptr, ptr %41, align 8, !tbaa !21
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = call i32 @set_vartype(ptr noundef nonnull @.str, ptr noundef %92, i32 noundef %31, ptr noundef nonnull %43, ptr noundef %97)
  %.not104 = icmp eq i32 %98, 0
  br i1 %.not104, label %100, label %99

99:                                               ; preds = %91
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 26) #5
  br label %.loopexit

100:                                              ; preds = %91
  %101 = call i32 @bdestroy(ptr noundef %92) #5
  br label %114

102:                                              ; preds = %60
  %103 = getelementptr inbounds i8, ptr %57, i64 8
  %104 = load ptr, ptr %103, align 8, !tbaa !12
  %105 = call i32 @associate_line_with_anchor_node(ptr noundef %32, ptr noundef %1, i32 noundef %49, ptr noundef %104, ptr noundef %3, ptr noundef %4)
  %.not103 = icmp eq i32 %105, 0
  br i1 %.not103, label %114, label %106

106:                                              ; preds = %102
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 32) #5
  br label %.loopexit

107:                                              ; preds = %60
  %108 = getelementptr inbounds i8, ptr %57, i64 8
  %109 = load ptr, ptr %108, align 8, !tbaa !12
  %110 = call i32 @associate_line_with_fairlead_node(ptr noundef %32, ptr noundef %1, i32 noundef %48, ptr noundef %109, ptr noundef %3, ptr noundef %4)
  %.not102 = icmp eq i32 %110, 0
  br i1 %.not102, label %114, label %111

111:                                              ; preds = %107
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 32) #5
  br label %.loopexit

112:                                              ; preds = %60
  %113 = call i32 @set_line_option_flags(ptr noundef nonnull %36, ptr noundef nonnull %6, ptr noundef %32, ptr noundef %3, ptr noundef %4)
  br label %114

114:                                              ; preds = %107, %102, %86, %84, %100, %112, %52
  %.1 = phi i32 [ 1, %84 ], [ 3, %100 ], [ %.099109, %112 ], [ %.099109, %52 ], [ 2, %86 ], [ 4, %102 ], [ 5, %107 ]
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  %117 = load i32, ptr %36, align 8, !tbaa !9
  %118 = add nsw i32 %117, -1
  %119 = icmp slt i32 %116, %118
  br i1 %119, label %52, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %114, %..loopexit_crit_edge, %111, %106, %99, %90, %83, %73
  %indvars.iv.next.pre-phi = phi i64 [ %.pre, %..loopexit_crit_edge ], [ %42, %111 ], [ %42, %106 ], [ %42, %99 ], [ %42, %90 ], [ %42, %83 ], [ %42, %73 ], [ %42, %114 ]
  %120 = call i32 @bstrListDestroy(ptr noundef nonnull %36) #5
  %exitcond.not = icmp eq i64 %indvars.iv.next.pre-phi, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit108, label %29, !llvm.loop !35

.loopexit108:                                     ; preds = %.loopexit, %.preheader, %28
  %.0 = phi i32 [ 3, %28 ], [ 0, %.preheader ], [ 0, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  ret i32 %.0
}

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

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

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"bstrList", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"tagbstring", !6, i64 0, !6, i64 4, !11, i64 8}
!14 = !{!13, !6, i64 4}
!15 = !{!13, !6, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"MAP_ConstraintStateType", !11, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80}
!18 = !{!17, !6, i64 32}
!19 = !{!17, !11, i64 8}
!20 = !{!17, !11, i64 24}
!21 = !{!10, !11, i64 8}
!22 = !{!11, !11, i64 0}
!23 = !{!24, !26, i64 64}
!24 = !{!"Line_t", !11, i64 0, !25, i64 8, !27, i64 40, !27, i64 80, !28, i64 120, !11, i64 160, !11, i64 168, !29, i64 176, !29, i64 184, !29, i64 192, !29, i64 200, !29, i64 208, !29, i64 216, !29, i64 224, !29, i64 232, !29, i64 240, !29, i64 248, !29, i64 256, !29, i64 264, !29, i64 272, !29, i64 280, !29, i64 288, !29, i64 296, !29, i64 304, !29, i64 312, !30, i64 320, !11, i64 440, !11, i64 448, !6, i64 456, !6, i64 460, !6, i64 464, !6, i64 468, !6, i64 472}
!25 = !{!"", !26, i64 0, !26, i64 1, !26, i64 2, !26, i64 3, !26, i64 4, !26, i64 5, !26, i64 6, !26, i64 7, !26, i64 8, !26, i64 9, !26, i64 10, !26, i64 11, !26, i64 12, !26, i64 13, !26, i64 14, !26, i64 15, !26, i64 16, !26, i64 17, !26, i64 18, !26, i64 19, !26, i64 20, !26, i64 21, !26, i64 22, !26, i64 23, !26, i64 24, !26, i64 25}
!26 = !{!"_Bool", !7, i64 0}
!27 = !{!"VarTypePtr_t", !11, i64 0, !11, i64 8, !11, i64 16, !26, i64 24, !6, i64 28, !6, i64 32}
!28 = !{!"VarType_t", !11, i64 0, !11, i64 8, !29, i64 16, !26, i64 24, !26, i64 25, !6, i64 28, !6, i64 32}
!29 = !{!"double", !7, i64 0}
!30 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !31, i64 64}
!31 = !{!"list_attributes_s", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!32 = !{!24, !26, i64 104}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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