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

; 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.kalman2coherence_obj = type { float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.matrix_obj = type { ptr, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @kalman2coherence_construct(float noundef %0, float noundef %1) #0 {
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  store float %0, ptr %3, align 4, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %6 = call noalias ptr @malloc(i64 noundef 200) #5
  store ptr %6, ptr %5, align 8, !tbaa !9
  %7 = load float, ptr %3, align 4, !tbaa !5
  %8 = load ptr, ptr %5, align 8, !tbaa !9
  %9 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %8, i32 0, i32 0
  store float %7, ptr %9, align 8, !tbaa !11
  %10 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 6)
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %11, i32 0, i32 1
  store ptr %10, ptr %12, align 8, !tbaa !13
  %13 = load ptr, ptr %5, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds %struct.matrix_obj, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds %struct.matrix_obj, ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 4, !tbaa !17
  %23 = mul i32 0, %22
  %24 = add i32 %23, 0
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds float, ptr %17, i64 %25
  store float 1.000000e+00, ptr %26, align 4, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = getelementptr inbounds %struct.matrix_obj, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct.matrix_obj, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %37 = mul i32 1, %36
  %38 = add i32 %37, 1
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %31, i64 %39
  store float 1.000000e+00, ptr %40, align 4, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = getelementptr inbounds %struct.matrix_obj, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct.matrix_obj, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !17
  %51 = mul i32 2, %50
  %52 = add i32 %51, 2
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %45, i64 %53
  store float 1.000000e+00, ptr %54, align 4, !tbaa !5
  %55 = call ptr @matrix_construct_zero(i32 noundef 6, i32 noundef 3)
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %56, i32 0, i32 2
  store ptr %55, ptr %57, align 8, !tbaa !18
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = getelementptr inbounds %struct.matrix_obj, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = getelementptr inbounds %struct.matrix_obj, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !17
  %68 = mul i32 0, %67
  %69 = add i32 %68, 0
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %62, i64 %70
  store float 1.000000e+00, ptr %71, align 4, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = getelementptr inbounds %struct.matrix_obj, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = getelementptr inbounds %struct.matrix_obj, ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = mul i32 1, %81
  %83 = add i32 %82, 1
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %76, i64 %84
  store float 1.000000e+00, ptr %85, align 4, !tbaa !5
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = getelementptr inbounds %struct.matrix_obj, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !14
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = getelementptr inbounds %struct.matrix_obj, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 4, !tbaa !17
  %96 = mul i32 2, %95
  %97 = add i32 %96, 2
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %90, i64 %98
  store float 1.000000e+00, ptr %99, align 4, !tbaa !5
  %100 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %101, i32 0, i32 3
  store ptr %100, ptr %102, align 8, !tbaa !19
  %103 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3)
  %104 = load ptr, ptr %5, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %104, i32 0, i32 4
  store ptr %103, ptr %105, align 8, !tbaa !20
  %106 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %107, i32 0, i32 5
  store ptr %106, ptr %108, align 8, !tbaa !21
  %109 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3)
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %110, i32 0, i32 6
  store ptr %109, ptr %111, align 8, !tbaa !22
  %112 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %113 = load ptr, ptr %5, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %113, i32 0, i32 7
  store ptr %112, ptr %114, align 8, !tbaa !23
  %115 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3)
  %116 = load ptr, ptr %5, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %116, i32 0, i32 8
  store ptr %115, ptr %117, align 8, !tbaa !24
  %118 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 6)
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %119, i32 0, i32 9
  store ptr %118, ptr %120, align 8, !tbaa !25
  %121 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %122 = load ptr, ptr %5, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %122, i32 0, i32 10
  store ptr %121, ptr %123, align 8, !tbaa !26
  %124 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %125 = load ptr, ptr %5, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %125, i32 0, i32 11
  store ptr %124, ptr %126, align 8, !tbaa !27
  %127 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %128, i32 0, i32 12
  store ptr %127, ptr %129, align 8, !tbaa !28
  %130 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %131, i32 0, i32 13
  store ptr %130, ptr %132, align 8, !tbaa !29
  %133 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %134 = load ptr, ptr %5, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %134, i32 0, i32 14
  store ptr %133, ptr %135, align 8, !tbaa !30
  %136 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %137 = load ptr, ptr %5, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %137, i32 0, i32 15
  store ptr %136, ptr %138, align 8, !tbaa !31
  %139 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %140 = load ptr, ptr %5, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %140, i32 0, i32 16
  store ptr %139, ptr %141, align 8, !tbaa !32
  %142 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3)
  %143 = load ptr, ptr %5, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %143, i32 0, i32 17
  store ptr %142, ptr %144, align 8, !tbaa !33
  %145 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %146 = load ptr, ptr %5, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %146, i32 0, i32 18
  store ptr %145, ptr %147, align 8, !tbaa !34
  %148 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %149, i32 0, i32 19
  store ptr %148, ptr %150, align 8, !tbaa !35
  %151 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %152 = load ptr, ptr %5, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %152, i32 0, i32 20
  store ptr %151, ptr %153, align 8, !tbaa !36
  %154 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1)
  %155 = load ptr, ptr %5, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %155, i32 0, i32 21
  store ptr %154, ptr %156, align 8, !tbaa !37
  %157 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1)
  %158 = load ptr, ptr %5, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %158, i32 0, i32 22
  store ptr %157, ptr %159, align 8, !tbaa !38
  %160 = call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1)
  %161 = load ptr, ptr %5, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %161, i32 0, i32 23
  store ptr %160, ptr %162, align 8, !tbaa !39
  %163 = call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1)
  %164 = load ptr, ptr %5, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %164, i32 0, i32 24
  store ptr %163, ptr %165, align 8, !tbaa !40
  %166 = load float, ptr %4, align 4, !tbaa !5
  %167 = load float, ptr %4, align 4, !tbaa !5
  %168 = fmul float %166, %167
  %169 = load ptr, ptr %5, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %169, i32 0, i32 12
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = getelementptr inbounds %struct.matrix_obj, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !14
  %174 = load ptr, ptr %5, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %174, i32 0, i32 12
  %176 = load ptr, ptr %175, align 8, !tbaa !28
  %177 = getelementptr inbounds %struct.matrix_obj, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !17
  %179 = mul i32 0, %178
  %180 = add i32 %179, 0
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds float, ptr %173, i64 %181
  store float %168, ptr %182, align 4, !tbaa !5
  %183 = load float, ptr %4, align 4, !tbaa !5
  %184 = load float, ptr %4, align 4, !tbaa !5
  %185 = fmul float %183, %184
  %186 = load ptr, ptr %5, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %186, i32 0, i32 12
  %188 = load ptr, ptr %187, align 8, !tbaa !28
  %189 = getelementptr inbounds %struct.matrix_obj, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !14
  %191 = load ptr, ptr %5, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %191, i32 0, i32 12
  %193 = load ptr, ptr %192, align 8, !tbaa !28
  %194 = getelementptr inbounds %struct.matrix_obj, ptr %193, i32 0, i32 2
  %195 = load i32, ptr %194, align 4, !tbaa !17
  %196 = mul i32 1, %195
  %197 = add i32 %196, 1
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds float, ptr %190, i64 %198
  store float %185, ptr %199, align 4, !tbaa !5
  %200 = load float, ptr %4, align 4, !tbaa !5
  %201 = load float, ptr %4, align 4, !tbaa !5
  %202 = fmul float %200, %201
  %203 = load ptr, ptr %5, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %203, i32 0, i32 12
  %205 = load ptr, ptr %204, align 8, !tbaa !28
  %206 = getelementptr inbounds %struct.matrix_obj, ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !14
  %208 = load ptr, ptr %5, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %208, i32 0, i32 12
  %210 = load ptr, ptr %209, align 8, !tbaa !28
  %211 = getelementptr inbounds %struct.matrix_obj, ptr %210, i32 0, i32 2
  %212 = load i32, ptr %211, align 4, !tbaa !17
  %213 = mul i32 2, %212
  %214 = add i32 %213, 2
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds float, ptr %207, i64 %215
  store float %202, ptr %216, align 4, !tbaa !5
  %217 = load float, ptr %3, align 4, !tbaa !5
  %218 = load ptr, ptr %5, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %218, i32 0, i32 10
  %220 = load ptr, ptr %219, align 8, !tbaa !26
  %221 = getelementptr inbounds %struct.matrix_obj, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !14
  %223 = load ptr, ptr %5, align 8, !tbaa !9
  %224 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %223, i32 0, i32 10
  %225 = load ptr, ptr %224, align 8, !tbaa !26
  %226 = getelementptr inbounds %struct.matrix_obj, ptr %225, i32 0, i32 2
  %227 = load i32, ptr %226, align 4, !tbaa !17
  %228 = mul i32 0, %227
  %229 = add i32 %228, 0
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %222, i64 %230
  store float %217, ptr %231, align 4, !tbaa !5
  %232 = load float, ptr %3, align 4, !tbaa !5
  %233 = load ptr, ptr %5, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %233, i32 0, i32 10
  %235 = load ptr, ptr %234, align 8, !tbaa !26
  %236 = getelementptr inbounds %struct.matrix_obj, ptr %235, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !14
  %238 = load ptr, ptr %5, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %238, i32 0, i32 10
  %240 = load ptr, ptr %239, align 8, !tbaa !26
  %241 = getelementptr inbounds %struct.matrix_obj, ptr %240, i32 0, i32 2
  %242 = load i32, ptr %241, align 4, !tbaa !17
  %243 = mul i32 1, %242
  %244 = add i32 %243, 1
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds float, ptr %237, i64 %245
  store float %232, ptr %246, align 4, !tbaa !5
  %247 = load float, ptr %3, align 4, !tbaa !5
  %248 = load ptr, ptr %5, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %248, i32 0, i32 10
  %250 = load ptr, ptr %249, align 8, !tbaa !26
  %251 = getelementptr inbounds %struct.matrix_obj, ptr %250, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !14
  %253 = load ptr, ptr %5, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %253, i32 0, i32 10
  %255 = load ptr, ptr %254, align 8, !tbaa !26
  %256 = getelementptr inbounds %struct.matrix_obj, ptr %255, i32 0, i32 2
  %257 = load i32, ptr %256, align 4, !tbaa !17
  %258 = mul i32 2, %257
  %259 = add i32 %258, 2
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds float, ptr %252, i64 %260
  store float %247, ptr %261, align 4, !tbaa !5
  %262 = load ptr, ptr %5, align 8, !tbaa !9
  %263 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %262, i32 0, i32 16
  %264 = load ptr, ptr %263, align 8, !tbaa !32
  %265 = load ptr, ptr %5, align 8, !tbaa !9
  %266 = getelementptr inbounds %struct.kalman2coherence_obj, ptr %265, i32 0, i32 12
  %267 = load ptr, ptr %266, align 8, !tbaa !28
  call void @matrix_inv(ptr noundef %264, ptr noundef %267)
  %268 = load ptr, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %268
}

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

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

declare ptr @matrix_construct_zero(i32 noundef, i32 noundef) #3

declare void @matrix_inv(ptr noundef, ptr noundef) #3

; 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"kalman2coherence_obj", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !10, i64 0}
!15 = !{!"matrix_obj", !10, i64 0, !16, i64 8, !16, i64 12}
!16 = !{!"int", !7, i64 0}
!17 = !{!15, !16, i64 12}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 24}
!20 = !{!12, !10, i64 32}
!21 = !{!12, !10, i64 40}
!22 = !{!12, !10, i64 48}
!23 = !{!12, !10, i64 56}
!24 = !{!12, !10, i64 64}
!25 = !{!12, !10, i64 72}
!26 = !{!12, !10, i64 80}
!27 = !{!12, !10, i64 88}
!28 = !{!12, !10, i64 96}
!29 = !{!12, !10, i64 104}
!30 = !{!12, !10, i64 112}
!31 = !{!12, !10, i64 120}
!32 = !{!12, !10, i64 128}
!33 = !{!12, !10, i64 136}
!34 = !{!12, !10, i64 144}
!35 = !{!12, !10, i64 152}
!36 = !{!12, !10, i64 160}
!37 = !{!12, !10, i64 168}
!38 = !{!12, !10, i64 176}
!39 = !{!12, !10, i64 184}
!40 = !{!12, !10, i64 192}


; 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: nounwind uwtable
define dso_local noalias noundef ptr @kalman2coherence_construct(float noundef %0, float noundef %1) local_unnamed_addr #0 {
  %3 = tail call noalias dereferenceable_or_null(200) ptr @malloc(i64 noundef 200) #3
  store float %0, ptr %3, align 8, !tbaa !5
  %4 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 6) #4
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %4, ptr %5, align 8, !tbaa !11
  %6 = load ptr, ptr %4, align 8, !tbaa !12
  store float 1.000000e+00, ptr %6, align 4, !tbaa !15
  %7 = getelementptr inbounds i8, ptr %4, i64 12
  %8 = load i32, ptr %7, align 4, !tbaa !16
  %9 = add i32 %8, 1
  %10 = zext i32 %9 to i64
  %11 = getelementptr inbounds float, ptr %6, i64 %10
  store float 1.000000e+00, ptr %11, align 4, !tbaa !15
  %12 = shl i32 %8, 1
  %13 = add i32 %12, 2
  %14 = zext i32 %13 to i64
  %15 = getelementptr inbounds float, ptr %6, i64 %14
  store float 1.000000e+00, ptr %15, align 4, !tbaa !15
  %16 = tail call ptr @matrix_construct_zero(i32 noundef 6, i32 noundef 3) #4
  %17 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %16, ptr %17, align 8, !tbaa !17
  %18 = load ptr, ptr %16, align 8, !tbaa !12
  store float 1.000000e+00, ptr %18, align 4, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %16, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !16
  %21 = add i32 %20, 1
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds float, ptr %18, i64 %22
  store float 1.000000e+00, ptr %23, align 4, !tbaa !15
  %24 = shl i32 %20, 1
  %25 = add i32 %24, 2
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds float, ptr %18, i64 %26
  store float 1.000000e+00, ptr %27, align 4, !tbaa !15
  %28 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %29 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %28, ptr %29, align 8, !tbaa !18
  %30 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3) #4
  %31 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %30, ptr %31, align 8, !tbaa !19
  %32 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %33 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %32, ptr %33, align 8, !tbaa !20
  %34 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3) #4
  %35 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %34, ptr %35, align 8, !tbaa !21
  %36 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %37 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %36, ptr %37, align 8, !tbaa !22
  %38 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 3) #4
  %39 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr %38, ptr %39, align 8, !tbaa !23
  %40 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 6) #4
  %41 = getelementptr inbounds i8, ptr %3, i64 72
  store ptr %40, ptr %41, align 8, !tbaa !24
  %42 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %43 = getelementptr inbounds i8, ptr %3, i64 80
  store ptr %42, ptr %43, align 8, !tbaa !25
  %44 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %45 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr %44, ptr %45, align 8, !tbaa !26
  %46 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %47 = getelementptr inbounds i8, ptr %3, i64 96
  store ptr %46, ptr %47, align 8, !tbaa !27
  %48 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %49 = getelementptr inbounds i8, ptr %3, i64 104
  store ptr %48, ptr %49, align 8, !tbaa !28
  %50 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %51 = getelementptr inbounds i8, ptr %3, i64 112
  store ptr %50, ptr %51, align 8, !tbaa !29
  %52 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %53 = getelementptr inbounds i8, ptr %3, i64 120
  store ptr %52, ptr %53, align 8, !tbaa !30
  %54 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %55 = getelementptr inbounds i8, ptr %3, i64 128
  store ptr %54, ptr %55, align 8, !tbaa !31
  %56 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 3) #4
  %57 = getelementptr inbounds i8, ptr %3, i64 136
  store ptr %56, ptr %57, align 8, !tbaa !32
  %58 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %59 = getelementptr inbounds i8, ptr %3, i64 144
  store ptr %58, ptr %59, align 8, !tbaa !33
  %60 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %61 = getelementptr inbounds i8, ptr %3, i64 152
  store ptr %60, ptr %61, align 8, !tbaa !34
  %62 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %63 = getelementptr inbounds i8, ptr %3, i64 160
  store ptr %62, ptr %63, align 8, !tbaa !35
  %64 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1) #4
  %65 = getelementptr inbounds i8, ptr %3, i64 168
  store ptr %64, ptr %65, align 8, !tbaa !36
  %66 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1) #4
  %67 = getelementptr inbounds i8, ptr %3, i64 176
  store ptr %66, ptr %67, align 8, !tbaa !37
  %68 = tail call ptr @matrix_construct_zero(i32 noundef 1, i32 noundef 1) #4
  %69 = getelementptr inbounds i8, ptr %3, i64 184
  store ptr %68, ptr %69, align 8, !tbaa !38
  %70 = tail call ptr @matrix_construct_zero(i32 noundef 3, i32 noundef 1) #4
  %71 = getelementptr inbounds i8, ptr %3, i64 192
  store ptr %70, ptr %71, align 8, !tbaa !39
  %72 = fmul float %1, %1
  %73 = load ptr, ptr %46, align 8, !tbaa !12
  store float %72, ptr %73, align 4, !tbaa !15
  %74 = getelementptr inbounds i8, ptr %46, i64 12
  %75 = load i32, ptr %74, align 4, !tbaa !16
  %76 = add i32 %75, 1
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %73, i64 %77
  store float %72, ptr %78, align 4, !tbaa !15
  %79 = shl i32 %75, 1
  %80 = add i32 %79, 2
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %73, i64 %81
  store float %72, ptr %82, align 4, !tbaa !15
  %83 = load ptr, ptr %42, align 8, !tbaa !12
  store float %0, ptr %83, align 4, !tbaa !15
  %84 = getelementptr inbounds i8, ptr %42, i64 12
  %85 = load i32, ptr %84, align 4, !tbaa !16
  %86 = add i32 %85, 1
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds float, ptr %83, i64 %87
  store float %0, ptr %88, align 4, !tbaa !15
  %89 = shl i32 %85, 1
  %90 = add i32 %89, 2
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %83, i64 %91
  store float %0, ptr %92, align 4, !tbaa !15
  tail call void @matrix_inv(ptr noundef %54, ptr noundef nonnull %46) #4
  ret ptr %3
}

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

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

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

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 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 #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 allocsize(0) }
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, !7, i64 0}
!6 = !{!"kalman2coherence_obj", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !10, i64 0}
!13 = !{!"matrix_obj", !10, i64 0, !14, i64 8, !14, i64 12}
!14 = !{!"int", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!13, !14, i64 12}
!17 = !{!6, !10, i64 16}
!18 = !{!6, !10, i64 24}
!19 = !{!6, !10, i64 32}
!20 = !{!6, !10, i64 40}
!21 = !{!6, !10, i64 48}
!22 = !{!6, !10, i64 56}
!23 = !{!6, !10, i64 64}
!24 = !{!6, !10, i64 72}
!25 = !{!6, !10, i64 80}
!26 = !{!6, !10, i64 88}
!27 = !{!6, !10, i64 96}
!28 = !{!6, !10, i64 104}
!29 = !{!6, !10, i64 112}
!30 = !{!6, !10, i64 120}
!31 = !{!6, !10, i64 128}
!32 = !{!6, !10, i64 136}
!33 = !{!6, !10, i64 144}
!34 = !{!6, !10, i64 152}
!35 = !{!6, !10, i64 160}
!36 = !{!6, !10, i64 168}
!37 = !{!6, !10, i64 176}
!38 = !{!6, !10, i64 184}
!39 = !{!6, !10, i64 192}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass