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

; 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] }>

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 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: nounwind
declare noalias ptr @strdup(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10RGBDCamera15ReadScanNetFileEPKc(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 double, align 8
  %9 = alloca double, align 8
  %10 = alloca [4096 x i8], align 16
  %11 = alloca [1024 x i8], align 16
  %12 = alloca [1024 x i8], align 16
  %13 = alloca [16 x double], align 16
  %14 = alloca %class.R4Matrix, align 8
  %15 = alloca %class.R4Matrix, align 8
  %16 = alloca %class.R4Matrix, align 8
  %17 = alloca %class.R4Matrix, align 8
  %18 = alloca [16 x double], align 16
  %19 = alloca %class.R4Matrix, align 8
  %20 = alloca %class.R4Matrix, align 8
  %21 = alloca %class.R4Matrix, align 8
  %22 = alloca %class.R4Matrix, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call noalias ptr @fopen(ptr noundef %24, ptr noundef @.str)
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %32, label %28

28:                                               ; preds = %2
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.1, ptr noundef %30) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %367

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4096, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %12) #6
  br label %33

33:                                               ; preds = %341, %44, %32
  %34 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call ptr @fgets(ptr noundef %34, i32 noundef 4096, ptr noundef %35)
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %342

38:                                               ; preds = %33
  %39 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
  %40 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %41 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %42 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %39, ptr noundef @.str.2, ptr noundef %40, ptr noundef %41) #6
  %43 = icmp ne i32 %42, 2
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  br label %33, !llvm.loop !11

45:                                               ; preds = %38
  %46 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %47 = call i32 @strcmp(ptr noundef %46, ptr noundef @.str.3) #7
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %53, label %49

49:                                               ; preds = %45
  %50 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %51 = call i32 @atoi(ptr noundef %50) #7
  %52 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 0
  store i32 %51, ptr %52, align 8, !tbaa !13
  br label %341

53:                                               ; preds = %45
  %54 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %55 = call i32 @strcmp(ptr noundef %54, ptr noundef @.str.4) #7
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %61, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %59 = call i32 @atoi(ptr noundef %58) #7
  %60 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 0
  store i32 %59, ptr %60, align 8, !tbaa !13
  br label %340

61:                                               ; preds = %53
  %62 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %63 = call i32 @strcmp(ptr noundef %62, ptr noundef @.str.5) #7
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %69, label %65

65:                                               ; preds = %61
  %66 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %67 = call i32 @atoi(ptr noundef %66) #7
  %68 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 1
  store i32 %67, ptr %68, align 4, !tbaa !17
  br label %339

69:                                               ; preds = %61
  %70 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %71 = call i32 @strcmp(ptr noundef %70, ptr noundef @.str.6) #7
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %77, label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %75 = call i32 @atoi(ptr noundef %74) #7
  %76 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 1
  store i32 %75, ptr %76, align 4, !tbaa !17
  br label %338

77:                                               ; preds = %69
  %78 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %79 = call i32 @strcmp(ptr noundef %78, ptr noundef @.str.7) #7
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %85, label %81

81:                                               ; preds = %77
  %82 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %83 = call i32 @atoi(ptr noundef %82) #7
  %84 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 2
  store i32 %83, ptr %84, align 8, !tbaa !18
  br label %337

85:                                               ; preds = %77
  %86 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %87 = call i32 @strcmp(ptr noundef %86, ptr noundef @.str.8) #7
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %93, label %89

89:                                               ; preds = %85
  %90 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %91 = call i32 @atoi(ptr noundef %90) #7
  %92 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 2
  store i32 %91, ptr %92, align 8, !tbaa !18
  br label %336

93:                                               ; preds = %85
  %94 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %95 = call i32 @strcmp(ptr noundef %94, ptr noundef @.str.9) #7
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %101, label %97

97:                                               ; preds = %93
  %98 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %99 = call i32 @atoi(ptr noundef %98) #7
  %100 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 3
  store i32 %99, ptr %100, align 4, !tbaa !19
  br label %335

101:                                              ; preds = %93
  %102 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %103 = call i32 @strcmp(ptr noundef %102, ptr noundef @.str.10) #7
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %109, label %105

105:                                              ; preds = %101
  %106 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %107 = call i32 @atoi(ptr noundef %106) #7
  %108 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 3
  store i32 %107, ptr %108, align 4, !tbaa !19
  br label %334

109:                                              ; preds = %101
  %110 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %111 = call i32 @strcmp(ptr noundef %110, ptr noundef @.str.11) #7
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %117, label %113

113:                                              ; preds = %109
  %114 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %115 = call double @atof(ptr noundef %114) #7
  %116 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 4
  store double %115, ptr %116, align 8, !tbaa !20
  br label %333

117:                                              ; preds = %109
  %118 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %119 = call i32 @strcmp(ptr noundef %118, ptr noundef @.str.12) #7
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %125, label %121

121:                                              ; preds = %117
  %122 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %123 = call double @atof(ptr noundef %122) #7
  %124 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 5
  store double %123, ptr %124, align 8, !tbaa !21
  br label %332

125:                                              ; preds = %117
  %126 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %127 = call i32 @strcmp(ptr noundef %126, ptr noundef @.str.13) #7
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %133, label %129

129:                                              ; preds = %125
  %130 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %131 = call double @atof(ptr noundef %130) #7
  %132 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 6
  store double %131, ptr %132, align 8, !tbaa !22
  br label %331

133:                                              ; preds = %125
  %134 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %135 = call i32 @strcmp(ptr noundef %134, ptr noundef @.str.14) #7
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %140, label %137

137:                                              ; preds = %133
  %138 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %139 = call double @atof(ptr noundef %138) #7
  store double %139, ptr %8, align 8, !tbaa !9
  br label %330

140:                                              ; preds = %133
  %141 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %142 = call i32 @strcmp(ptr noundef %141, ptr noundef @.str.15) #7
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %148, label %144

144:                                              ; preds = %140
  %145 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %146 = call double @atof(ptr noundef %145) #7
  %147 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 14
  store double %146, ptr %147, align 8, !tbaa !23
  br label %329

148:                                              ; preds = %140
  %149 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %150 = call i32 @strcmp(ptr noundef %149, ptr noundef @.str.16) #7
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %156, label %152

152:                                              ; preds = %148
  %153 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %154 = call double @atof(ptr noundef %153) #7
  %155 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 15
  store double %154, ptr %155, align 8, !tbaa !24
  br label %328

156:                                              ; preds = %148
  %157 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %158 = call i32 @strcmp(ptr noundef %157, ptr noundef @.str.17) #7
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %164, label %160

160:                                              ; preds = %156
  %161 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %162 = call double @atof(ptr noundef %161) #7
  %163 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 16
  store double %162, ptr %163, align 8, !tbaa !25
  br label %327

164:                                              ; preds = %156
  %165 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %166 = call i32 @strcmp(ptr noundef %165, ptr noundef @.str.18) #7
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %171, label %168

168:                                              ; preds = %164
  %169 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %170 = call double @atof(ptr noundef %169) #7
  store double %170, ptr %9, align 8, !tbaa !9
  br label %326

171:                                              ; preds = %164
  %172 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %173 = call i32 @strcmp(ptr noundef %172, ptr noundef @.str.19) #7
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %179, label %175

175:                                              ; preds = %171
  %176 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %177 = call double @atof(ptr noundef %176) #7
  %178 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 8
  store double %177, ptr %178, align 8, !tbaa !26
  br label %325

179:                                              ; preds = %171
  %180 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %181 = call i32 @strcmp(ptr noundef %180, ptr noundef @.str.20) #7
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %187, label %183

183:                                              ; preds = %179
  %184 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %185 = call double @atof(ptr noundef %184) #7
  %186 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 9
  store double %185, ptr %186, align 8, !tbaa !27
  br label %324

187:                                              ; preds = %179
  %188 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %189 = call i32 @strcmp(ptr noundef %188, ptr noundef @.str.21) #7
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %195, label %191

191:                                              ; preds = %187
  %192 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %193 = call double @atof(ptr noundef %192) #7
  %194 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 18
  store double %193, ptr %194, align 8, !tbaa !28
  br label %323

195:                                              ; preds = %187
  %196 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %197 = call i32 @strcmp(ptr noundef %196, ptr noundef @.str.22) #7
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %203, label %199

199:                                              ; preds = %195
  %200 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %201 = call double @atof(ptr noundef %200) #7
  %202 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 19
  store double %201, ptr %202, align 8, !tbaa !29
  br label %322

203:                                              ; preds = %195
  %204 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %205 = call i32 @strcmp(ptr noundef %204, ptr noundef @.str.23) #7
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %211, label %207

207:                                              ; preds = %203
  %208 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %209 = call noalias ptr @strdup(ptr noundef %208) #6
  %210 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 25
  store ptr %209, ptr %210, align 8, !tbaa !30
  br label %321

211:                                              ; preds = %203
  %212 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %213 = call i32 @strcmp(ptr noundef %212, ptr noundef @.str.24) #7
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %219, label %215

215:                                              ; preds = %211
  %216 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %217 = call noalias ptr @strdup(ptr noundef %216) #6
  %218 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 26
  store ptr %217, ptr %218, align 8, !tbaa !31
  br label %320

219:                                              ; preds = %211
  %220 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %221 = call i32 @strcmp(ptr noundef %220, ptr noundef @.str.25) #7
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %227, label %223

223:                                              ; preds = %219
  %224 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %225 = call noalias ptr @strdup(ptr noundef %224) #6
  %226 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 27
  store ptr %225, ptr %226, align 8, !tbaa !32
  br label %319

227:                                              ; preds = %219
  %228 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %229 = call i32 @strcmp(ptr noundef %228, ptr noundef @.str.26) #7
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %235, label %231

231:                                              ; preds = %227
  %232 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %233 = call noalias ptr @strdup(ptr noundef %232) #6
  %234 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 28
  store ptr %233, ptr %234, align 8, !tbaa !33
  br label %318

235:                                              ; preds = %227
  %236 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %237 = call i32 @strcmp(ptr noundef %236, ptr noundef @.str.27) #7
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %243, label %239

239:                                              ; preds = %235
  %240 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %241 = call i32 @atoi(ptr noundef %240) #7
  %242 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 29
  store i32 %241, ptr %242, align 8, !tbaa !34
  br label %317

243:                                              ; preds = %235
  %244 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %245 = call i32 @strcmp(ptr noundef %244, ptr noundef @.str.28) #7
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %251, label %247

247:                                              ; preds = %243
  %248 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %249 = call i32 @atoi(ptr noundef %248) #7
  %250 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 30
  store i32 %249, ptr %250, align 4, !tbaa !35
  br label %316

251:                                              ; preds = %243
  %252 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %253 = call i32 @strcmp(ptr noundef %252, ptr noundef @.str.29) #7
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %259, label %255

255:                                              ; preds = %251
  %256 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %257 = call i32 @atoi(ptr noundef %256) #7
  %258 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 31
  store i32 %257, ptr %258, align 8, !tbaa !36
  br label %315

259:                                              ; preds = %251
  %260 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %261 = call i32 @strcmp(ptr noundef %260, ptr noundef @.str.30) #7
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %286, label %263

263:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #6
  %264 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
  %265 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %266 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 0
  %267 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 1
  %268 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 2
  %269 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 3
  %270 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 4
  %271 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 5
  %272 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 6
  %273 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 7
  %274 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 8
  %275 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 9
  %276 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 10
  %277 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 11
  %278 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 12
  %279 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 13
  %280 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 14
  %281 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 15
  %282 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %264, ptr noundef @.str.31, ptr noundef %265, ptr noundef %266, ptr noundef %267, ptr noundef %268, ptr noundef %269, ptr noundef %270, ptr noundef %271, ptr noundef %272, ptr noundef %273, ptr noundef %274, ptr noundef %275, ptr noundef %276, ptr noundef %277, ptr noundef %278, ptr noundef %279, ptr noundef %280, ptr noundef %281) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #6
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %14, 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 %15) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #6
  %283 = getelementptr inbounds [16 x double], ptr %13, i64 0, i64 0
  call void @_ZN8R4MatrixC1EPKd(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef %283)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %16, ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef nonnull align 8 dereferenceable(128) %17)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %15, ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef nonnull align 8 dereferenceable(128) %14)
  %284 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 24
  %285 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %284, ptr noundef nonnull align 8 dereferenceable(128) %15)
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #6
  br label %314

286:                                              ; preds = %259
  %287 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %288 = call i32 @strcmp(ptr noundef %287, ptr noundef @.str.32) #7
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %313, label %290

290:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #6
  %291 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
  %292 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %293 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 0
  %294 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 1
  %295 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 2
  %296 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 3
  %297 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 4
  %298 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 5
  %299 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 6
  %300 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 7
  %301 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 8
  %302 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 9
  %303 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 10
  %304 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 11
  %305 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 12
  %306 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 13
  %307 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 14
  %308 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 15
  %309 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %291, ptr noundef @.str.31, ptr noundef %292, ptr noundef %293, ptr noundef %294, ptr noundef %295, ptr noundef %296, ptr noundef %297, ptr noundef %298, ptr noundef %299, ptr noundef %300, ptr noundef %301, ptr noundef %302, ptr noundef %303, ptr noundef %304, ptr noundef %305, ptr noundef %306, ptr noundef %307, ptr noundef %308) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %19) #6
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %19, 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 %20) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %22) #6
  %310 = getelementptr inbounds [16 x double], ptr %18, i64 0, i64 0
  call void @_ZN8R4MatrixC1EPKd(ptr noundef nonnull align 8 dereferenceable(128) %22, ptr noundef %310)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %21, ptr noundef nonnull align 8 dereferenceable(128) %19, ptr noundef nonnull align 8 dereferenceable(128) %22)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind writable sret(%class.R4Matrix) align 8 %20, ptr noundef nonnull align 8 dereferenceable(128) %21, ptr noundef nonnull align 8 dereferenceable(128) %19)
  %311 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 24
  %312 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %311, ptr noundef nonnull align 8 dereferenceable(128) %20)
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #6
  br label %313

313:                                              ; preds = %290, %286
  br label %314

314:                                              ; preds = %313, %263
  br label %315

315:                                              ; preds = %314, %255
  br label %316

316:                                              ; preds = %315, %247
  br label %317

317:                                              ; preds = %316, %239
  br label %318

318:                                              ; preds = %317, %231
  br label %319

319:                                              ; preds = %318, %223
  br label %320

320:                                              ; preds = %319, %215
  br label %321

321:                                              ; preds = %320, %207
  br label %322

322:                                              ; preds = %321, %199
  br label %323

323:                                              ; preds = %322, %191
  br label %324

324:                                              ; preds = %323, %183
  br label %325

325:                                              ; preds = %324, %175
  br label %326

326:                                              ; preds = %325, %168
  br label %327

327:                                              ; preds = %326, %160
  br label %328

328:                                              ; preds = %327, %152
  br label %329

329:                                              ; preds = %328, %144
  br label %330

330:                                              ; preds = %329, %137
  br label %331

331:                                              ; preds = %330, %129
  br label %332

332:                                              ; preds = %331, %121
  br label %333

333:                                              ; preds = %332, %113
  br label %334

334:                                              ; preds = %333, %105
  br label %335

335:                                              ; preds = %334, %97
  br label %336

336:                                              ; preds = %335, %89
  br label %337

337:                                              ; preds = %336, %81
  br label %338

338:                                              ; preds = %337, %73
  br label %339

339:                                              ; preds = %338, %65
  br label %340

340:                                              ; preds = %339, %57
  br label %341

341:                                              ; preds = %340, %49
  br label %33, !llvm.loop !11

342:                                              ; preds = %33
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = call i32 @fclose(ptr noundef %343)
  %345 = load double, ptr %8, align 8, !tbaa !9
  %346 = fcmp ogt double %345, 0.000000e+00
  br i1 %346, label %347, label %355

347:                                              ; preds = %342
  %348 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 1
  %349 = load i32, ptr %348, align 4, !tbaa !17
  %350 = sitofp i32 %349 to double
  %351 = load double, ptr %8, align 8, !tbaa !9
  %352 = fsub double %350, %351
  %353 = fsub double %352, 1.000000e+00
  %354 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 7
  store double %353, ptr %354, align 8, !tbaa !37
  br label %355

355:                                              ; preds = %347, %342
  %356 = load double, ptr %9, align 8, !tbaa !9
  %357 = fcmp ogt double %356, 0.000000e+00
  br i1 %357, label %358, label %366

358:                                              ; preds = %355
  %359 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 3
  %360 = load i32, ptr %359, align 4, !tbaa !19
  %361 = sitofp i32 %360 to double
  %362 = load double, ptr %9, align 8, !tbaa !9
  %363 = fsub double %361, %362
  %364 = fsub double %363, 1.000000e+00
  %365 = getelementptr inbounds %class.RGBDCamera, ptr %23, i32 0, i32 17
  store double %364, ptr %365, align 8, !tbaa !38
  br label %366

366:                                              ; preds = %358, %355
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4096, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %367

367:                                              ; preds = %366, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %368 = load i32, ptr %3, align 4
  ret i32 %368
}

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

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

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 void @_ZN8R4MatrixC1EPKd(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) unnamed_addr #0

declare i32 @fclose(ptr noundef) #0

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(read) "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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 }
attributes #7 = { nounwind willreturn memory(read) }

!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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS10RGBDCamera", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !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, !16, i64 176, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !15, i64 336, !15, i64 340, !15, i64 344}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS8R4Matrix", !7, i64 0}
!17 = !{!14, !15, i64 4}
!18 = !{!14, !15, i64 8}
!19 = !{!14, !15, i64 12}
!20 = !{!14, !10, i64 16}
!21 = !{!14, !10, i64 24}
!22 = !{!14, !10, i64 32}
!23 = !{!14, !10, i64 96}
!24 = !{!14, !10, i64 104}
!25 = !{!14, !10, i64 112}
!26 = !{!14, !10, i64 48}
!27 = !{!14, !10, i64 56}
!28 = !{!14, !10, i64 128}
!29 = !{!14, !10, i64 136}
!30 = !{!14, !6, i64 304}
!31 = !{!14, !6, i64 312}
!32 = !{!14, !6, i64 320}
!33 = !{!14, !6, i64 328}
!34 = !{!14, !15, i64 336}
!35 = !{!14, !15, i64 340}
!36 = !{!14, !15, i64 344}
!37 = !{!14, !10, i64 40}
!38 = !{!14, !10, i64 120}


; 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]] }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 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 nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN10RGBDCamera15ReadScanNetFileEPKc(ptr noundef nonnull align 8 dereferenceable(348) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca [4096 x i8], align 16
  %4 = alloca [1024 x i8], align 16
  %5 = alloca [1024 x i8], align 16
  %6 = alloca [16 x double], align 16
  %7 = alloca %class.R4Matrix, align 8
  %8 = alloca %class.R4Matrix, align 8
  %9 = alloca %class.R4Matrix, align 8
  %10 = alloca %class.R4Matrix, align 8
  %11 = alloca [16 x double], align 16
  %12 = alloca %class.R4Matrix, align 8
  %13 = alloca %class.R4Matrix, align 8
  %14 = alloca %class.R4Matrix, align 8
  %15 = alloca %class.R4Matrix, align 8
  %16 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str)
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %17, label %20

17:                                               ; preds = %2
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.1, ptr noundef %1) #7
  br label %212

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #8
  %21 = getelementptr inbounds i8, ptr %11, i64 8
  %22 = getelementptr inbounds i8, ptr %11, i64 16
  %23 = getelementptr inbounds i8, ptr %11, i64 24
  %24 = getelementptr inbounds i8, ptr %11, i64 32
  %25 = getelementptr inbounds i8, ptr %11, i64 40
  %26 = getelementptr inbounds i8, ptr %11, i64 48
  %27 = getelementptr inbounds i8, ptr %11, i64 56
  %28 = getelementptr inbounds i8, ptr %11, i64 64
  %29 = getelementptr inbounds i8, ptr %11, i64 72
  %30 = getelementptr inbounds i8, ptr %11, i64 80
  %31 = getelementptr inbounds i8, ptr %11, i64 88
  %32 = getelementptr inbounds i8, ptr %11, i64 96
  %33 = getelementptr inbounds i8, ptr %11, i64 104
  %34 = getelementptr inbounds i8, ptr %11, i64 112
  %35 = getelementptr inbounds i8, ptr %11, i64 120
  %36 = getelementptr inbounds i8, ptr %0, i64 176
  %37 = getelementptr inbounds i8, ptr %6, i64 8
  %38 = getelementptr inbounds i8, ptr %6, i64 16
  %39 = getelementptr inbounds i8, ptr %6, i64 24
  %40 = getelementptr inbounds i8, ptr %6, i64 32
  %41 = getelementptr inbounds i8, ptr %6, i64 40
  %42 = getelementptr inbounds i8, ptr %6, i64 48
  %43 = getelementptr inbounds i8, ptr %6, i64 56
  %44 = getelementptr inbounds i8, ptr %6, i64 64
  %45 = getelementptr inbounds i8, ptr %6, i64 72
  %46 = getelementptr inbounds i8, ptr %6, i64 80
  %47 = getelementptr inbounds i8, ptr %6, i64 88
  %48 = getelementptr inbounds i8, ptr %6, i64 96
  %49 = getelementptr inbounds i8, ptr %6, i64 104
  %50 = getelementptr inbounds i8, ptr %6, i64 112
  %51 = getelementptr inbounds i8, ptr %6, i64 120
  %52 = getelementptr inbounds i8, ptr %0, i64 344
  %53 = getelementptr inbounds i8, ptr %0, i64 340
  %54 = getelementptr inbounds i8, ptr %0, i64 336
  %55 = getelementptr inbounds i8, ptr %0, i64 328
  %56 = getelementptr inbounds i8, ptr %0, i64 320
  %57 = getelementptr inbounds i8, ptr %0, i64 312
  %58 = getelementptr inbounds i8, ptr %0, i64 304
  %59 = getelementptr inbounds i8, ptr %0, i64 136
  %60 = getelementptr inbounds i8, ptr %0, i64 128
  %61 = getelementptr inbounds i8, ptr %0, i64 56
  %62 = getelementptr inbounds i8, ptr %0, i64 48
  %63 = getelementptr inbounds i8, ptr %0, i64 112
  %64 = getelementptr inbounds i8, ptr %0, i64 104
  %65 = getelementptr inbounds i8, ptr %0, i64 96
  %66 = getelementptr inbounds i8, ptr %0, i64 32
  %67 = getelementptr inbounds i8, ptr %0, i64 24
  %68 = getelementptr inbounds i8, ptr %0, i64 16
  %69 = getelementptr inbounds i8, ptr %0, i64 12
  %70 = getelementptr inbounds i8, ptr %0, i64 8
  %71 = getelementptr inbounds i8, ptr %0, i64 4
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %20
  %.010.ph = phi double [ 0.000000e+00, %20 ], [ %.010.ph.be, %.outer.backedge ]
  %.0.ph = phi double [ 0.000000e+00, %20 ], [ %.0.ph.be, %.outer.backedge ]
  br label %72

72:                                               ; preds = %.outer, %74
  %73 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 4096, ptr noundef nonnull %16)
  %.not14 = icmp eq ptr %73, null
  br i1 %.not14, label %194, label %74

74:                                               ; preds = %72
  %75 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, ptr noundef nonnull %5) #8
  %.not15 = icmp eq i32 %75, 2
  br i1 %.not15, label %76, label %72, !llvm.loop !9

76:                                               ; preds = %74
  %77 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %.not16 = icmp eq i32 %77, 0
  br i1 %.not16, label %78, label %80

78:                                               ; preds = %76
  %79 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %79, ptr %0, align 8, !tbaa !11
  br label %.outer.backedge

80:                                               ; preds = %76
  %81 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %.not17 = icmp eq i32 %81, 0
  br i1 %.not17, label %82, label %84

82:                                               ; preds = %80
  %83 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %83, ptr %0, align 8, !tbaa !11
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %82, %90, %98, %106, %114, %122, %130, %138, %146, %154, %162, %170, %178, %186, %191, %189, %182, %174, %166, %158, %150, %142, %134, %126, %118, %110, %102, %94, %86, %78
  %.010.ph.be = phi double [ %.010.ph, %189 ], [ %.010.ph, %191 ], [ %.010.ph, %186 ], [ %.010.ph, %182 ], [ %.010.ph, %178 ], [ %.010.ph, %174 ], [ %.010.ph, %170 ], [ %.010.ph, %166 ], [ %.010.ph, %162 ], [ %.010.ph, %158 ], [ %.010.ph, %154 ], [ %.010.ph, %150 ], [ %.010.ph, %146 ], [ %.010.ph, %142 ], [ %.010.ph, %138 ], [ %.010.ph, %134 ], [ %.010.ph, %130 ], [ %.010.ph, %126 ], [ %123, %122 ], [ %.010.ph, %118 ], [ %.010.ph, %114 ], [ %.010.ph, %110 ], [ %.010.ph, %106 ], [ %.010.ph, %102 ], [ %.010.ph, %98 ], [ %.010.ph, %94 ], [ %.010.ph, %90 ], [ %.010.ph, %86 ], [ %.010.ph, %82 ], [ %.010.ph, %78 ]
  %.0.ph.be = phi double [ %.0.ph, %189 ], [ %.0.ph, %191 ], [ %.0.ph, %186 ], [ %.0.ph, %182 ], [ %.0.ph, %178 ], [ %.0.ph, %174 ], [ %.0.ph, %170 ], [ %.0.ph, %166 ], [ %.0.ph, %162 ], [ %.0.ph, %158 ], [ %.0.ph, %154 ], [ %.0.ph, %150 ], [ %.0.ph, %146 ], [ %.0.ph, %142 ], [ %139, %138 ], [ %.0.ph, %134 ], [ %.0.ph, %130 ], [ %.0.ph, %126 ], [ %.0.ph, %122 ], [ %.0.ph, %118 ], [ %.0.ph, %114 ], [ %.0.ph, %110 ], [ %.0.ph, %106 ], [ %.0.ph, %102 ], [ %.0.ph, %98 ], [ %.0.ph, %94 ], [ %.0.ph, %90 ], [ %.0.ph, %86 ], [ %.0.ph, %82 ], [ %.0.ph, %78 ]
  br label %.outer, !llvm.loop !9

84:                                               ; preds = %80
  %85 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.5) #9
  %.not18 = icmp eq i32 %85, 0
  br i1 %.not18, label %86, label %88

86:                                               ; preds = %84
  %87 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %87, ptr %71, align 4, !tbaa !16
  br label %.outer.backedge

88:                                               ; preds = %84
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.6) #9
  %.not19 = icmp eq i32 %89, 0
  br i1 %.not19, label %90, label %92

90:                                               ; preds = %88
  %91 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %91, ptr %71, align 4, !tbaa !16
  br label %.outer.backedge

92:                                               ; preds = %88
  %93 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %.not20 = icmp eq i32 %93, 0
  br i1 %.not20, label %94, label %96

94:                                               ; preds = %92
  %95 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %95, ptr %70, align 8, !tbaa !17
  br label %.outer.backedge

96:                                               ; preds = %92
  %97 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %.not21 = icmp eq i32 %97, 0
  br i1 %.not21, label %98, label %100

98:                                               ; preds = %96
  %99 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %99, ptr %70, align 8, !tbaa !17
  br label %.outer.backedge

100:                                              ; preds = %96
  %101 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %.not22 = icmp eq i32 %101, 0
  br i1 %.not22, label %102, label %104

102:                                              ; preds = %100
  %103 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %103, ptr %69, align 4, !tbaa !18
  br label %.outer.backedge

104:                                              ; preds = %100
  %105 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not23 = icmp eq i32 %105, 0
  br i1 %.not23, label %106, label %108

106:                                              ; preds = %104
  %107 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %107, ptr %69, align 4, !tbaa !18
  br label %.outer.backedge

108:                                              ; preds = %104
  %109 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.11) #9
  %.not24 = icmp eq i32 %109, 0
  br i1 %.not24, label %110, label %112

110:                                              ; preds = %108
  %111 = call double @atof(ptr noundef %5) #9
  store double %111, ptr %68, align 8, !tbaa !19
  br label %.outer.backedge

112:                                              ; preds = %108
  %113 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %.not25 = icmp eq i32 %113, 0
  br i1 %.not25, label %114, label %116

114:                                              ; preds = %112
  %115 = call double @atof(ptr noundef %5) #9
  store double %115, ptr %67, align 8, !tbaa !20
  br label %.outer.backedge

116:                                              ; preds = %112
  %117 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.13) #9
  %.not26 = icmp eq i32 %117, 0
  br i1 %.not26, label %118, label %120

118:                                              ; preds = %116
  %119 = call double @atof(ptr noundef %5) #9
  store double %119, ptr %66, align 8, !tbaa !21
  br label %.outer.backedge

120:                                              ; preds = %116
  %121 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.14) #9
  %.not27 = icmp eq i32 %121, 0
  br i1 %.not27, label %122, label %124

122:                                              ; preds = %120
  %123 = call double @atof(ptr noundef %5) #9
  br label %.outer.backedge

124:                                              ; preds = %120
  %125 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.15) #9
  %.not28 = icmp eq i32 %125, 0
  br i1 %.not28, label %126, label %128

126:                                              ; preds = %124
  %127 = call double @atof(ptr noundef %5) #9
  store double %127, ptr %65, align 8, !tbaa !22
  br label %.outer.backedge

128:                                              ; preds = %124
  %129 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.16) #9
  %.not29 = icmp eq i32 %129, 0
  br i1 %.not29, label %130, label %132

130:                                              ; preds = %128
  %131 = call double @atof(ptr noundef %5) #9
  store double %131, ptr %64, align 8, !tbaa !23
  br label %.outer.backedge

132:                                              ; preds = %128
  %133 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.17) #9
  %.not30 = icmp eq i32 %133, 0
  br i1 %.not30, label %134, label %136

134:                                              ; preds = %132
  %135 = call double @atof(ptr noundef %5) #9
  store double %135, ptr %63, align 8, !tbaa !24
  br label %.outer.backedge

136:                                              ; preds = %132
  %137 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.18) #9
  %.not31 = icmp eq i32 %137, 0
  br i1 %.not31, label %138, label %140

138:                                              ; preds = %136
  %139 = call double @atof(ptr noundef %5) #9
  br label %.outer.backedge

140:                                              ; preds = %136
  %141 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.19) #9
  %.not32 = icmp eq i32 %141, 0
  br i1 %.not32, label %142, label %144

142:                                              ; preds = %140
  %143 = call double @atof(ptr noundef %5) #9
  store double %143, ptr %62, align 8, !tbaa !25
  br label %.outer.backedge

144:                                              ; preds = %140
  %145 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.20) #9
  %.not33 = icmp eq i32 %145, 0
  br i1 %.not33, label %146, label %148

146:                                              ; preds = %144
  %147 = call double @atof(ptr noundef %5) #9
  store double %147, ptr %61, align 8, !tbaa !26
  br label %.outer.backedge

148:                                              ; preds = %144
  %149 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.21) #9
  %.not34 = icmp eq i32 %149, 0
  br i1 %.not34, label %150, label %152

150:                                              ; preds = %148
  %151 = call double @atof(ptr noundef %5) #9
  store double %151, ptr %60, align 8, !tbaa !27
  br label %.outer.backedge

152:                                              ; preds = %148
  %153 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.22) #9
  %.not35 = icmp eq i32 %153, 0
  br i1 %.not35, label %154, label %156

154:                                              ; preds = %152
  %155 = call double @atof(ptr noundef %5) #9
  store double %155, ptr %59, align 8, !tbaa !28
  br label %.outer.backedge

156:                                              ; preds = %152
  %157 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.23) #9
  %.not36 = icmp eq i32 %157, 0
  br i1 %.not36, label %158, label %160

158:                                              ; preds = %156
  %159 = call noalias ptr @strdup(ptr noundef nonnull %5) #8
  store ptr %159, ptr %58, align 8, !tbaa !29
  br label %.outer.backedge

160:                                              ; preds = %156
  %161 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.24) #9
  %.not37 = icmp eq i32 %161, 0
  br i1 %.not37, label %162, label %164

162:                                              ; preds = %160
  %163 = call noalias ptr @strdup(ptr noundef nonnull %5) #8
  store ptr %163, ptr %57, align 8, !tbaa !30
  br label %.outer.backedge

164:                                              ; preds = %160
  %165 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.25) #9
  %.not38 = icmp eq i32 %165, 0
  br i1 %.not38, label %166, label %168

166:                                              ; preds = %164
  %167 = call noalias ptr @strdup(ptr noundef nonnull %5) #8
  store ptr %167, ptr %56, align 8, !tbaa !31
  br label %.outer.backedge

168:                                              ; preds = %164
  %169 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.26) #9
  %.not39 = icmp eq i32 %169, 0
  br i1 %.not39, label %170, label %172

170:                                              ; preds = %168
  %171 = call noalias ptr @strdup(ptr noundef nonnull %5) #8
  store ptr %171, ptr %55, align 8, !tbaa !32
  br label %.outer.backedge

172:                                              ; preds = %168
  %173 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.27) #9
  %.not40 = icmp eq i32 %173, 0
  br i1 %.not40, label %174, label %176

174:                                              ; preds = %172
  %175 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %175, ptr %54, align 8, !tbaa !33
  br label %.outer.backedge

176:                                              ; preds = %172
  %177 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.28) #9
  %.not41 = icmp eq i32 %177, 0
  br i1 %.not41, label %178, label %180

178:                                              ; preds = %176
  %179 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %179, ptr %53, align 4, !tbaa !34
  br label %.outer.backedge

180:                                              ; preds = %176
  %181 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.29) #9
  %.not42 = icmp eq i32 %181, 0
  br i1 %.not42, label %182, label %184

182:                                              ; preds = %180
  %183 = call i32 @atoi(ptr nocapture noundef %5) #9
  store i32 %183, ptr %52, align 8, !tbaa !35
  br label %.outer.backedge

184:                                              ; preds = %180
  %185 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.30) #9
  %.not43 = icmp eq i32 %185, 0
  br i1 %.not43, label %186, label %189

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #8
  %187 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.31, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull %42, ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull %49, ptr noundef nonnull %50, ptr noundef nonnull %51) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #8
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %7, 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 %8) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #8
  call void @_ZN8R4MatrixC1EPKd(ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull %6)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %9, ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(128) %10)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull align 8 dereferenceable(128) %7)
  %188 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %36, ptr noundef nonnull align 8 dereferenceable(128) %8)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #8
  br label %.outer.backedge

189:                                              ; preds = %184
  %190 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.32) #9
  %.not44 = icmp eq i32 %190, 0
  br i1 %.not44, label %191, label %.outer.backedge

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #8
  %192 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.31, ptr noundef nonnull %4, ptr noundef nonnull %11, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #8
  call void @_ZN8R4MatrixC1Edddddddddddddddd(ptr noundef nonnull align 8 dereferenceable(128) %12, 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 %13) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #8
  call void @_ZN8R4MatrixC1EPKd(ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull %11)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 8 dereferenceable(128) %15)
  call void @_ZmlRK8R4MatrixS1_(ptr dead_on_unwind nonnull writable sret(%class.R4Matrix) align 8 %13, ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef nonnull align 8 dereferenceable(128) %12)
  %193 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN8R4MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(128) %36, ptr noundef nonnull align 8 dereferenceable(128) %13)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #8
  br label %.outer.backedge

194:                                              ; preds = %72
  %195 = call i32 @fclose(ptr noundef nonnull %16)
  %196 = fcmp ogt double %.010.ph, 0.000000e+00
  br i1 %196, label %197, label %203

197:                                              ; preds = %194
  %198 = load i32, ptr %71, align 4, !tbaa !16
  %199 = sitofp i32 %198 to double
  %200 = fsub double %199, %.010.ph
  %201 = fadd double %200, -1.000000e+00
  %202 = getelementptr inbounds i8, ptr %0, i64 40
  store double %201, ptr %202, align 8, !tbaa !36
  br label %203

203:                                              ; preds = %197, %194
  %204 = fcmp ogt double %.0.ph, 0.000000e+00
  br i1 %204, label %205, label %211

205:                                              ; preds = %203
  %206 = load i32, ptr %69, align 4, !tbaa !18
  %207 = sitofp i32 %206 to double
  %208 = fsub double %207, %.0.ph
  %209 = fadd double %208, -1.000000e+00
  %210 = getelementptr inbounds i8, ptr %0, i64 120
  store double %209, ptr %210, align 8, !tbaa !37
  br label %211

211:                                              ; preds = %205, %203
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #8
  br label %212

212:                                              ; preds = %211, %17
  %.012 = phi i32 [ 1, %211 ], [ 0, %17 ]
  ret i32 %.012
}

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

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #6

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

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

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

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 nofree nounwind willreturn memory(argmem: readwrite, 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { cold nounwind }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass