; LLVM IR from beagleboard/librobotcontrol :: library/src/math (kalman)

; 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.rc_matrix_t = type { i32, i32, ptr, i32 }
%struct.rc_vector_t = type { i32, ptr, i32 }
%struct.rc_kalman_t = type { %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_matrix_t, %struct.rc_vector_t, %struct.rc_vector_t, i32, i64 }

@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [60 x i8], align 1

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

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

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

declare i32 @rc_matrix_duplicate(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) #3

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

declare i32 @rc_matrix_free(ptr noundef) #3

declare i32 @rc_vector_free(ptr noundef) #3

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

declare i32 @rc_matrix_times_col_vec(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_vector_sum(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_matrix_multiply(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) #3

declare i32 @rc_matrix_transpose(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) #3

declare i32 @rc_matrix_right_multiply_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) #3

declare i32 @rc_matrix_add_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) #3

declare i32 @rc_matrix_symmetrize(ptr noundef) #3

declare i32 @rc_matrix_left_multiply_inplace(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) #3

declare i32 @rc_algebra_invert_matrix_inplace(ptr noundef) #3

declare i32 @rc_vector_subtract(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_matrix_subtract_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @rc_kalman_update_ekf(ptr noundef %0, ptr noundef byval(%struct.rc_matrix_t) align 8 %1, ptr noundef byval(%struct.rc_matrix_t) align 8 %2, ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef byval(%struct.rc_vector_t) align 8 %5) #5 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.rc_matrix_t, align 8
  %10 = alloca %struct.rc_matrix_t, align 8
  %11 = alloca %struct.rc_matrix_t, align 8
  %12 = alloca %struct.rc_matrix_t, align 8
  %13 = alloca %struct.rc_vector_t, align 8
  %14 = alloca %struct.rc_vector_t, align 8
  %15 = alloca %struct.rc_vector_t, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  %19 = xor i1 %18, true
  %20 = xor i1 %19, true
  %21 = zext i1 %20 to i32
  %22 = sext i32 %21 to i64
  %23 = call i64 @llvm.expect.i64(i64 %22, i64 0)
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %6
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.18) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

28:                                               ; preds = %6
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.rc_kalman_t, ptr %29, i32 0, i32 9
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp ne i32 %31, 1
  %33 = xor i1 %32, true
  %34 = xor i1 %33, true
  %35 = zext i1 %34 to i32
  %36 = sext i32 %35 to i64
  %37 = call i64 @llvm.expect.i64(i64 %36, i64 0)
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %28
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.19) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

42:                                               ; preds = %28
  %43 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 3
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = icmp ne i32 %44, 1
  br i1 %45, label %50, label %46

46:                                               ; preds = %42
  %47 = getelementptr inbounds %struct.rc_matrix_t, ptr %2, i32 0, i32 3
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = icmp ne i32 %48, 1
  br label %50

50:                                               ; preds = %46, %42
  %51 = phi i1 [ true, %42 ], [ %49, %46 ]
  %52 = xor i1 %51, true
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  %55 = sext i32 %54 to i64
  %56 = call i64 @llvm.expect.i64(i64 %55, i64 0)
  %57 = icmp ne i64 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %50
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.20) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

61:                                               ; preds = %50
  %62 = getelementptr inbounds %struct.rc_vector_t, ptr %3, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !16
  %64 = icmp ne i32 %63, 1
  br i1 %64, label %73, label %65

65:                                               ; preds = %61
  %66 = getelementptr inbounds %struct.rc_vector_t, ptr %4, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !16
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %73, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds %struct.rc_vector_t, ptr %5, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !16
  %72 = icmp ne i32 %71, 1
  br label %73

73:                                               ; preds = %69, %65, %61
  %74 = phi i1 [ true, %65 ], [ true, %61 ], [ %72, %69 ]
  %75 = xor i1 %74, true
  %76 = xor i1 %75, true
  %77 = zext i1 %76 to i32
  %78 = sext i32 %77 to i64
  %79 = call i64 @llvm.expect.i64(i64 %78, i64 0)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %84

81:                                               ; preds = %73
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.21) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

84:                                               ; preds = %73
  %85 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !17
  %87 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !18
  %89 = icmp ne i32 %86, %88
  %90 = xor i1 %89, true
  %91 = xor i1 %90, true
  %92 = zext i1 %91 to i32
  %93 = sext i32 %92 to i64
  %94 = call i64 @llvm.expect.i64(i64 %93, i64 0)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %84
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.22) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

99:                                               ; preds = %84
  %100 = getelementptr inbounds %struct.rc_vector_t, ptr %3, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !19
  %102 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !17
  %104 = icmp ne i32 %101, %103
  %105 = xor i1 %104, true
  %106 = xor i1 %105, true
  %107 = zext i1 %106 to i32
  %108 = sext i32 %107 to i64
  %109 = call i64 @llvm.expect.i64(i64 %108, i64 0)
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %114

111:                                              ; preds = %99
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.23) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

114:                                              ; preds = %99
  %115 = getelementptr inbounds %struct.rc_vector_t, ptr %3, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !19
  %117 = getelementptr inbounds %struct.rc_matrix_t, ptr %2, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !18
  %119 = icmp ne i32 %116, %118
  %120 = xor i1 %119, true
  %121 = xor i1 %120, true
  %122 = zext i1 %121 to i32
  %123 = sext i32 %122 to i64
  %124 = call i64 @llvm.expect.i64(i64 %123, i64 0)
  %125 = icmp ne i64 %124, 0
  br i1 %125, label %126, label %129

126:                                              ; preds = %114
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.24) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

129:                                              ; preds = %114
  %130 = getelementptr inbounds %struct.rc_vector_t, ptr %4, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !19
  %132 = getelementptr inbounds %struct.rc_matrix_t, ptr %2, i32 0, i32 0
  %133 = load i32, ptr %132, align 8, !tbaa !17
  %134 = icmp ne i32 %131, %133
  %135 = xor i1 %134, true
  %136 = xor i1 %135, true
  %137 = zext i1 %136 to i32
  %138 = sext i32 %137 to i64
  %139 = call i64 @llvm.expect.i64(i64 %138, i64 0)
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %129
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.25) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

144:                                              ; preds = %129
  %145 = getelementptr inbounds %struct.rc_vector_t, ptr %4, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !19
  %147 = getelementptr inbounds %struct.rc_vector_t, ptr %5, i32 0, i32 0
  %148 = load i32, ptr %147, align 8, !tbaa !19
  %149 = icmp ne i32 %146, %148
  %150 = xor i1 %149, true
  %151 = xor i1 %150, true
  %152 = zext i1 %151 to i32
  %153 = sext i32 %152 to i64
  %154 = call i64 @llvm.expect.i64(i64 %153, i64 0)
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %159

156:                                              ; preds = %144
  %157 = load ptr, ptr @stderr, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.26) #6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

159:                                              ; preds = %144
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.rc_kalman_t, ptr %160, i32 0, i32 0
  %162 = call i32 @rc_matrix_duplicate(ptr noundef byval(%struct.rc_matrix_t) align 8 %1, ptr noundef %161)
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.rc_kalman_t, ptr %163, i32 0, i32 8
  %165 = call i32 @rc_vector_duplicate(ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef %164)
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.rc_kalman_t, ptr %166, i32 0, i32 2
  %168 = call i32 @rc_matrix_duplicate(ptr noundef byval(%struct.rc_matrix_t) align 8 %2, ptr noundef %167)
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.rc_kalman_t, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.rc_kalman_t, ptr %171, i32 0, i32 5
  %173 = call i32 @rc_matrix_multiply(ptr noundef byval(%struct.rc_matrix_t) align 8 %170, ptr noundef byval(%struct.rc_matrix_t) align 8 %172, ptr noundef %10)
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.rc_kalman_t, ptr %174, i32 0, i32 0
  %176 = call i32 @rc_matrix_transpose(ptr noundef byval(%struct.rc_matrix_t) align 8 %175, ptr noundef %12)
  %177 = call i32 @rc_matrix_right_multiply_inplace(ptr noundef %10, ptr noundef byval(%struct.rc_matrix_t) align 8 %12)
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.rc_kalman_t, ptr %178, i32 0, i32 3
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.rc_kalman_t, ptr %180, i32 0, i32 5
  %182 = call i32 @rc_matrix_add(ptr noundef byval(%struct.rc_matrix_t) align 8 %10, ptr noundef byval(%struct.rc_matrix_t) align 8 %179, ptr noundef %181)
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.rc_kalman_t, ptr %183, i32 0, i32 5
  %185 = call i32 @rc_matrix_symmetrize(ptr noundef %184)
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.rc_kalman_t, ptr %186, i32 0, i32 2
  %188 = call i32 @rc_matrix_transpose(ptr noundef byval(%struct.rc_matrix_t) align 8 %187, ptr noundef %11)
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.rc_kalman_t, ptr %189, i32 0, i32 5
  %191 = call i32 @rc_matrix_multiply(ptr noundef byval(%struct.rc_matrix_t) align 8 %190, ptr noundef byval(%struct.rc_matrix_t) align 8 %11, ptr noundef %9)
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.rc_kalman_t, ptr %192, i32 0, i32 5
  %194 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef byval(%struct.rc_matrix_t) align 8 %193, ptr noundef %11)
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.rc_kalman_t, ptr %195, i32 0, i32 2
  %197 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef byval(%struct.rc_matrix_t) align 8 %196, ptr noundef %11)
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.rc_kalman_t, ptr %198, i32 0, i32 4
  %200 = call i32 @rc_matrix_add_inplace(ptr noundef %11, ptr noundef byval(%struct.rc_matrix_t) align 8 %199)
  %201 = call i32 @rc_algebra_invert_matrix_inplace(ptr noundef %11)
  %202 = call i32 @rc_matrix_right_multiply_inplace(ptr noundef %9, ptr noundef byval(%struct.rc_matrix_t) align 8 %11)
  %203 = call i32 @rc_vector_subtract(ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef byval(%struct.rc_vector_t) align 8 %5, ptr noundef %13)
  %204 = call i32 @rc_matrix_times_col_vec(ptr noundef byval(%struct.rc_matrix_t) align 8 %9, ptr noundef byval(%struct.rc_vector_t) align 8 %13, ptr noundef %14)
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.rc_kalman_t, ptr %205, i32 0, i32 8
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.rc_kalman_t, ptr %207, i32 0, i32 7
  %209 = call i32 @rc_vector_sum(ptr noundef byval(%struct.rc_vector_t) align 8 %206, ptr noundef byval(%struct.rc_vector_t) align 8 %14, ptr noundef %208)
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.rc_kalman_t, ptr %210, i32 0, i32 2
  %212 = call i32 @rc_matrix_multiply(ptr noundef byval(%struct.rc_matrix_t) align 8 %211, ptr noundef byval(%struct.rc_matrix_t) align 8 %10, ptr noundef %11)
  %213 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef byval(%struct.rc_matrix_t) align 8 %9, ptr noundef %11)
  %214 = call i32 @rc_matrix_subtract_inplace(ptr noundef %10, ptr noundef byval(%struct.rc_matrix_t) align 8 %11)
  %215 = call i32 @rc_matrix_symmetrize(ptr noundef %10)
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.rc_kalman_t, ptr %216, i32 0, i32 5
  %218 = call i32 @rc_matrix_duplicate(ptr noundef byval(%struct.rc_matrix_t) align 8 %10, ptr noundef %217)
  %219 = call i32 @rc_matrix_free(ptr noundef %9)
  %220 = call i32 @rc_matrix_free(ptr noundef %10)
  %221 = call i32 @rc_matrix_free(ptr noundef %11)
  %222 = call i32 @rc_matrix_free(ptr noundef %12)
  %223 = call i32 @rc_vector_free(ptr noundef %13)
  %224 = call i32 @rc_vector_free(ptr noundef %14)
  %225 = call i32 @rc_vector_free(ptr noundef %15)
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.rc_kalman_t, ptr %226, i32 0, i32 10
  %228 = load i64, ptr %227, align 8, !tbaa !20
  %229 = add i64 %228, 1
  store i64 %229, ptr %227, align 8, !tbaa !20
  store i32 0, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %230

230:                                              ; preds = %159, %156, %141, %126, %111, %96, %81, %58, %39, %25
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  %231 = load i32, ptr %7, align 4
  ret i32 %231
}

declare i32 @rc_vector_duplicate(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_matrix_add(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) #3

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { 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 #6 = { 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, !12, i64 216}
!10 = !{!"rc_kalman_t", !11, i64 0, !11, i64 24, !11, i64 48, !11, i64 72, !11, i64 96, !11, i64 120, !11, i64 144, !13, i64 168, !13, i64 192, !12, i64 216, !14, i64 224}
!11 = !{!"rc_matrix_t", !12, i64 0, !12, i64 4, !6, i64 8, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"rc_vector_t", !12, i64 0, !6, i64 8, !12, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !12, i64 16}
!16 = !{!13, !12, i64 16}
!17 = !{!11, !12, i64 0}
!18 = !{!11, !12, i64 4}
!19 = !{!13, !12, i64 0}
!20 = !{!10, !14, i64 224}


; 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.rc_matrix_t = type { i32, i32, ptr, i32 }
%struct.rc_vector_t = type { i32, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [60 x i8], align 1

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

declare i32 @rc_matrix_duplicate(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) local_unnamed_addr #3

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

declare i32 @rc_matrix_free(ptr noundef) local_unnamed_addr #3

declare i32 @rc_vector_free(ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_times_col_vec(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_vector_sum(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_multiply(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_transpose(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_right_multiply_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) local_unnamed_addr #3

declare i32 @rc_matrix_add_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) local_unnamed_addr #3

declare i32 @rc_matrix_symmetrize(ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_left_multiply_inplace(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_algebra_invert_matrix_inplace(ptr noundef) local_unnamed_addr #3

declare i32 @rc_vector_subtract(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_subtract_inplace(ptr noundef, ptr noundef byval(%struct.rc_matrix_t) align 8) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @rc_kalman_update_ekf(ptr noundef %0, ptr noundef byval(%struct.rc_matrix_t) align 8 %1, ptr noundef byval(%struct.rc_matrix_t) align 8 %2, ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef byval(%struct.rc_vector_t) align 8 %5) local_unnamed_addr #4 {
  %7 = alloca %struct.rc_matrix_t, align 8
  %8 = alloca %struct.rc_matrix_t, align 8
  %9 = alloca %struct.rc_matrix_t, align 8
  %10 = alloca %struct.rc_matrix_t, align 8
  %11 = alloca %struct.rc_vector_t, align 8
  %12 = alloca %struct.rc_vector_t, align 8
  %13 = alloca %struct.rc_vector_t, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %12, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  %14 = icmp eq ptr %0, null
  br i1 %14, label %15, label %18, !prof !5

15:                                               ; preds = %6
  %16 = load ptr, ptr @stderr, align 8, !tbaa !6
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.18) #6
  br label %116

18:                                               ; preds = %6
  %19 = getelementptr inbounds i8, ptr %0, i64 216
  %20 = load i32, ptr %19, align 8, !tbaa !10
  %.not = icmp eq i32 %20, 1
  br i1 %.not, label %24, label %21, !prof !16

21:                                               ; preds = %18
  %22 = load ptr, ptr @stderr, align 8, !tbaa !6
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.19) #6
  br label %116

24:                                               ; preds = %18
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %27 = icmp ne i32 %26, 1
  %28 = getelementptr inbounds i8, ptr %2, i64 16
  %29 = load i32, ptr %28, align 8
  %30 = icmp ne i32 %29, 1
  %31 = select i1 %27, i1 true, i1 %30, !prof !5
  br i1 %31, label %32, label %35, !prof !5

32:                                               ; preds = %24
  %33 = load ptr, ptr @stderr, align 8, !tbaa !6
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.20) #6
  br label %116

35:                                               ; preds = %24
  %36 = getelementptr inbounds i8, ptr %3, i64 16
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = icmp ne i32 %37, 1
  %39 = getelementptr inbounds i8, ptr %4, i64 16
  %40 = load i32, ptr %39, align 8
  %41 = icmp ne i32 %40, 1
  %or.cond = select i1 %38, i1 true, i1 %41
  %42 = getelementptr inbounds i8, ptr %5, i64 16
  %43 = load i32, ptr %42, align 8
  %44 = icmp ne i32 %43, 1
  %or.cond34 = select i1 %or.cond, i1 true, i1 %44
  br i1 %or.cond34, label %.critedge, label %47, !prof !19

.critedge:                                        ; preds = %35
  %45 = load ptr, ptr @stderr, align 8, !tbaa !6
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.21) #6
  br label %116

47:                                               ; preds = %35
  %48 = load i32, ptr %1, align 8, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %1, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !21
  %.not27 = icmp eq i32 %48, %50
  br i1 %.not27, label %54, label %51, !prof !16

51:                                               ; preds = %47
  %52 = load ptr, ptr @stderr, align 8, !tbaa !6
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.22) #6
  br label %116

54:                                               ; preds = %47
  %55 = load i32, ptr %3, align 8, !tbaa !22
  %.not28 = icmp eq i32 %55, %48
  br i1 %.not28, label %59, label %56, !prof !16

56:                                               ; preds = %54
  %57 = load ptr, ptr @stderr, align 8, !tbaa !6
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.23) #6
  br label %116

59:                                               ; preds = %54
  %60 = getelementptr inbounds i8, ptr %2, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !21
  %.not29 = icmp eq i32 %48, %61
  br i1 %.not29, label %65, label %62, !prof !16

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !6
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.24) #6
  br label %116

65:                                               ; preds = %59
  %66 = load i32, ptr %4, align 8, !tbaa !22
  %67 = load i32, ptr %2, align 8, !tbaa !20
  %.not30 = icmp eq i32 %66, %67
  br i1 %.not30, label %71, label %68, !prof !16

68:                                               ; preds = %65
  %69 = load ptr, ptr @stderr, align 8, !tbaa !6
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.25) #6
  br label %116

71:                                               ; preds = %65
  %72 = load i32, ptr %5, align 8, !tbaa !22
  %.not31 = icmp eq i32 %66, %72
  br i1 %.not31, label %76, label %73, !prof !16

73:                                               ; preds = %71
  %74 = load ptr, ptr @stderr, align 8, !tbaa !6
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.26) #6
  br label %116

76:                                               ; preds = %71
  %77 = tail call i32 @rc_matrix_duplicate(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %1, ptr noundef nonnull %0) #5
  %78 = getelementptr inbounds i8, ptr %0, i64 192
  %79 = tail call i32 @rc_vector_duplicate(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3, ptr noundef nonnull %78) #5
  %80 = getelementptr inbounds i8, ptr %0, i64 48
  %81 = tail call i32 @rc_matrix_duplicate(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %2, ptr noundef nonnull %80) #5
  %82 = getelementptr inbounds i8, ptr %0, i64 120
  %83 = call i32 @rc_matrix_multiply(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %0, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %82, ptr noundef nonnull %8) #5
  %84 = call i32 @rc_matrix_transpose(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %0, ptr noundef nonnull %10) #5
  %85 = call i32 @rc_matrix_right_multiply_inplace(ptr noundef nonnull %8, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %10) #5
  %86 = getelementptr inbounds i8, ptr %0, i64 72
  %87 = call i32 @rc_matrix_add(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %8, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %86, ptr noundef nonnull %82) #5
  %88 = call i32 @rc_matrix_symmetrize(ptr noundef nonnull %82) #5
  %89 = call i32 @rc_matrix_transpose(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %80, ptr noundef nonnull %9) #5
  %90 = call i32 @rc_matrix_multiply(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %82, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %9, ptr noundef nonnull %7) #5
  %91 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %82, ptr noundef nonnull %9) #5
  %92 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %80, ptr noundef nonnull %9) #5
  %93 = getelementptr inbounds i8, ptr %0, i64 96
  %94 = call i32 @rc_matrix_add_inplace(ptr noundef nonnull %9, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %93) #5
  %95 = call i32 @rc_algebra_invert_matrix_inplace(ptr noundef nonnull %9) #5
  %96 = call i32 @rc_matrix_right_multiply_inplace(ptr noundef nonnull %7, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %9) #5
  %97 = call i32 @rc_vector_subtract(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %4, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %5, ptr noundef nonnull %11) #5
  %98 = call i32 @rc_matrix_times_col_vec(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %7, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %11, ptr noundef nonnull %12) #5
  %99 = getelementptr inbounds i8, ptr %0, i64 168
  %100 = call i32 @rc_vector_sum(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %78, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %12, ptr noundef nonnull %99) #5
  %101 = call i32 @rc_matrix_multiply(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %80, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %8, ptr noundef nonnull %9) #5
  %102 = call i32 @rc_matrix_left_multiply_inplace(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %7, ptr noundef nonnull %9) #5
  %103 = call i32 @rc_matrix_subtract_inplace(ptr noundef nonnull %8, ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %9) #5
  %104 = call i32 @rc_matrix_symmetrize(ptr noundef nonnull %8) #5
  %105 = call i32 @rc_matrix_duplicate(ptr noundef nonnull byval(%struct.rc_matrix_t) align 8 %8, ptr noundef nonnull %82) #5
  %106 = call i32 @rc_matrix_free(ptr noundef nonnull %7) #5
  %107 = call i32 @rc_matrix_free(ptr noundef nonnull %8) #5
  %108 = call i32 @rc_matrix_free(ptr noundef nonnull %9) #5
  %109 = call i32 @rc_matrix_free(ptr noundef nonnull %10) #5
  %110 = call i32 @rc_vector_free(ptr noundef nonnull %11) #5
  %111 = call i32 @rc_vector_free(ptr noundef nonnull %12) #5
  %112 = call i32 @rc_vector_free(ptr noundef nonnull %13) #5
  %113 = getelementptr inbounds i8, ptr %0, i64 224
  %114 = load i64, ptr %113, align 8, !tbaa !23
  %115 = add i64 %114, 1
  store i64 %115, ptr %113, align 8, !tbaa !23
  br label %116

116:                                              ; preds = %76, %73, %68, %62, %56, %51, %.critedge, %32, %21, %15
  %.0 = phi i32 [ -1, %15 ], [ -1, %21 ], [ -1, %32 ], [ -1, %.critedge ], [ -1, %51 ], [ -1, %56 ], [ -1, %62 ], [ -1, %68 ], [ -1, %73 ], [ 0, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  ret i32 %.0
}

declare i32 @rc_vector_duplicate(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @rc_matrix_add(ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef byval(%struct.rc_matrix_t) align 8, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { cold 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 216}
!11 = !{!"rc_kalman_t", !12, i64 0, !12, i64 24, !12, i64 48, !12, i64 72, !12, i64 96, !12, i64 120, !12, i64 144, !14, i64 168, !14, i64 192, !13, i64 216, !15, i64 224}
!12 = !{!"rc_matrix_t", !13, i64 0, !13, i64 4, !7, i64 8, !13, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!"rc_vector_t", !13, i64 0, !7, i64 8, !13, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!12, !13, i64 16}
!18 = !{!14, !13, i64 16}
!19 = !{!"branch_weights", i32 6003000, i32 -294967296}
!20 = !{!12, !13, i64 0}
!21 = !{!12, !13, i64 4}
!22 = !{!14, !13, i64 0}
!23 = !{!11, !15, i64 224}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass