; LLVM IR from niessner/Matterport :: code/gaps/pkgs/RGBD/RGBDCamera.ll (ZNK10RGBDCamera16WriteScanNetFileEPKc)

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

%class.R4Matrix = type { [4 x [4 x double]] }
%class.RGBDCamera = type <{ i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.R4Matrix, ptr, ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>

@R4identity_matrix = external global %class.R4Matrix, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [74 x i8], align 1

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #0

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #0

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

declare void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) unnamed_addr #0

declare void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #0

declare i32 @fclose(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK10RGBDCamera16WriteScanNetFileEPKc(ptr noundef nonnull align 8 dereferenceable(348) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.R4Matrix, align 8
  %9 = alloca %class.R4Matrix, align 8
  %10 = alloca %class.R4Matrix, align 8
  %11 = alloca %class.R4Matrix, align 8
  %12 = alloca %class.R4Matrix, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call noalias ptr @fopen(ptr noundef %14, ptr noundef @.str.33)
  store ptr %15, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %22, label %18

18:                                               ; preds = %2
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.1, ptr noundef %20) #5
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %184

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #5
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %8, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 128, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #5
  call void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %8)
  %23 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 24
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %10, ptr noundef nonnull align 8 dereferenceable(128) %11, ptr noundef nonnull align 8 dereferenceable(128) %23)
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #5
  call void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %12, ptr noundef nonnull align 8 dereferenceable(128) %8)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %9, ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull align 8 dereferenceable(128) %12)
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %10) #5
  %24 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 24
  %25 = call noundef i32 @_ZNK8R4Matrix10IsIdentityEv(ptr noundef nonnull align 8 dereferenceable(128) %24)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %22
  %28 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull align 8 dereferenceable(128) @R4identity_matrix)
  br label %29

29:                                               ; preds = %27, %22
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.34, i32 noundef %32) #5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.35, i32 noundef %36) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !15
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.36, i32 noundef %40) #5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.37, i32 noundef %44) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 4
  %48 = load double, ptr %47, align 8, !tbaa !17
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.38, double noundef %48) #5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 5
  %52 = load double, ptr %51, align 8, !tbaa !18
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.39, double noundef %52) #5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 6
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.40, double noundef %56) #5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !14
  %61 = sitofp i32 %60 to double
  %62 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 7
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = fsub double %61, %63
  %65 = fsub double %64, 1.000000e+00
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.41, double noundef %65) #5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 14
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.42, double noundef %69) #5
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 15
  %73 = load double, ptr %72, align 8, !tbaa !22
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.43, double noundef %73) #5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 16
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.44, double noundef %77) #5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 3
  %81 = load i32, ptr %80, align 4, !tbaa !16
  %82 = sitofp i32 %81 to double
  %83 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 17
  %84 = load double, ptr %83, align 8, !tbaa !24
  %85 = fsub double %82, %84
  %86 = fsub double %85, 1.000000e+00
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.45, double noundef %86) #5
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 8
  %90 = load double, ptr %89, align 8, !tbaa !25
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.46, double noundef %90) #5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 9
  %94 = load double, ptr %93, align 8, !tbaa !26
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.47, double noundef %94) #5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 18
  %98 = load double, ptr %97, align 8, !tbaa !27
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.48, double noundef %98) #5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 19
  %102 = load double, ptr %101, align 8, !tbaa !28
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.49, double noundef %102) #5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 25
  %106 = load ptr, ptr %105, align 8, !tbaa !29
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.50, ptr noundef %106) #5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 26
  %110 = load ptr, ptr %109, align 8, !tbaa !30
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.51, ptr noundef %110) #5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 27
  %114 = load ptr, ptr %113, align 8, !tbaa !31
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.52, ptr noundef %114) #5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 28
  %118 = load ptr, ptr %117, align 8, !tbaa !32
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.53, ptr noundef %118) #5
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 29
  %122 = load i32, ptr %121, align 8, !tbaa !33
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.54, i32 noundef %122) #5
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 30
  %126 = load i32, ptr %125, align 4, !tbaa !34
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.55, i32 noundef %126) #5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.RGBDCamera, ptr %13, i32 0, i32 31
  %130 = load i32, ptr %129, align 8, !tbaa !35
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.56, i32 noundef %130) #5
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 0)
  %134 = getelementptr inbounds double, ptr %133, i64 0
  %135 = load double, ptr %134, align 8, !tbaa !36
  %136 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 0)
  %137 = getelementptr inbounds double, ptr %136, i64 1
  %138 = load double, ptr %137, align 8, !tbaa !36
  %139 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 0)
  %140 = getelementptr inbounds double, ptr %139, i64 2
  %141 = load double, ptr %140, align 8, !tbaa !36
  %142 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 0)
  %143 = getelementptr inbounds double, ptr %142, i64 3
  %144 = load double, ptr %143, align 8, !tbaa !36
  %145 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 1)
  %146 = getelementptr inbounds double, ptr %145, i64 0
  %147 = load double, ptr %146, align 8, !tbaa !36
  %148 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 1)
  %149 = getelementptr inbounds double, ptr %148, i64 1
  %150 = load double, ptr %149, align 8, !tbaa !36
  %151 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 1)
  %152 = getelementptr inbounds double, ptr %151, i64 2
  %153 = load double, ptr %152, align 8, !tbaa !36
  %154 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 1)
  %155 = getelementptr inbounds double, ptr %154, i64 3
  %156 = load double, ptr %155, align 8, !tbaa !36
  %157 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 2)
  %158 = getelementptr inbounds double, ptr %157, i64 0
  %159 = load double, ptr %158, align 8, !tbaa !36
  %160 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 2)
  %161 = getelementptr inbounds double, ptr %160, i64 1
  %162 = load double, ptr %161, align 8, !tbaa !36
  %163 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 2)
  %164 = getelementptr inbounds double, ptr %163, i64 2
  %165 = load double, ptr %164, align 8, !tbaa !36
  %166 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 2)
  %167 = getelementptr inbounds double, ptr %166, i64 3
  %168 = load double, ptr %167, align 8, !tbaa !36
  %169 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 3)
  %170 = getelementptr inbounds double, ptr %169, i64 0
  %171 = load double, ptr %170, align 8, !tbaa !36
  %172 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 3)
  %173 = getelementptr inbounds double, ptr %172, i64 1
  %174 = load double, ptr %173, align 8, !tbaa !36
  %175 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 3)
  %176 = getelementptr inbounds double, ptr %175, i64 2
  %177 = load double, ptr %176, align 8, !tbaa !36
  %178 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef 3)
  %179 = getelementptr inbounds double, ptr %178, i64 3
  %180 = load double, ptr %179, align 8, !tbaa !36
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.57, double noundef %135, double noundef %138, double noundef %141, double noundef %144, double noundef %147, double noundef %150, double noundef %153, double noundef %156, double noundef %159, double noundef %162, double noundef %165, double noundef %168, double noundef %171, double noundef %174, double noundef %177, double noundef %180) #5
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = call i32 @fclose(ptr noundef %182)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #5
  br label %184

184:                                              ; preds = %29, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %185 = load i32, ptr %3, align 4
  ret i32 %185
}

declare void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(128)) #0

declare noundef i32 @_ZNK8R4Matrix10IsIdentityEv(ptr noundef nonnull align 8 dereferenceable(128)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) #4 align 2

attributes #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 "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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS10RGBDCamera", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !11, i64 336, !11, i64 340, !11, i64 344}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS8R4Matrix", !7, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !11, i64 12}
!17 = !{!10, !12, i64 16}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !12, i64 32}
!20 = !{!10, !12, i64 40}
!21 = !{!10, !12, i64 96}
!22 = !{!10, !12, i64 104}
!23 = !{!10, !12, i64 112}
!24 = !{!10, !12, i64 120}
!25 = !{!10, !12, i64 48}
!26 = !{!10, !12, i64 56}
!27 = !{!10, !12, i64 128}
!28 = !{!10, !12, i64 136}
!29 = !{!10, !6, i64 304}
!30 = !{!10, !6, i64 312}
!31 = !{!10, !6, i64 320}
!32 = !{!10, !6, i64 328}
!33 = !{!10, !11, i64 336}
!34 = !{!10, !11, i64 340}
!35 = !{!10, !11, i64 344}
!36 = !{!12, !12, i64 0}


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

%class.R4Matrix = type { [4 x [4 x double]] }

@R4identity_matrix = external global %class.R4Matrix, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [74 x i8], align 1

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

declare void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) unnamed_addr #0

declare void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZNK10RGBDCamera16WriteScanNetFileEPKc(ptr noundef nonnull align 8 dereferenceable(348) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %class.R4Matrix, align 8
  %4 = alloca %class.R4Matrix, align 8
  %5 = alloca %class.R4Matrix, align 8
  %6 = alloca %class.R4Matrix, align 8
  %7 = alloca %class.R4Matrix, align 8
  %8 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.33)
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %12

9:                                                ; preds = %2
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.1, ptr noundef %1) #5
  br label %140

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %3, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #6
  call void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %6, ptr noundef nonnull align 8 dereferenceable(128) %3)
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %5, ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull align 8 dereferenceable(128) %13)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #6
  call void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %3)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %4, ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull align 8 dereferenceable(128) %7)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #6
  %14 = call noundef i32 @_ZNK8R4Matrix10IsIdentityEv(ptr noundef nonnull align 8 dereferenceable(128) %13)
  %.not30 = icmp eq i32 %14, 0
  br i1 %.not30, label %17, label %15

15:                                               ; preds = %12
  %16 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(128) @R4identity_matrix)
  br label %17

17:                                               ; preds = %15, %12
  %18 = load i32, ptr %0, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.34, i32 noundef %18) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.35, i32 noundef %21) #6
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !15
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.36, i32 noundef %24) #6
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  %27 = load i32, ptr %26, align 4, !tbaa !16
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.37, i32 noundef %27) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load double, ptr %29, align 8, !tbaa !17
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.38, double noundef %30) #6
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load double, ptr %32, align 8, !tbaa !18
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.39, double noundef %33) #6
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = load double, ptr %35, align 8, !tbaa !19
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.40, double noundef %36) #6
  %38 = load i32, ptr %20, align 4, !tbaa !14
  %39 = sitofp i32 %38 to double
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = fsub double %39, %41
  %43 = fadd double %42, -1.000000e+00
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.41, double noundef %43) #6
  %45 = getelementptr inbounds i8, ptr %0, i64 96
  %46 = load double, ptr %45, align 8, !tbaa !21
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.42, double noundef %46) #6
  %48 = getelementptr inbounds i8, ptr %0, i64 104
  %49 = load double, ptr %48, align 8, !tbaa !22
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.43, double noundef %49) #6
  %51 = getelementptr inbounds i8, ptr %0, i64 112
  %52 = load double, ptr %51, align 8, !tbaa !23
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.44, double noundef %52) #6
  %54 = load i32, ptr %26, align 4, !tbaa !16
  %55 = sitofp i32 %54 to double
  %56 = getelementptr inbounds i8, ptr %0, i64 120
  %57 = load double, ptr %56, align 8, !tbaa !24
  %58 = fsub double %55, %57
  %59 = fadd double %58, -1.000000e+00
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.45, double noundef %59) #6
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  %62 = load double, ptr %61, align 8, !tbaa !25
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.46, double noundef %62) #6
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  %65 = load double, ptr %64, align 8, !tbaa !26
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.47, double noundef %65) #6
  %67 = getelementptr inbounds i8, ptr %0, i64 128
  %68 = load double, ptr %67, align 8, !tbaa !27
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.48, double noundef %68) #6
  %70 = getelementptr inbounds i8, ptr %0, i64 136
  %71 = load double, ptr %70, align 8, !tbaa !28
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.49, double noundef %71) #6
  %73 = getelementptr inbounds i8, ptr %0, i64 304
  %74 = load ptr, ptr %73, align 8, !tbaa !29
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.50, ptr noundef %74) #6
  %76 = getelementptr inbounds i8, ptr %0, i64 312
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.51, ptr noundef %77) #6
  %79 = getelementptr inbounds i8, ptr %0, i64 320
  %80 = load ptr, ptr %79, align 8, !tbaa !31
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.52, ptr noundef %80) #6
  %82 = getelementptr inbounds i8, ptr %0, i64 328
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.53, ptr noundef %83) #6
  %85 = getelementptr inbounds i8, ptr %0, i64 336
  %86 = load i32, ptr %85, align 8, !tbaa !33
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.54, i32 noundef %86) #6
  %88 = getelementptr inbounds i8, ptr %0, i64 340
  %89 = load i32, ptr %88, align 4, !tbaa !34
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.55, i32 noundef %89) #6
  %91 = getelementptr inbounds i8, ptr %0, i64 344
  %92 = load i32, ptr %91, align 8, !tbaa !35
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.56, i32 noundef %92) #6
  %94 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 0)
  %95 = load double, ptr %94, align 8, !tbaa !36
  %96 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 0)
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load double, ptr %97, align 8, !tbaa !36
  %99 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 0)
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %101 = load double, ptr %100, align 8, !tbaa !36
  %102 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 0)
  %103 = getelementptr inbounds i8, ptr %102, i64 24
  %104 = load double, ptr %103, align 8, !tbaa !36
  %105 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 1)
  %106 = load double, ptr %105, align 8, !tbaa !36
  %107 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 1)
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  %109 = load double, ptr %108, align 8, !tbaa !36
  %110 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 1)
  %111 = getelementptr inbounds i8, ptr %110, i64 16
  %112 = load double, ptr %111, align 8, !tbaa !36
  %113 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 1)
  %114 = getelementptr inbounds i8, ptr %113, i64 24
  %115 = load double, ptr %114, align 8, !tbaa !36
  %116 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 2)
  %117 = load double, ptr %116, align 8, !tbaa !36
  %118 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 2)
  %119 = getelementptr inbounds i8, ptr %118, i64 8
  %120 = load double, ptr %119, align 8, !tbaa !36
  %121 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 2)
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  %123 = load double, ptr %122, align 8, !tbaa !36
  %124 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 2)
  %125 = getelementptr inbounds i8, ptr %124, i64 24
  %126 = load double, ptr %125, align 8, !tbaa !36
  %127 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 3)
  %128 = load double, ptr %127, align 8, !tbaa !36
  %129 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 3)
  %130 = getelementptr inbounds i8, ptr %129, i64 8
  %131 = load double, ptr %130, align 8, !tbaa !36
  %132 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 3)
  %133 = getelementptr inbounds i8, ptr %132, i64 16
  %134 = load double, ptr %133, align 8, !tbaa !36
  %135 = call noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef 3)
  %136 = getelementptr inbounds i8, ptr %135, i64 24
  %137 = load double, ptr %136, align 8, !tbaa !36
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.57, double noundef %95, double noundef %98, double noundef %101, double noundef %104, double noundef %106, double noundef %109, double noundef %112, double noundef %115, double noundef %117, double noundef %120, double noundef %123, double noundef %126, double noundef %128, double noundef %131, double noundef %134, double noundef %137) #6
  %139 = call i32 @fclose(ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
  br label %140

140:                                              ; preds = %17, %9
  %.0 = phi i32 [ 1, %17 ], [ 0, %9 ]
  ret i32 %.0
}

declare void @_ZNK8R4Matrix7InverseEv(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0

declare noundef i32 @_ZNK8R4Matrix10IsIdentityEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN8R4MatrixixEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) local_unnamed_addr #4 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { cold nounwind }
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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS10RGBDCamera", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !11, i64 336, !11, i64 340, !11, i64 344}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS8R4Matrix", !7, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !11, i64 12}
!17 = !{!10, !12, i64 16}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !12, i64 32}
!20 = !{!10, !12, i64 40}
!21 = !{!10, !12, i64 96}
!22 = !{!10, !12, i64 104}
!23 = !{!10, !12, i64 112}
!24 = !{!10, !12, i64 120}
!25 = !{!10, !12, i64 48}
!26 = !{!10, !12, i64 56}
!27 = !{!10, !12, i64 128}
!28 = !{!10, !12, i64 136}
!29 = !{!10, !6, i64 304}
!30 = !{!10, !6, i64 312}
!31 = !{!10, !6, i64 320}
!32 = !{!10, !6, i64 328}
!33 = !{!10, !11, i64 336}
!34 = !{!10, !11, i64 340}
!35 = !{!10, !11, i64 344}
!36 = !{!12, !12, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass