; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Grid.ll (ZN6R3Grid11ReadRawFileEPKc)

; 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.R3Affine = type { %class.R3Transformation, %class.R4Matrix, %class.R4Matrix, %class.RNFlags }
%class.R3Transformation = type { ptr }
%class.R4Matrix = type { [4 x [4 x double]] }
%class.RNFlags = type { i64 }
%class.R3Grid = type { %class.R3Affine, %class.R3Affine, double, double, ptr, [3 x i32], i32, i32, i32 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@stderr = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [30 x i8], align 1

declare void @_ZN8R3AffineC1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #0

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

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

; Function Attrs: nounwind
declare void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(272)) #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Grid11ReadRawFileEPKc(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [4096 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca [4096 x i8], align 16
  %9 = alloca [4096 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %class.R3Affine, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4096, ptr %6) #8
  %20 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call ptr @strncpy(ptr noundef %20, ptr noundef %21, i64 noundef 4096) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %23 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  %24 = call noundef ptr @strrchr(ptr noundef %23, i32 noundef 46) #9
  store ptr %24, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %29

27:                                               ; preds = %2
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 0, ptr %28, align 1, !tbaa !9
  br label %29

29:                                               ; preds = %27, %2
  %30 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  %31 = call ptr @strncat(ptr noundef %30, ptr noundef @.str.55, i64 noundef 4096) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr %8) #8
  %32 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call ptr @strncpy(ptr noundef %32, ptr noundef %33, i64 noundef 4096) #8
  %35 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %36 = call noundef ptr @strrchr(ptr noundef %35, i32 noundef 46) #9
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %29
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 0, ptr %40, align 1, !tbaa !9
  br label %41

41:                                               ; preds = %39, %29
  %42 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %43 = call ptr @strncat(ptr noundef %42, ptr noundef @.str.56, i64 noundef 4096) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %44 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  %45 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %46 = call noundef i32 @_ZL15ReadRawSizeFilePKcRiS1_S1_Pc(ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %41
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %362

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %50 = load i32, ptr %10, align 4, !tbaa !10
  %51 = load i32, ptr %11, align 4, !tbaa !10
  %52 = mul nsw i32 %50, %51
  %53 = load i32, ptr %12, align 4, !tbaa !10
  %54 = mul nsw i32 %52, %53
  store i32 %54, ptr %14, align 4, !tbaa !10
  %55 = load i32, ptr %14, align 4, !tbaa !10
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  %58 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.57, ptr noundef %58)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %361

59:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noalias ptr @fopen(ptr noundef %60, ptr noundef @.str.45)
  store ptr %61, ptr %15, align 8, !tbaa !5
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %66, label %64

64:                                               ; preds = %59
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.58, ptr noundef %65)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

66:                                               ; preds = %59
  %67 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load i32, ptr %14, align 4, !tbaa !10
  %72 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %73 = load i32, ptr %72, align 4, !tbaa !20
  %74 = icmp sgt i32 %71, %73
  br i1 %74, label %75, label %99

75:                                               ; preds = %70, %66
  %76 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !12
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %85

79:                                               ; preds = %75
  %80 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !12
  %82 = icmp eq ptr %81, null
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @_ZdaPv(ptr noundef %81) #10
  br label %84

84:                                               ; preds = %83, %79
  br label %85

85:                                               ; preds = %84, %75
  %86 = load i32, ptr %14, align 4, !tbaa !10
  %87 = sext i32 %86 to i64
  %88 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %87, i64 8)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  %91 = select i1 %89, i64 -1, i64 %90
  %92 = call noalias noundef nonnull ptr @_Znam(i64 noundef %91) #11
  %93 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  store ptr %92, ptr %93, align 8, !tbaa !12
  %94 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  %96 = icmp ne ptr %95, null
  br i1 %96, label %98, label %97

97:                                               ; preds = %85
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.10, i32 noundef 3334, ptr noundef @.str.2)
  br label %98

98:                                               ; preds = %97, %85
  br label %99

99:                                               ; preds = %98, %70
  %100 = load i32, ptr %10, align 4, !tbaa !10
  %101 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %102 = getelementptr inbounds [3 x i32], ptr %101, i64 0, i64 0
  store i32 %100, ptr %102, align 8, !tbaa !10
  %103 = load i32, ptr %11, align 4, !tbaa !10
  %104 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %105 = getelementptr inbounds [3 x i32], ptr %104, i64 0, i64 1
  store i32 %103, ptr %105, align 4, !tbaa !10
  %106 = load i32, ptr %12, align 4, !tbaa !10
  %107 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %108 = getelementptr inbounds [3 x i32], ptr %107, i64 0, i64 2
  store i32 %106, ptr %108, align 8, !tbaa !10
  %109 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %110 = getelementptr inbounds [3 x i32], ptr %109, i64 0, i64 0
  %111 = load i32, ptr %110, align 8, !tbaa !10
  %112 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 6
  store i32 %111, ptr %112, align 4, !tbaa !21
  %113 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 6
  %114 = load i32, ptr %113, align 4, !tbaa !21
  %115 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %116 = getelementptr inbounds [3 x i32], ptr %115, i64 0, i64 1
  %117 = load i32, ptr %116, align 4, !tbaa !10
  %118 = mul nsw i32 %114, %117
  %119 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 7
  store i32 %118, ptr %119, align 8, !tbaa !22
  %120 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 7
  %121 = load i32, ptr %120, align 8, !tbaa !22
  %122 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 5
  %123 = getelementptr inbounds [3 x i32], ptr %122, i64 0, i64 2
  %124 = load i32, ptr %123, align 8, !tbaa !10
  %125 = mul nsw i32 %121, %124
  %126 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  store i32 %125, ptr %126, align 4, !tbaa !20
  %127 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %128 = load i32, ptr %127, align 4, !tbaa !20
  %129 = icmp sle i32 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %99
  %131 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %132 = load i32, ptr %131, align 4, !tbaa !20
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.49, i32 noundef %132)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

133:                                              ; preds = %99
  %134 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %135 = call i32 @strcmp(ptr noundef %134, ptr noundef @.str.59) #9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %141

137:                                              ; preds = %133
  %138 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %139 = call i32 @strcmp(ptr noundef %138, ptr noundef @.str.60) #9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %151, label %141

141:                                              ; preds = %137, %133
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !12
  %145 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %146 = load i32, ptr %145, align 4, !tbaa !20
  %147 = call noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef %142, ptr noundef %144, i32 noundef %146)
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %141
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

150:                                              ; preds = %141
  br label %346

151:                                              ; preds = %137
  %152 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %153 = call i32 @strcmp(ptr noundef %152, ptr noundef @.str.61) #9
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %159

155:                                              ; preds = %151
  %156 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %157 = call i32 @strcmp(ptr noundef %156, ptr noundef @.str.62) #9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %169, label %159

159:                                              ; preds = %155, %151
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !12
  %163 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %164 = load i32, ptr %163, align 4, !tbaa !20
  %165 = call noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef %160, ptr noundef %162, i32 noundef %164)
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %168, label %167

167:                                              ; preds = %159
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

168:                                              ; preds = %159
  br label %345

169:                                              ; preds = %155
  %170 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %171 = call i32 @strcmp(ptr noundef %170, ptr noundef @.str.42) #9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %177

173:                                              ; preds = %169
  %174 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %175 = call i32 @strcmp(ptr noundef %174, ptr noundef @.str.63) #9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %187, label %177

177:                                              ; preds = %173, %169
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !12
  %181 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %182 = load i32, ptr %181, align 4, !tbaa !20
  %183 = call noundef i32 @_ZL13ReadRawValuesIfEiP8_IO_FILEPdi(ptr noundef %178, ptr noundef %180, i32 noundef %182)
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %186, label %185

185:                                              ; preds = %177
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

186:                                              ; preds = %177
  br label %344

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

191:                                              ; preds = %187
  %192 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %193 = call i32 @strcmp(ptr noundef %192, ptr noundef @.str.64) #9
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %205, label %195

195:                                              ; preds = %191, %187
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !12
  %199 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %200 = load i32, ptr %199, align 4, !tbaa !20
  %201 = call noundef i32 @_ZL13ReadRawValuesImEiP8_IO_FILEPdi(ptr noundef %196, ptr noundef %198, i32 noundef %200)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %204, label %203

203:                                              ; preds = %195
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

204:                                              ; preds = %195
  br label %343

205:                                              ; preds = %191
  %206 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %207 = call i32 @strcmp(ptr noundef %206, ptr noundef @.str.65) #9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %213

209:                                              ; preds = %205
  %210 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %211 = call i32 @strcmp(ptr noundef %210, ptr noundef @.str.66) #9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %223, label %213

213:                                              ; preds = %209, %205
  %214 = load ptr, ptr %15, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !12
  %217 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %218 = load i32, ptr %217, align 4, !tbaa !20
  %219 = call noundef i32 @_ZL13ReadRawValuesIlEiP8_IO_FILEPdi(ptr noundef %214, ptr noundef %216, i32 noundef %218)
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %222, label %221

221:                                              ; preds = %213
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

222:                                              ; preds = %213
  br label %342

223:                                              ; preds = %209
  %224 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %225 = call i32 @strcmp(ptr noundef %224, ptr noundef @.str.67) #9
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %231

227:                                              ; preds = %223
  %228 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %229 = call i32 @strcmp(ptr noundef %228, ptr noundef @.str.68) #9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %241, label %231

231:                                              ; preds = %227, %223
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !12
  %235 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %236 = load i32, ptr %235, align 4, !tbaa !20
  %237 = call noundef i32 @_ZL13ReadRawValuesIjEiP8_IO_FILEPdi(ptr noundef %232, ptr noundef %234, i32 noundef %236)
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %240, label %239

239:                                              ; preds = %231
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

240:                                              ; preds = %231
  br label %341

241:                                              ; preds = %227
  %242 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %243 = call i32 @strcmp(ptr noundef %242, ptr noundef @.str.69) #9
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %249

245:                                              ; preds = %241
  %246 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %247 = call i32 @strcmp(ptr noundef %246, ptr noundef @.str.70) #9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %259, label %249

249:                                              ; preds = %245, %241
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !12
  %253 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %254 = load i32, ptr %253, align 4, !tbaa !20
  %255 = call noundef i32 @_ZL13ReadRawValuesIiEiP8_IO_FILEPdi(ptr noundef %250, ptr noundef %252, i32 noundef %254)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %258, label %257

257:                                              ; preds = %249
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

258:                                              ; preds = %249
  br label %340

259:                                              ; preds = %245
  %260 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %261 = call i32 @strcmp(ptr noundef %260, ptr noundef @.str.71) #9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %267

263:                                              ; preds = %259
  %264 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %265 = call i32 @strcmp(ptr noundef %264, ptr noundef @.str.72) #9
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %277, label %267

267:                                              ; preds = %263, %259
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !12
  %271 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %272 = load i32, ptr %271, align 4, !tbaa !20
  %273 = call noundef i32 @_ZL13ReadRawValuesItEiP8_IO_FILEPdi(ptr noundef %268, ptr noundef %270, i32 noundef %272)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %276, label %275

275:                                              ; preds = %267
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

276:                                              ; preds = %267
  br label %339

277:                                              ; preds = %263
  %278 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %279 = call i32 @strcmp(ptr noundef %278, ptr noundef @.str.73) #9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %285

281:                                              ; preds = %277
  %282 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %283 = call i32 @strcmp(ptr noundef %282, ptr noundef @.str.74) #9
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %295, label %285

285:                                              ; preds = %281, %277
  %286 = load ptr, ptr %15, align 8, !tbaa !5
  %287 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !12
  %289 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %290 = load i32, ptr %289, align 4, !tbaa !20
  %291 = call noundef i32 @_ZL13ReadRawValuesIsEiP8_IO_FILEPdi(ptr noundef %286, ptr noundef %288, i32 noundef %290)
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %294, label %293

293:                                              ; preds = %285
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

294:                                              ; preds = %285
  br label %338

295:                                              ; preds = %281
  %296 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %297 = call i32 @strcmp(ptr noundef %296, ptr noundef @.str.75) #9
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %303

299:                                              ; preds = %295
  %300 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %301 = call i32 @strcmp(ptr noundef %300, ptr noundef @.str.76) #9
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %313, label %303

303:                                              ; preds = %299, %295
  %304 = load ptr, ptr %15, align 8, !tbaa !5
  %305 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %306 = load ptr, ptr %305, align 8, !tbaa !12
  %307 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %308 = load i32, ptr %307, align 4, !tbaa !20
  %309 = call noundef i32 @_ZL13ReadRawValuesIhEiP8_IO_FILEPdi(ptr noundef %304, ptr noundef %306, i32 noundef %308)
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %312, label %311

311:                                              ; preds = %303
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

312:                                              ; preds = %303
  br label %337

313:                                              ; preds = %299
  %314 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %315 = call i32 @strcmp(ptr noundef %314, ptr noundef @.str.77) #9
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %321

317:                                              ; preds = %313
  %318 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %319 = call i32 @strcmp(ptr noundef %318, ptr noundef @.str.78) #9
  %320 = icmp ne i32 %319, 0
  br i1 %320, label %331, label %321

321:                                              ; preds = %317, %313
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !12
  %325 = getelementptr inbounds %class.R3Grid, ptr %19, i32 0, i32 8
  %326 = load i32, ptr %325, align 4, !tbaa !20
  %327 = call noundef i32 @_ZL13ReadRawValuesIaEiP8_IO_FILEPdi(ptr noundef %322, ptr noundef %324, i32 noundef %326)
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %330, label %329

329:                                              ; preds = %321
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

330:                                              ; preds = %321
  br label %336

331:                                              ; preds = %317
  %332 = load ptr, ptr @stderr, align 8, !tbaa !5
  %333 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %334 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.79, ptr noundef %333, ptr noundef %334) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %360

336:                                              ; preds = %330
  br label %337

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

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

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

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

341:                                              ; preds = %340, %240
  br label %342

342:                                              ; preds = %341, %222
  br label %343

343:                                              ; preds = %342, %204
  br label %344

344:                                              ; preds = %343, %186
  br label %345

345:                                              ; preds = %344, %168
  br label %346

346:                                              ; preds = %345, %150
  %347 = load ptr, ptr %15, align 8, !tbaa !5
  %348 = call i32 @fclose(ptr noundef %347)
  call void @llvm.lifetime.start.p0(i64 272, ptr %16) #8
  call void @_ZN8R3AffineC1Ev(ptr noundef nonnull align 8 dereferenceable(272) %16)
  %349 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %350 = invoke noundef i32 @_ZL25ReadRawTransformationFilePKcR8R3Affine(ptr noundef %349, ptr noundef nonnull align 8 dereferenceable(272) %16)
          to label %351 unwind label %355

351:                                              ; preds = %346
  %352 = icmp ne i32 %350, 0
  br i1 %352, label %353, label %359

353:                                              ; preds = %351
  invoke void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592) %19, ptr noundef nonnull align 8 dereferenceable(272) %16)
          to label %354 unwind label %355

354:                                              ; preds = %353
  br label %359

355:                                              ; preds = %353, %346
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %17, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %18, align 4
  call void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %16) #8
  call void @llvm.lifetime.end.p0(i64 272, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %6) #8
  br label %364

359:                                              ; preds = %354, %351
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  call void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %16) #8
  call void @llvm.lifetime.end.p0(i64 272, ptr %16) #8
  br label %360

360:                                              ; preds = %359, %331, %329, %311, %293, %275, %257, %239, %221, %203, %185, %167, %149, %130, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %361

361:                                              ; preds = %360, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %362

362:                                              ; preds = %361, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %6) #8
  %363 = load i32, ptr %3, align 4
  ret i32 %363

364:                                              ; preds = %355
  %365 = load ptr, ptr %17, align 8
  %366 = load i32, ptr %18, align 4
  %367 = insertvalue { ptr, i32 } poison, ptr %365, 0
  %368 = insertvalue { ptr, i32 } %367, i32 %366, 1
  resume { ptr, i32 } %368
}

declare void @_Z6RNFailPKcz(ptr noundef, ...) #0

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

declare i32 @fclose(ptr noundef) #0

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind
declare ptr @strncat(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15ReadRawSizeFilePKcRiS1_S1_Pc(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #6

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIfEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesImEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIlEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIjEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIiEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesItEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIsEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIhEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIaEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL25ReadRawTransformationFilePKcR8R3Affine(ptr noundef, ptr noundef nonnull align 8 dereferenceable(272)) #6

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 speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { nobuiltin 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { builtin nounwind }
attributes #11 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 560}
!13 = !{!"_ZTS6R3Grid", !14, i64 0, !14, i64 272, !19, i64 544, !19, i64 552, !6, i64 560, !7, i64 568, !11, i64 580, !11, i64 584, !11, i64 588}
!14 = !{!"_ZTS8R3Affine", !15, i64 0, !16, i64 8, !16, i64 136, !17, i64 264}
!15 = !{!"_ZTS16R3Transformation"}
!16 = !{!"_ZTS8R4Matrix", !7, i64 0}
!17 = !{!"_ZTS7RNFlags", !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!13, !11, i64 588}
!21 = !{!13, !11, i64 580}
!22 = !{!13, !11, i64 584}


; 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.R3Affine = type { %class.R3Transformation, %class.R4Matrix, %class.R4Matrix, %class.RNFlags }
%class.R3Transformation = type { ptr }
%class.R4Matrix = type { [4 x [4 x double]] }
%class.RNFlags = type { i64 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.42 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [30 x i8], align 1

declare void @_ZN8R3AffineC1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) 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: nounwind
declare void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN6R3Grid11ReadRawFileEPKc(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [4096 x i8], align 16
  %4 = alloca [4096 x i8], align 16
  %5 = alloca [4096 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %class.R3Affine, align 8
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #9
  %10 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %1, i64 noundef 4096) #9
  %11 = call noundef ptr @strrchr(ptr noundef nonnull dereferenceable(1) %3, i32 noundef 46) #10
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %13, label %12

12:                                               ; preds = %2
  store i8 0, ptr %11, align 1, !tbaa !5
  br label %13

13:                                               ; preds = %12, %2
  %14 = call ptr @strncat(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.55, i64 noundef 4096) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #9
  %15 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %1, i64 noundef 4096) #9
  %16 = call noundef ptr @strrchr(ptr noundef nonnull dereferenceable(1) %4, i32 noundef 46) #10
  %.not33 = icmp eq ptr %16, null
  br i1 %.not33, label %18, label %17

17:                                               ; preds = %13
  store i8 0, ptr %16, align 1, !tbaa !5
  br label %18

18:                                               ; preds = %17, %13
  %19 = call ptr @strncat(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.56, i64 noundef 4096) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  %20 = call noundef i32 @_ZL15ReadRawSizeFilePKcRiS1_S1_Pc(ptr noundef nonnull %3, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull %5)
  %.not34 = icmp eq i32 %20, 0
  br i1 %.not34, label %135, label %21

21:                                               ; preds = %18
  %22 = load i32, ptr %6, align 4, !tbaa !8
  %23 = load i32, ptr %7, align 4, !tbaa !8
  %24 = mul nsw i32 %23, %22
  %25 = load i32, ptr %8, align 4, !tbaa !8
  %26 = mul nsw i32 %24, %25
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.57, ptr noundef nonnull %3)
  br label %135

29:                                               ; preds = %21
  %30 = call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.45)
  %.not35 = icmp eq ptr %30, null
  br i1 %.not35, label %31, label %32

31:                                               ; preds = %29
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.58, ptr noundef %1)
  br label %135

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 560
  %34 = load ptr, ptr %33, align 8, !tbaa !10
  %.not36 = icmp eq ptr %34, null
  %35 = getelementptr inbounds i8, ptr %0, i64 588
  %36 = load i32, ptr %35, align 4
  %37 = icmp sgt i32 %26, %36
  %or.cond = select i1 %.not36, i1 true, i1 %37
  br i1 %or.cond, label %38, label %46

38:                                               ; preds = %32
  br i1 %.not36, label %40, label %39

39:                                               ; preds = %38
  call void @_ZdaPv(ptr noundef nonnull %34) #11
  br label %40

40:                                               ; preds = %39, %38
  %41 = sext i32 %26 to i64
  %42 = icmp slt i32 %26, 0
  %43 = shl nsw i64 %41, 3
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = call noalias noundef nonnull ptr @_Znam(i64 noundef %44) #12
  store ptr %45, ptr %33, align 8, !tbaa !10
  br label %46

46:                                               ; preds = %32, %40
  %47 = phi ptr [ %34, %32 ], [ %45, %40 ]
  %48 = load i32, ptr %6, align 4, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %0, i64 568
  store i32 %48, ptr %49, align 8, !tbaa !8
  %50 = load i32, ptr %7, align 4, !tbaa !8
  %51 = getelementptr inbounds i8, ptr %0, i64 572
  store i32 %50, ptr %51, align 4, !tbaa !8
  %52 = load i32, ptr %8, align 4, !tbaa !8
  %53 = getelementptr inbounds i8, ptr %0, i64 576
  store i32 %52, ptr %53, align 8, !tbaa !8
  %54 = getelementptr inbounds i8, ptr %0, i64 580
  store i32 %48, ptr %54, align 4, !tbaa !19
  %55 = mul nsw i32 %50, %48
  %56 = getelementptr inbounds i8, ptr %0, i64 584
  store i32 %55, ptr %56, align 8, !tbaa !20
  %57 = mul nsw i32 %52, %55
  store i32 %57, ptr %35, align 4, !tbaa !21
  %58 = icmp slt i32 %57, 1
  br i1 %58, label %59, label %60

59:                                               ; preds = %46
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.49, i32 noundef %57)
  br label %135

60:                                               ; preds = %46
  %61 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.59) #10
  %.not38 = icmp eq i32 %61, 0
  br i1 %.not38, label %64, label %62

62:                                               ; preds = %60
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.60) #10
  %.not39 = icmp eq i32 %63, 0
  br i1 %.not39, label %64, label %66

64:                                               ; preds = %62, %60
  %65 = call noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not40 = icmp eq i32 %65, 0
  br i1 %.not40, label %135, label %127

66:                                               ; preds = %62
  %67 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.61) #10
  %.not41 = icmp eq i32 %67, 0
  br i1 %.not41, label %70, label %68

68:                                               ; preds = %66
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.62) #10
  %.not42 = icmp eq i32 %69, 0
  br i1 %.not42, label %70, label %72

70:                                               ; preds = %68, %66
  %71 = call noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not43 = icmp eq i32 %71, 0
  br i1 %.not43, label %135, label %127

72:                                               ; preds = %68
  %73 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.42) #10
  %.not44 = icmp eq i32 %73, 0
  br i1 %.not44, label %76, label %74

74:                                               ; preds = %72
  %75 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.63) #10
  %.not45 = icmp eq i32 %75, 0
  br i1 %.not45, label %76, label %78

76:                                               ; preds = %74, %72
  %77 = call noundef i32 @_ZL13ReadRawValuesIfEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not46 = icmp eq i32 %77, 0
  br i1 %.not46, label %135, label %127

78:                                               ; preds = %74
  %79 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.64) #10
  %.not47 = icmp eq i32 %79, 0
  br i1 %.not47, label %80, label %82

80:                                               ; preds = %78
  %81 = call noundef i32 @_ZL13ReadRawValuesImEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not48 = icmp eq i32 %81, 0
  br i1 %.not48, label %135, label %127

82:                                               ; preds = %78
  %83 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.65) #10
  %.not49 = icmp eq i32 %83, 0
  br i1 %.not49, label %86, label %84

84:                                               ; preds = %82
  %85 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.66) #10
  %.not50 = icmp eq i32 %85, 0
  br i1 %.not50, label %86, label %88

86:                                               ; preds = %84, %82
  %87 = call noundef i32 @_ZL13ReadRawValuesIlEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not51 = icmp eq i32 %87, 0
  br i1 %.not51, label %135, label %127

88:                                               ; preds = %84
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.67) #10
  %.not52 = icmp eq i32 %89, 0
  br i1 %.not52, label %92, label %90

90:                                               ; preds = %88
  %91 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.68) #10
  %.not53 = icmp eq i32 %91, 0
  br i1 %.not53, label %92, label %94

92:                                               ; preds = %90, %88
  %93 = call noundef i32 @_ZL13ReadRawValuesIjEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not54 = icmp eq i32 %93, 0
  br i1 %.not54, label %135, label %127

94:                                               ; preds = %90
  %95 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.69) #10
  %.not55 = icmp eq i32 %95, 0
  br i1 %.not55, label %98, label %96

96:                                               ; preds = %94
  %97 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.70) #10
  %.not56 = icmp eq i32 %97, 0
  br i1 %.not56, label %98, label %100

98:                                               ; preds = %96, %94
  %99 = call noundef i32 @_ZL13ReadRawValuesIiEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not57 = icmp eq i32 %99, 0
  br i1 %.not57, label %135, label %127

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

102:                                              ; preds = %100
  %103 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.72) #10
  %.not59 = icmp eq i32 %103, 0
  br i1 %.not59, label %104, label %106

104:                                              ; preds = %102, %100
  %105 = call noundef i32 @_ZL13ReadRawValuesItEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not60 = icmp eq i32 %105, 0
  br i1 %.not60, label %135, label %127

106:                                              ; preds = %102
  %107 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.73) #10
  %.not61 = icmp eq i32 %107, 0
  br i1 %.not61, label %110, label %108

108:                                              ; preds = %106
  %109 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.74) #10
  %.not62 = icmp eq i32 %109, 0
  br i1 %.not62, label %110, label %112

110:                                              ; preds = %108, %106
  %111 = call noundef i32 @_ZL13ReadRawValuesIsEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not63 = icmp eq i32 %111, 0
  br i1 %.not63, label %135, label %127

112:                                              ; preds = %108
  %113 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.75) #10
  %.not64 = icmp eq i32 %113, 0
  br i1 %.not64, label %116, label %114

114:                                              ; preds = %112
  %115 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.76) #10
  %.not65 = icmp eq i32 %115, 0
  br i1 %.not65, label %116, label %118

116:                                              ; preds = %114, %112
  %117 = call noundef i32 @_ZL13ReadRawValuesIhEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not66 = icmp eq i32 %117, 0
  br i1 %.not66, label %135, label %127

118:                                              ; preds = %114
  %119 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.77) #10
  %.not67 = icmp eq i32 %119, 0
  br i1 %.not67, label %122, label %120

120:                                              ; preds = %118
  %121 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.78) #10
  %.not68 = icmp eq i32 %121, 0
  br i1 %.not68, label %122, label %124

122:                                              ; preds = %120, %118
  %123 = call noundef i32 @_ZL13ReadRawValuesIaEiP8_IO_FILEPdi(ptr noundef nonnull %30, ptr noundef nonnull %47, i32 noundef %57)
  %.not69 = icmp eq i32 %123, 0
  br i1 %.not69, label %135, label %127

124:                                              ; preds = %120
  %125 = load ptr, ptr @stderr, align 8, !tbaa !22
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef nonnull @.str.79, ptr noundef nonnull %5, ptr noundef nonnull %3) #13
  br label %135

127:                                              ; preds = %70, %80, %92, %104, %116, %122, %110, %98, %86, %76, %64
  %128 = call i32 @fclose(ptr noundef nonnull %30)
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %9) #9
  call void @_ZN8R3AffineC1Ev(ptr noundef nonnull align 8 dereferenceable(272) %9)
  %129 = invoke noundef i32 @_ZL25ReadRawTransformationFilePKcR8R3Affine(ptr noundef nonnull %4, ptr noundef nonnull align 8 dereferenceable(272) %9)
          to label %130 unwind label %132

130:                                              ; preds = %127
  %.not70 = icmp eq i32 %129, 0
  br i1 %.not70, label %134, label %131

131:                                              ; preds = %130
  invoke void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(272) %9)
          to label %134 unwind label %132

132:                                              ; preds = %131, %127
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %9) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #9
  resume { ptr, i32 } %133

134:                                              ; preds = %131, %130
  call void @_ZN8R3AffineD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %9) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %9) #9
  br label %135

135:                                              ; preds = %28, %122, %116, %110, %104, %98, %92, %86, %80, %76, %70, %64, %134, %124, %59, %31, %18
  %.2 = phi i32 [ 0, %18 ], [ 0, %28 ], [ 0, %59 ], [ 0, %124 ], [ 1, %134 ], [ 0, %31 ], [ 0, %64 ], [ 0, %70 ], [ 0, %76 ], [ 0, %80 ], [ 0, %86 ], [ 0, %92 ], [ 0, %98 ], [ 0, %104 ], [ 0, %110 ], [ 0, %116 ], [ 0, %122 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #9
  ret i32 %.2
}

declare void @_Z6RNFailPKcz(ptr noundef, ...) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15ReadRawSizeFilePKcRiS1_S1_Pc(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIdEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIfEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesImEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIlEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIjEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIiEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesItEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIsEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIhEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13ReadRawValuesIaEiP8_IO_FILEPdi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL25ReadRawTransformationFilePKcR8R3Affine(ptr noundef, ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #6

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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nobuiltin 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 = { 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 #6 = { 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 #7 = { 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 #8 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { builtin nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !18, i64 560}
!11 = !{!"_ZTS6R3Grid", !12, i64 0, !12, i64 272, !17, i64 544, !17, i64 552, !18, i64 560, !6, i64 568, !9, i64 580, !9, i64 584, !9, i64 588}
!12 = !{!"_ZTS8R3Affine", !13, i64 0, !14, i64 8, !14, i64 136, !15, i64 264}
!13 = !{!"_ZTS16R3Transformation"}
!14 = !{!"_ZTS8R4Matrix", !6, i64 0}
!15 = !{!"_ZTS7RNFlags", !16, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = !{!"double", !6, i64 0}
!18 = !{!"any pointer", !6, i64 0}
!19 = !{!11, !9, i64 580}
!20 = !{!11, !9, i64 584}
!21 = !{!11, !9, i64 588}
!22 = !{!18, !18, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass