; LLVM IR from introlab/odas :: src/system (steer2demixing)

; 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.steer2demixing_ds_obj = type { i32, i32, i32, float, ptr }
%struct.tracks_obj = type { i32, ptr, ptr, ptr, ptr }
%struct.masks_obj = type { i32, i32, ptr }
%struct.steers_obj = type { i32, i32, i32, ptr }
%struct.demixings_obj = type { i32, i32, i32, ptr }

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 uwtable
define dso_local void @steer2demixing_ds_process(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, 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
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %300, %5
  %23 = load i32, ptr %11, align 4, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = icmp ult i32 %23, %26
  br i1 %27, label %28, label %303

28:                                               ; preds = %22
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.tracks_obj, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds i64, ptr %31, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !16
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %299

37:                                               ; preds = %28
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = zext i32 %43 to i64
  %45 = mul i64 4, %44
  call void @llvm.memset.p0.i64(ptr align 4 %40, i8 0, i64 %45, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %62, %37
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !19
  %51 = icmp ult i32 %47, %50
  br i1 %51, label %52, label %65

52:                                               ; preds = %46
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %53, i32 0, i32 3
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %58, i64 %60
  store float %55, ptr %61, align 4, !tbaa !21
  br label %62

62:                                               ; preds = %52
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = add i32 %63, 1
  store i32 %64, ptr %13, align 4, !tbaa !9
  br label %46, !llvm.loop !22

65:                                               ; preds = %46
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %151, %65
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !24
  %71 = icmp ult i32 %67, %70
  br i1 %71, label %72, label %154

72:                                               ; preds = %66
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !24
  %77 = mul i32 %73, %76
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = add i32 %77, %78
  store i32 %79, ptr %14, align 4, !tbaa !9
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.masks_obj, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %82, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !27
  store i8 %86, ptr %16, align 1, !tbaa !27
  %87 = load i8, ptr %16, align 1, !tbaa !27
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %150

90:                                               ; preds = %72
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %146, %90
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !19
  %96 = icmp ult i32 %92, %95
  br i1 %96, label %97, label %149

97:                                               ; preds = %91
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !24
  %102 = mul i32 %98, %101
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = add i32 %102, %103
  store i32 %104, ptr %15, align 4, !tbaa !9
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.steers_obj, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = mul i32 %112, 2
  %114 = add i32 %113, 0
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %111, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !21
  store float %117, ptr %17, align 4, !tbaa !21
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.steers_obj, ptr %118, i32 0, i32 3
  %120 = load ptr, ptr %119, align 8, !tbaa !28
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = mul i32 %125, 2
  %127 = add i32 %126, 1
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %124, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !21
  store float %130, ptr %18, align 4, !tbaa !21
  %131 = load float, ptr %17, align 4, !tbaa !21
  %132 = load float, ptr %17, align 4, !tbaa !21
  %133 = load float, ptr %18, align 4, !tbaa !21
  %134 = load float, ptr %18, align 4, !tbaa !21
  %135 = fmul float %133, %134
  %136 = call float @llvm.fmuladd.f32(float %131, float %132, float %135)
  store float %136, ptr %19, align 4, !tbaa !21
  %137 = load float, ptr %19, align 4, !tbaa !21
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %138, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds float, ptr %140, i64 %142
  %144 = load float, ptr %143, align 4, !tbaa !21
  %145 = fadd float %144, %137
  store float %145, ptr %143, align 4, !tbaa !21
  br label %146

146:                                              ; preds = %97
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = add i32 %147, 1
  store i32 %148, ptr %13, align 4, !tbaa !9
  br label %91, !llvm.loop !30

149:                                              ; preds = %91
  br label %150

150:                                              ; preds = %149, %72
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %12, align 4, !tbaa !9
  br label %66, !llvm.loop !31

154:                                              ; preds = %66
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %295, %154
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !24
  %160 = icmp ult i32 %156, %159
  br i1 %160, label %161, label %298

161:                                              ; preds = %155
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %163, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !24
  %166 = mul i32 %162, %165
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = add i32 %166, %167
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.masks_obj, ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !25
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds i8, ptr %171, i64 %173
  %175 = load i8, ptr %174, align 1, !tbaa !27
  store i8 %175, ptr %16, align 1, !tbaa !27
  %176 = load i8, ptr %16, align 1, !tbaa !27
  %177 = sext i8 %176 to i32
  %178 = icmp eq i32 %177, 1
  br i1 %178, label %179, label %269

179:                                              ; preds = %161
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %265, %179
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !19
  %185 = icmp ult i32 %181, %184
  br i1 %185, label %186, label %268

186:                                              ; preds = %180
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !24
  %191 = mul i32 %187, %190
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = add i32 %191, %192
  store i32 %193, ptr %15, align 4, !tbaa !9
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.steers_obj, ptr %194, i32 0, i32 3
  %196 = load ptr, ptr %195, align 8, !tbaa !28
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds ptr, ptr %196, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = mul i32 %201, 2
  %203 = add i32 %202, 0
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %200, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !21
  store float %206, ptr %17, align 4, !tbaa !21
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.steers_obj, ptr %207, i32 0, i32 3
  %209 = load ptr, ptr %208, align 8, !tbaa !28
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = mul i32 %214, 2
  %216 = add i32 %215, 1
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds float, ptr %213, i64 %217
  %219 = load float, ptr %218, align 4, !tbaa !21
  store float %219, ptr %18, align 4, !tbaa !21
  %220 = load float, ptr %17, align 4, !tbaa !21
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %221, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !18
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds float, ptr %223, i64 %225
  %227 = load float, ptr %226, align 4, !tbaa !21
  %228 = fdiv float %220, %227
  store float %228, ptr %20, align 4, !tbaa !21
  %229 = load float, ptr %18, align 4, !tbaa !21
  %230 = fmul float -1.000000e+00, %229
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.steer2demixing_ds_obj, ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !18
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds float, ptr %233, i64 %235
  %237 = load float, ptr %236, align 4, !tbaa !21
  %238 = fdiv float %230, %237
  store float %238, ptr %21, align 4, !tbaa !21
  %239 = load float, ptr %20, align 4, !tbaa !21
  %240 = load ptr, ptr %10, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.demixings_obj, ptr %240, i32 0, i32 3
  %242 = load ptr, ptr %241, align 8, !tbaa !32
  %243 = load i32, ptr %11, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds ptr, ptr %242, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = mul i32 %247, 2
  %249 = add i32 %248, 0
  %250 = zext i32 %249 to i64
  %251 = getelementptr inbounds float, ptr %246, i64 %250
  store float %239, ptr %251, align 4, !tbaa !21
  %252 = load float, ptr %21, align 4, !tbaa !21
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.demixings_obj, ptr %253, i32 0, i32 3
  %255 = load ptr, ptr %254, align 8, !tbaa !32
  %256 = load i32, ptr %11, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds ptr, ptr %255, i64 %257
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = mul i32 %260, 2
  %262 = add i32 %261, 1
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds float, ptr %259, i64 %263
  store float %252, ptr %264, align 4, !tbaa !21
  br label %265

265:                                              ; preds = %186
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = add i32 %266, 1
  store i32 %267, ptr %13, align 4, !tbaa !9
  br label %180, !llvm.loop !34

268:                                              ; preds = %180
  br label %294

269:                                              ; preds = %161
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.demixings_obj, ptr %270, i32 0, i32 3
  %272 = load ptr, ptr %271, align 8, !tbaa !32
  %273 = load i32, ptr %11, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = getelementptr inbounds ptr, ptr %272, i64 %274
  %276 = load ptr, ptr %275, align 8, !tbaa !5
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = mul i32 %277, 2
  %279 = add i32 %278, 0
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds float, ptr %276, i64 %280
  store float 0.000000e+00, ptr %281, align 4, !tbaa !21
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.demixings_obj, ptr %282, i32 0, i32 3
  %284 = load ptr, ptr %283, align 8, !tbaa !32
  %285 = load i32, ptr %11, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = getelementptr inbounds ptr, ptr %284, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = mul i32 %289, 2
  %291 = add i32 %290, 1
  %292 = zext i32 %291 to i64
  %293 = getelementptr inbounds float, ptr %288, i64 %292
  store float 0.000000e+00, ptr %293, align 4, !tbaa !21
  br label %294

294:                                              ; preds = %269, %268
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = add i32 %296, 1
  store i32 %297, ptr %12, align 4, !tbaa !9
  br label %155, !llvm.loop !35

298:                                              ; preds = %155
  br label %299

299:                                              ; preds = %298, %28
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = add i32 %301, 1
  store i32 %302, ptr %11, align 4, !tbaa !9
  br label %22, !llvm.loop !36

303:                                              ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!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 = !{!"steer2demixing_ds_obj", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !6, i64 16}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"tracks_obj", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !13, i64 12}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !10, i64 4}
!25 = !{!26, !6, i64 8}
!26 = !{!"masks_obj", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!7, !7, i64 0}
!28 = !{!29, !6, i64 16}
!29 = !{!"steers_obj", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = !{!33, !6, i64 16}
!33 = !{!"demixings_obj", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!34 = distinct !{!34, !23}
!35 = distinct !{!35, !23}
!36 = distinct !{!36, !23}


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

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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @steer2demixing_ds_process(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4) local_unnamed_addr #1 {
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %.not118 = icmp eq i32 %6, 0
  br i1 %.not118, label %._crit_edge, label %.lr.ph117

.lr.ph117:                                        ; preds = %5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  %14 = getelementptr inbounds i8, ptr %4, i64 16
  br label %15

15:                                               ; preds = %.lr.ph117, %.loopexit92
  %indvars.iv148 = phi i64 [ 0, %.lr.ph117 ], [ %indvars.iv.next149, %.loopexit92 ]
  %.084114 = phi i32 [ undef, %.lr.ph117 ], [ %.7, %.loopexit92 ]
  %16 = load ptr, ptr %7, align 8, !tbaa !12
  %17 = getelementptr inbounds i64, ptr %16, i64 %indvars.iv148
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %.loopexit92, label %19

19:                                               ; preds = %15
  %20 = load ptr, ptr %8, align 8, !tbaa !16
  %21 = load i32, ptr %9, align 8, !tbaa !17
  %22 = zext i32 %21 to i64
  %23 = shl nuw nsw i64 %22, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %20, i8 0, i64 %23, i1 false)
  %24 = load i32, ptr %9, align 8, !tbaa !17
  %.fr121 = freeze i32 %24
  %.not119 = icmp eq i32 %.fr121, 0
  br i1 %.not119, label %.preheader93.thread, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %25 = load ptr, ptr %8, align 8, !tbaa !16
  %wide.trip.count = zext i32 %.fr121 to i64
  %.pre = load float, ptr %10, align 4, !tbaa !18
  %min.iters.check = icmp ult i32 %.fr121, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 4294967288
  %broadcast.splatinsert = insertelement <4 x float> poison, float %.pre, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %26 = getelementptr inbounds float, ptr %25, i64 %index
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <4 x float> %broadcast.splat, ptr %26, align 4, !tbaa !19
  store <4 x float> %broadcast.splat, ptr %27, align 4, !tbaa !19
  %index.next = add nuw i64 %index, 8
  %28 = icmp eq i64 %index.next, %n.vec
  br i1 %28, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader93, label %scalar.ph.preheader

.preheader93:                                     ; preds = %scalar.ph, %middle.block
  %29 = load i32, ptr %11, align 4, !tbaa !24
  %.not120 = icmp eq i32 %29, 0
  br i1 %.not120, label %.loopexit92, label %.lr.ph102

.preheader93.thread:                              ; preds = %19
  %30 = load i32, ptr %11, align 4, !tbaa !24
  %.not120151 = icmp eq i32 %30, 0
  br i1 %.not120151, label %.loopexit92, label %.lr.ph112

.lr.ph102:                                        ; preds = %.preheader93
  %31 = trunc nuw i64 %indvars.iv148 to i32
  %32 = mul i32 %29, %31
  %33 = load ptr, ptr %12, align 8, !tbaa !25
  br i1 %.not119, label %.lr.ph112, label %.lr.ph102.split.us.preheader

.lr.ph102.split.us.preheader:                     ; preds = %.lr.ph102
  %wide.trip.count136 = zext i32 %29 to i64
  %wide.trip.count131 = zext i32 %.fr121 to i64
  br label %.lr.ph102.split.us

.lr.ph102.split.us:                               ; preds = %.lr.ph102.split.us.preheader, %..loopexit90_crit_edge.us
  %indvars.iv133 = phi i64 [ 0, %.lr.ph102.split.us.preheader ], [ %indvars.iv.next134, %..loopexit90_crit_edge.us ]
  %.18599.us = phi i32 [ %.084114, %.lr.ph102.split.us.preheader ], [ %.3.us, %..loopexit90_crit_edge.us ]
  %34 = trunc nuw i64 %indvars.iv133 to i32
  %35 = add i32 %32, %34
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %33, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !27
  %39 = icmp eq i8 %38, 1
  br i1 %39, label %.preheader89.us, label %..loopexit90_crit_edge.us

..loopexit90_crit_edge.us:                        ; preds = %40, %.lr.ph102.split.us
  %.3.us = phi i32 [ %.18599.us, %.lr.ph102.split.us ], [ %43, %40 ]
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next134, %wide.trip.count136
  br i1 %exitcond137.not, label %.lr.ph112, label %.lr.ph102.split.us, !llvm.loop !28

40:                                               ; preds = %.preheader89.us, %40
  %indvars.iv128 = phi i64 [ 0, %.preheader89.us ], [ %indvars.iv.next129, %40 ]
  %41 = trunc nuw i64 %indvars.iv128 to i32
  %42 = mul i32 %29, %41
  %43 = add i32 %42, %34
  %44 = shl i32 %43, 1
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %59, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !19
  %48 = or disjoint i32 %44, 1
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %59, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !19
  %52 = fmul float %51, %51
  %53 = tail call float @llvm.fmuladd.f32(float %47, float %47, float %52)
  %54 = getelementptr inbounds float, ptr %60, i64 %indvars.iv128
  %55 = load float, ptr %54, align 4, !tbaa !19
  %56 = fadd float %55, %53
  store float %56, ptr %54, align 4, !tbaa !19
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next129, %wide.trip.count131
  br i1 %exitcond132.not, label %..loopexit90_crit_edge.us, label %40, !llvm.loop !29

.preheader89.us:                                  ; preds = %.lr.ph102.split.us
  %57 = load ptr, ptr %13, align 8, !tbaa !30
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv148
  %59 = load ptr, ptr %58, align 8, !tbaa !32
  %60 = load ptr, ptr %8, align 8, !tbaa !16
  br label %40

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %61 = getelementptr inbounds float, ptr %25, i64 %indvars.iv
  store float %.pre, ptr %61, align 4, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader93, label %scalar.ph, !llvm.loop !33

.lr.ph112:                                        ; preds = %..loopexit90_crit_edge.us, %.preheader93.thread, %.lr.ph102
  %.185.lcssa162 = phi i32 [ %.084114, %.lr.ph102 ], [ %.084114, %.preheader93.thread ], [ %.3.us, %..loopexit90_crit_edge.us ]
  %62 = phi i32 [ %29, %.lr.ph102 ], [ %30, %.preheader93.thread ], [ %29, %..loopexit90_crit_edge.us ]
  %63 = trunc nuw i64 %indvars.iv148 to i32
  %64 = mul i32 %62, %63
  %65 = load ptr, ptr %12, align 8, !tbaa !25
  %wide.trip.count146 = zext i32 %62 to i64
  %wide.trip.count141 = zext i32 %.fr121 to i64
  br label %66

66:                                               ; preds = %.lr.ph112, %.loopexit
  %indvars.iv143 = phi i64 [ 0, %.lr.ph112 ], [ %indvars.iv.next144, %.loopexit ]
  %.4109 = phi i32 [ %.185.lcssa162, %.lr.ph112 ], [ %.6, %.loopexit ]
  %67 = trunc nuw i64 %indvars.iv143 to i32
  %68 = add i32 %64, %67
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds i8, ptr %65, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !27
  %72 = icmp eq i8 %71, 1
  br i1 %72, label %.preheader, label %99

.preheader:                                       ; preds = %66
  br i1 %.not119, label %.loopexit, label %.lr.ph107

.lr.ph107:                                        ; preds = %.preheader
  %73 = load ptr, ptr %13, align 8, !tbaa !30
  %74 = getelementptr inbounds ptr, ptr %73, i64 %indvars.iv148
  %75 = load ptr, ptr %74, align 8, !tbaa !32
  %76 = load ptr, ptr %8, align 8, !tbaa !16
  %77 = load ptr, ptr %14, align 8, !tbaa !34
  %78 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv148
  %79 = load ptr, ptr %78, align 8, !tbaa !32
  br label %80

80:                                               ; preds = %.lr.ph107, %80
  %indvars.iv138 = phi i64 [ 0, %.lr.ph107 ], [ %indvars.iv.next139, %80 ]
  %81 = trunc nuw i64 %indvars.iv138 to i32
  %82 = mul i32 %62, %81
  %83 = add i32 %82, %67
  %84 = shl i32 %83, 1
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %75, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !19
  %88 = or disjoint i32 %84, 1
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %75, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !19
  %92 = getelementptr inbounds float, ptr %76, i64 %indvars.iv138
  %93 = load float, ptr %92, align 4, !tbaa !19
  %94 = fdiv float %87, %93
  %95 = fneg float %91
  %96 = fdiv float %95, %93
  %97 = getelementptr inbounds float, ptr %79, i64 %85
  store float %94, ptr %97, align 4, !tbaa !19
  %98 = getelementptr inbounds float, ptr %79, i64 %89
  store float %96, ptr %98, align 4, !tbaa !19
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %.loopexit, label %80, !llvm.loop !36

99:                                               ; preds = %66
  %100 = load ptr, ptr %14, align 8, !tbaa !34
  %101 = getelementptr inbounds ptr, ptr %100, i64 %indvars.iv148
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = shl i32 %.4109, 1
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %102, i64 %104
  store <2 x float> zeroinitializer, ptr %105, align 4, !tbaa !19
  br label %.loopexit

.loopexit:                                        ; preds = %80, %.preheader, %99
  %.6 = phi i32 [ %.4109, %99 ], [ %.4109, %.preheader ], [ %83, %80 ]
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %.loopexit92, label %66, !llvm.loop !37

.loopexit92:                                      ; preds = %.loopexit, %.preheader93.thread, %.preheader93, %15
  %.7 = phi i32 [ %.084114, %15 ], [ %.084114, %.preheader93 ], [ %.084114, %.preheader93.thread ], [ %.6, %.loopexit ]
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %106 = load i32, ptr %0, align 8, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = icmp ult i64 %indvars.iv.next149, %107
  br i1 %108, label %15, label %._crit_edge, !llvm.loop !38

._crit_edge:                                      ; preds = %.loopexit92, %5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"steer2demixing_ds_obj", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"tracks_obj", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !8, i64 0}
!16 = !{!6, !11, i64 16}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !10, i64 12}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !21, !22, !23}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = !{!6, !7, i64 4}
!25 = !{!26, !11, i64 8}
!26 = !{!"masks_obj", !7, i64 0, !7, i64 4, !11, i64 8}
!27 = !{!8, !8, i64 0}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = !{!31, !11, i64 16}
!31 = !{!"steers_obj", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16}
!32 = !{!11, !11, i64 0}
!33 = distinct !{!33, !21, !23, !22}
!34 = !{!35, !11, i64 16}
!35 = !{!"demixings_obj", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16}
!36 = distinct !{!36, !21}
!37 = distinct !{!37, !21}
!38 = distinct !{!38, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass