; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (ctrti2)

; 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.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ctrti2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.complex, align 4
  %19 = alloca i64, align 8
  %20 = alloca %struct.complex, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %25, ptr %14, align 8, !tbaa !9
  %26 = load i64, ptr %14, align 8, !tbaa !9
  %27 = add nsw i64 1, %26
  store i64 %27, ptr %15, align 8, !tbaa !9
  %28 = load i64, ptr %15, align 8, !tbaa !9
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = sub i64 0, %28
  %31 = getelementptr inbounds %struct.complex, ptr %29, i64 %30
  store ptr %31, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %32, align 8, !tbaa !9
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call i64 @lsame_(ptr noundef %33, ptr noundef @.str)
  store i64 %34, ptr %21, align 8, !tbaa !9
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call i64 @lsame_(ptr noundef %35, ptr noundef @.str.1)
  store i64 %36, ptr %22, align 8, !tbaa !9
  %37 = load i64, ptr %21, align 8, !tbaa !9
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %45, label %39

39:                                               ; preds = %6
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call i64 @lsame_(ptr noundef %40, ptr noundef @.str.2)
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %45, label %43

43:                                               ; preds = %39
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -1, ptr %44, align 8, !tbaa !9
  br label %78

45:                                               ; preds = %39, %6
  %46 = load i64, ptr %22, align 8, !tbaa !9
  %47 = icmp ne i64 %46, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call i64 @lsame_(ptr noundef %49, ptr noundef @.str)
  %51 = icmp ne i64 %50, 0
  br i1 %51, label %54, label %52

52:                                               ; preds = %48
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -2, ptr %53, align 8, !tbaa !9
  br label %77

54:                                               ; preds = %48, %45
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = icmp slt i64 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -3, ptr %59, align 8, !tbaa !9
  br label %76

60:                                               ; preds = %54
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = icmp sge i64 1, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  br label %70

67:                                               ; preds = %60
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %67, %66
  %71 = phi i64 [ 1, %66 ], [ %69, %67 ]
  %72 = icmp slt i64 %62, %71
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -5, ptr %74, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %73, %70
  br label %76

76:                                               ; preds = %75, %58
  br label %77

77:                                               ; preds = %76, %52
  br label %78

78:                                               ; preds = %77, %43
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %87

82:                                               ; preds = %78
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = sub nsw i64 0, %84
  store i64 %85, ptr %16, align 8, !tbaa !9
  %86 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %16)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %304

87:                                               ; preds = %78
  %88 = load i64, ptr %21, align 8, !tbaa !9
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %90, label %187

90:                                               ; preds = %87
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  store i64 %92, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %183, %90
  %94 = load i64, ptr %19, align 8, !tbaa !9
  %95 = load i64, ptr %16, align 8, !tbaa !9
  %96 = icmp sle i64 %94, %95
  br i1 %96, label %97, label %186

97:                                               ; preds = %93
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = icmp ne i64 %98, 0
  br i1 %99, label %100, label %150

100:                                              ; preds = %97
  %101 = load i64, ptr %19, align 8, !tbaa !9
  %102 = load i64, ptr %19, align 8, !tbaa !9
  %103 = load i64, ptr %14, align 8, !tbaa !9
  %104 = mul nsw i64 %102, %103
  %105 = add nsw i64 %101, %104
  store i64 %105, ptr %17, align 8, !tbaa !9
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load i64, ptr %19, align 8, !tbaa !9
  %108 = load i64, ptr %19, align 8, !tbaa !9
  %109 = load i64, ptr %14, align 8, !tbaa !9
  %110 = mul nsw i64 %108, %109
  %111 = add nsw i64 %107, %110
  %112 = getelementptr inbounds %struct.complex, ptr %106, i64 %111
  call void @c_div(ptr noundef %18, ptr noundef @c_b1, ptr noundef %112)
  %113 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load i64, ptr %17, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.complex, ptr %115, i64 %116
  %118 = getelementptr inbounds %struct.complex, ptr %117, i32 0, i32 0
  store float %114, ptr %118, align 4, !tbaa !11
  %119 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %120 = load float, ptr %119, align 4, !tbaa !14
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load i64, ptr %17, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.complex, ptr %121, i64 %122
  %124 = getelementptr inbounds %struct.complex, ptr %123, i32 0, i32 1
  store float %120, ptr %124, align 4, !tbaa !14
  %125 = load i64, ptr %19, align 8, !tbaa !9
  %126 = load i64, ptr %19, align 8, !tbaa !9
  %127 = load i64, ptr %14, align 8, !tbaa !9
  %128 = mul nsw i64 %126, %127
  %129 = add nsw i64 %125, %128
  store i64 %129, ptr %17, align 8, !tbaa !9
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i64, ptr %17, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.complex, ptr %130, i64 %131
  %133 = getelementptr inbounds %struct.complex, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = fneg float %134
  %136 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %135, ptr %136, align 4, !tbaa !11
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = load i64, ptr %17, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.complex, ptr %137, i64 %138
  %140 = getelementptr inbounds %struct.complex, ptr %139, i32 0, i32 1
  %141 = load float, ptr %140, align 4, !tbaa !14
  %142 = fneg float %141
  %143 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %142, ptr %143, align 4, !tbaa !14
  %144 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %145, ptr %146, align 4, !tbaa !11
  %147 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %148 = load float, ptr %147, align 4, !tbaa !14
  %149 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %148, ptr %149, align 4, !tbaa !14
  br label %159

150:                                              ; preds = %97
  %151 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float -1.000000e+00, ptr %151, align 4, !tbaa !11
  %152 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float -0.000000e+00, ptr %152, align 4, !tbaa !14
  %153 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !11
  %155 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %154, ptr %155, align 4, !tbaa !11
  %156 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %157 = load float, ptr %156, align 4, !tbaa !14
  %158 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %157, ptr %158, align 4, !tbaa !14
  br label %159

159:                                              ; preds = %150, %100
  %160 = load i64, ptr %19, align 8, !tbaa !9
  %161 = sub nsw i64 %160, 1
  store i64 %161, ptr %17, align 8, !tbaa !9
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load i64, ptr %15, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.complex, ptr %163, i64 %164
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = mul nsw i64 %168, %169
  %171 = add nsw i64 %170, 1
  %172 = getelementptr inbounds %struct.complex, ptr %167, i64 %171
  %173 = call i32 @f2c_ctrmv(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %162, ptr noundef %17, ptr noundef %165, ptr noundef %166, ptr noundef %172, ptr noundef @c__1)
  %174 = load i64, ptr %19, align 8, !tbaa !9
  %175 = sub nsw i64 %174, 1
  store i64 %175, ptr %17, align 8, !tbaa !9
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load i64, ptr %19, align 8, !tbaa !9
  %178 = load i64, ptr %14, align 8, !tbaa !9
  %179 = mul nsw i64 %177, %178
  %180 = add nsw i64 %179, 1
  %181 = getelementptr inbounds %struct.complex, ptr %176, i64 %180
  %182 = call i32 @f2c_cscal(ptr noundef %17, ptr noundef %20, ptr noundef %181, ptr noundef @c__1)
  br label %183

183:                                              ; preds = %159
  %184 = load i64, ptr %19, align 8, !tbaa !9
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %19, align 8, !tbaa !9
  br label %93, !llvm.loop !15

186:                                              ; preds = %93
  br label %303

187:                                              ; preds = %87
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = load i64, ptr %188, align 8, !tbaa !9
  store i64 %189, ptr %19, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %299, %187
  %191 = load i64, ptr %19, align 8, !tbaa !9
  %192 = icmp sge i64 %191, 1
  br i1 %192, label %193, label %302

193:                                              ; preds = %190
  %194 = load i64, ptr %22, align 8, !tbaa !9
  %195 = icmp ne i64 %194, 0
  br i1 %195, label %196, label %246

196:                                              ; preds = %193
  %197 = load i64, ptr %19, align 8, !tbaa !9
  %198 = load i64, ptr %19, align 8, !tbaa !9
  %199 = load i64, ptr %14, align 8, !tbaa !9
  %200 = mul nsw i64 %198, %199
  %201 = add nsw i64 %197, %200
  store i64 %201, ptr %16, align 8, !tbaa !9
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load i64, ptr %19, align 8, !tbaa !9
  %204 = load i64, ptr %19, align 8, !tbaa !9
  %205 = load i64, ptr %14, align 8, !tbaa !9
  %206 = mul nsw i64 %204, %205
  %207 = add nsw i64 %203, %206
  %208 = getelementptr inbounds %struct.complex, ptr %202, i64 %207
  call void @c_div(ptr noundef %18, ptr noundef @c_b1, ptr noundef %208)
  %209 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = load i64, ptr %16, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.complex, ptr %211, i64 %212
  %214 = getelementptr inbounds %struct.complex, ptr %213, i32 0, i32 0
  store float %210, ptr %214, align 4, !tbaa !11
  %215 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %216 = load float, ptr %215, align 4, !tbaa !14
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = load i64, ptr %16, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.complex, ptr %217, i64 %218
  %220 = getelementptr inbounds %struct.complex, ptr %219, i32 0, i32 1
  store float %216, ptr %220, align 4, !tbaa !14
  %221 = load i64, ptr %19, align 8, !tbaa !9
  %222 = load i64, ptr %19, align 8, !tbaa !9
  %223 = load i64, ptr %14, align 8, !tbaa !9
  %224 = mul nsw i64 %222, %223
  %225 = add nsw i64 %221, %224
  store i64 %225, ptr %16, align 8, !tbaa !9
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load i64, ptr %16, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.complex, ptr %226, i64 %227
  %229 = getelementptr inbounds %struct.complex, ptr %228, i32 0, i32 0
  %230 = load float, ptr %229, align 4, !tbaa !11
  %231 = fneg float %230
  %232 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %231, ptr %232, align 4, !tbaa !11
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = load i64, ptr %16, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.complex, ptr %233, i64 %234
  %236 = getelementptr inbounds %struct.complex, ptr %235, i32 0, i32 1
  %237 = load float, ptr %236, align 4, !tbaa !14
  %238 = fneg float %237
  %239 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %238, ptr %239, align 4, !tbaa !14
  %240 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %241 = load float, ptr %240, align 4, !tbaa !11
  %242 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %241, ptr %242, align 4, !tbaa !11
  %243 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %244 = load float, ptr %243, align 4, !tbaa !14
  %245 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %244, ptr %245, align 4, !tbaa !14
  br label %255

246:                                              ; preds = %193
  %247 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float -1.000000e+00, ptr %247, align 4, !tbaa !11
  %248 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float -0.000000e+00, ptr %248, align 4, !tbaa !14
  %249 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %250 = load float, ptr %249, align 4, !tbaa !11
  %251 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %250, ptr %251, align 4, !tbaa !11
  %252 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %253 = load float, ptr %252, align 4, !tbaa !14
  %254 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %253, ptr %254, align 4, !tbaa !14
  br label %255

255:                                              ; preds = %246, %196
  %256 = load i64, ptr %19, align 8, !tbaa !9
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = load i64, ptr %257, align 8, !tbaa !9
  %259 = icmp slt i64 %256, %258
  br i1 %259, label %260, label %298

260:                                              ; preds = %255
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load i64, ptr %261, align 8, !tbaa !9
  %263 = load i64, ptr %19, align 8, !tbaa !9
  %264 = sub nsw i64 %262, %263
  store i64 %264, ptr %16, align 8, !tbaa !9
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = load ptr, ptr %11, align 8, !tbaa !5
  %267 = load i64, ptr %19, align 8, !tbaa !9
  %268 = add nsw i64 %267, 1
  %269 = load i64, ptr %19, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  %271 = load i64, ptr %14, align 8, !tbaa !9
  %272 = mul nsw i64 %270, %271
  %273 = add nsw i64 %268, %272
  %274 = getelementptr inbounds %struct.complex, ptr %266, i64 %273
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = load i64, ptr %19, align 8, !tbaa !9
  %278 = add nsw i64 %277, 1
  %279 = load i64, ptr %19, align 8, !tbaa !9
  %280 = load i64, ptr %14, align 8, !tbaa !9
  %281 = mul nsw i64 %279, %280
  %282 = add nsw i64 %278, %281
  %283 = getelementptr inbounds %struct.complex, ptr %276, i64 %282
  %284 = call i32 @f2c_ctrmv(ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef %265, ptr noundef %16, ptr noundef %274, ptr noundef %275, ptr noundef %283, ptr noundef @c__1)
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = load i64, ptr %285, align 8, !tbaa !9
  %287 = load i64, ptr %19, align 8, !tbaa !9
  %288 = sub nsw i64 %286, %287
  store i64 %288, ptr %16, align 8, !tbaa !9
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = load i64, ptr %19, align 8, !tbaa !9
  %291 = add nsw i64 %290, 1
  %292 = load i64, ptr %19, align 8, !tbaa !9
  %293 = load i64, ptr %14, align 8, !tbaa !9
  %294 = mul nsw i64 %292, %293
  %295 = add nsw i64 %291, %294
  %296 = getelementptr inbounds %struct.complex, ptr %289, i64 %295
  %297 = call i32 @f2c_cscal(ptr noundef %16, ptr noundef %20, ptr noundef %296, ptr noundef @c__1)
  br label %298

298:                                              ; preds = %260, %255
  br label %299

299:                                              ; preds = %298
  %300 = load i64, ptr %19, align 8, !tbaa !9
  %301 = add nsw i64 %300, -1
  store i64 %301, ptr %19, align 8, !tbaa !9
  br label %190, !llvm.loop !17

302:                                              ; preds = %190
  br label %303

303:                                              ; preds = %302, %186
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %304

304:                                              ; preds = %303, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %305 = load i32, ptr %7, align 4
  ret i32 %305
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

declare void @c_div(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ctrti2_(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef %5) local_unnamed_addr #0 {
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct.complex, align 8
  %10 = alloca %struct.complex, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = xor i64 %11, -1
  %13 = getelementptr inbounds %struct.complex, ptr %3, i64 %12
  store i64 0, ptr %5, align 8, !tbaa !5
  %14 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %15 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %16, label %18

16:                                               ; preds = %6
  %17 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not93 = icmp eq i64 %17, 0
  br i1 %.not93, label %.thread.sink.split, label %18

18:                                               ; preds = %16, %6
  %.not94 = icmp eq i64 %15, 0
  br i1 %.not94, label %19, label %21

19:                                               ; preds = %18
  %20 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %.not95 = icmp eq i64 %20, 0
  br i1 %.not95, label %.thread.sink.split, label %21

21:                                               ; preds = %19, %18
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread.sink.split, label %24

24:                                               ; preds = %21
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %22, i64 1)
  %26 = icmp slt i64 %25, %spec.select
  br i1 %26, label %.thread.sink.split, label %27

27:                                               ; preds = %24
  %.pr = load i64, ptr %5, align 8, !tbaa !5
  %.not96 = icmp eq i64 %.pr, 0
  br i1 %.not96, label %31, label %.thread

.thread.sink.split:                               ; preds = %24, %21, %19, %16
  %.sink = phi i64 [ -1, %16 ], [ -2, %19 ], [ -3, %21 ], [ -5, %24 ]
  store i64 %.sink, ptr %5, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %27
  %28 = phi i64 [ %.pr, %27 ], [ %.sink, %.thread.sink.split ]
  %29 = sub nsw i64 0, %28
  store i64 %29, ptr %7, align 8, !tbaa !5
  %30 = call i32 @xerbla_(ptr noundef nonnull @.str.3, ptr noundef nonnull %7) #4
  br label %.loopexit

31:                                               ; preds = %27
  br i1 %.not, label %53, label %32

32:                                               ; preds = %31
  store i64 %22, ptr %7, align 8, !tbaa !5
  %invariant.gep = getelementptr i8, ptr %13, i64 8
  %.not98102 = icmp eq i64 %22, 0
  br i1 %.not98102, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %32
  %33 = add i64 %11, 1
  br i1 %.not94, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.090103.us = phi i64 [ %38, %.lr.ph.split.us ], [ 1, %.lr.ph ]
  store <2 x float> <float -1.000000e+00, float -0.000000e+00>, ptr %9, align 8, !tbaa !9
  store <2 x float> <float -1.000000e+00, float -0.000000e+00>, ptr %10, align 8, !tbaa !9
  %34 = add nsw i64 %.090103.us, -1
  store i64 %34, ptr %8, align 8, !tbaa !5
  %35 = mul nsw i64 %.090103.us, %11
  %gep.us = getelementptr %struct.complex, ptr %invariant.gep, i64 %35
  %36 = call i32 @f2c_ctrmv(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %8, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %gep.us, ptr noundef nonnull @c__1) #4
  store i64 %34, ptr %8, align 8, !tbaa !5
  %37 = call i32 @f2c_cscal(ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef %gep.us, ptr noundef nonnull @c__1) #4
  %38 = add nuw nsw i64 %.090103.us, 1
  %39 = load i64, ptr %7, align 8, !tbaa !5
  %.not98.us.not = icmp slt i64 %.090103.us, %39
  br i1 %.not98.us.not, label %.lr.ph.split.us, label %.loopexit, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %.090103 = phi i64 [ %51, %.lr.ph.split ], [ 1, %.lr.ph ]
  %40 = mul i64 %.090103, %33
  store i64 %40, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.complex, ptr %13, i64 %40
  call void @c_div(ptr noundef nonnull %9, ptr noundef nonnull @c_b1, ptr noundef %41) #4
  %42 = load i64, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.complex, ptr %13, i64 %42
  %44 = load <2 x float>, ptr %9, align 8, !tbaa !9
  store <2 x float> %44, ptr %43, align 4, !tbaa !9
  %45 = load <2 x float>, ptr %41, align 4, !tbaa !9
  %46 = fneg <2 x float> %45
  store <2 x float> %46, ptr %9, align 8, !tbaa !9
  store <2 x float> %46, ptr %10, align 8, !tbaa !9
  %47 = add nsw i64 %.090103, -1
  store i64 %47, ptr %8, align 8, !tbaa !5
  %48 = mul nsw i64 %.090103, %11
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %48
  %49 = call i32 @f2c_ctrmv(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %8, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  store i64 %47, ptr %8, align 8, !tbaa !5
  %50 = call i32 @f2c_cscal(ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  %51 = add nuw nsw i64 %.090103, 1
  %52 = load i64, ptr %7, align 8, !tbaa !5
  %.not98.not = icmp slt i64 %.090103, %52
  br i1 %.not98.not, label %.lr.ph.split, label %.loopexit, !llvm.loop !11

53:                                               ; preds = %31
  %.not109 = icmp eq i64 %22, 0
  br i1 %.not109, label %.loopexit, label %.lr.ph105

.lr.ph105:                                        ; preds = %53
  %54 = add i64 %11, 1
  br i1 %.not94, label %.lr.ph105.split.us, label %.lr.ph105.split

.lr.ph105.split.us:                               ; preds = %.lr.ph105, %69
  %.1104.us = phi i64 [ %70, %69 ], [ %22, %.lr.ph105 ]
  store <2 x float> <float -1.000000e+00, float -0.000000e+00>, ptr %9, align 8, !tbaa !9
  store <2 x float> <float -1.000000e+00, float -0.000000e+00>, ptr %10, align 8, !tbaa !9
  %55 = load i64, ptr %2, align 8, !tbaa !5
  %56 = icmp slt i64 %.1104.us, %55
  br i1 %56, label %57, label %69

57:                                               ; preds = %.lr.ph105.split.us
  %58 = sub nsw i64 %55, %.1104.us
  store i64 %58, ptr %7, align 8, !tbaa !5
  %59 = add nuw nsw i64 %.1104.us, 1
  %60 = mul i64 %59, %54
  %61 = getelementptr inbounds %struct.complex, ptr %13, i64 %60
  %62 = mul nsw i64 %.1104.us, %11
  %63 = getelementptr %struct.complex, ptr %13, i64 %59
  %64 = getelementptr %struct.complex, ptr %63, i64 %62
  %65 = call i32 @f2c_ctrmv(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %7, ptr noundef %61, ptr noundef nonnull %4, ptr noundef %64, ptr noundef nonnull @c__1) #4
  %66 = load i64, ptr %2, align 8, !tbaa !5
  %67 = sub nsw i64 %66, %.1104.us
  store i64 %67, ptr %7, align 8, !tbaa !5
  %68 = call i32 @f2c_cscal(ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef %64, ptr noundef nonnull @c__1) #4
  br label %69

69:                                               ; preds = %57, %.lr.ph105.split.us
  %70 = add nsw i64 %.1104.us, -1
  %71 = icmp sgt i64 %.1104.us, 1
  br i1 %71, label %.lr.ph105.split.us, label %.loopexit, !llvm.loop !13

.lr.ph105.split:                                  ; preds = %.lr.ph105, %93
  %.1104 = phi i64 [ %94, %93 ], [ %22, %.lr.ph105 ]
  %72 = mul i64 %.1104, %54
  store i64 %72, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.complex, ptr %13, i64 %72
  call void @c_div(ptr noundef nonnull %9, ptr noundef nonnull @c_b1, ptr noundef %73) #4
  %74 = load i64, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.complex, ptr %13, i64 %74
  %76 = load <2 x float>, ptr %9, align 8, !tbaa !9
  store <2 x float> %76, ptr %75, align 4, !tbaa !9
  store i64 %72, ptr %7, align 8, !tbaa !5
  %77 = load <2 x float>, ptr %73, align 4, !tbaa !9
  %78 = fneg <2 x float> %77
  store <2 x float> %78, ptr %9, align 8, !tbaa !9
  store <2 x float> %78, ptr %10, align 8, !tbaa !9
  %79 = load i64, ptr %2, align 8, !tbaa !5
  %80 = icmp slt i64 %.1104, %79
  br i1 %80, label %81, label %93

81:                                               ; preds = %.lr.ph105.split
  %82 = sub nsw i64 %79, %.1104
  store i64 %82, ptr %7, align 8, !tbaa !5
  %83 = add nuw nsw i64 %.1104, 1
  %84 = mul i64 %83, %54
  %85 = getelementptr inbounds %struct.complex, ptr %13, i64 %84
  %86 = mul nsw i64 %.1104, %11
  %87 = getelementptr %struct.complex, ptr %13, i64 %83
  %88 = getelementptr %struct.complex, ptr %87, i64 %86
  %89 = call i32 @f2c_ctrmv(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %7, ptr noundef %85, ptr noundef nonnull %4, ptr noundef %88, ptr noundef nonnull @c__1) #4
  %90 = load i64, ptr %2, align 8, !tbaa !5
  %91 = sub nsw i64 %90, %.1104
  store i64 %91, ptr %7, align 8, !tbaa !5
  %92 = call i32 @f2c_cscal(ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef %88, ptr noundef nonnull @c__1) #4
  br label %93

93:                                               ; preds = %.lr.ph105.split, %81
  %94 = add nsw i64 %.1104, -1
  %95 = icmp sgt i64 %.1104, 1
  br i1 %95, label %.lr.ph105.split, label %.loopexit, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph.split, %.lr.ph.split.us, %93, %69, %32, %53, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret i32 0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @c_div(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass