; LLVM IR from paroj/gltut :: glsdk/freeglut/progs/demos/Fractals (fractals)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.AffineTrans = type { double, double, double, double, double, double, double, double }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@window_title = external dso_local global [80 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@num_trans = external hidden global i32, align 4
@affine = external hidden global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @readConfigFile(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [256 x i8], align 16
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = call noalias ptr @fopen(ptr noundef %11, ptr noundef @.str)
  store ptr %12, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #6
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %79

15:                                               ; preds = %1
  %16 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %16, i32 noundef 256, ptr noundef %17)
  %18 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %18, i32 noundef 256, ptr noundef %19)
  %20 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %20, i32 noundef 256, ptr noundef %21)
  %22 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %23 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %22, ptr noundef @.str.1, ptr noundef @window_title) #6
  %24 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %24, i32 noundef 256, ptr noundef %25)
  %26 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %26, i32 noundef 256, ptr noundef %27)
  %28 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %29 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %28, ptr noundef @.str.2, ptr noundef @num_trans) #6
  %30 = load i32, ptr @num_trans, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 64
  %33 = call noalias ptr @malloc(i64 noundef %32) #7
  store ptr %33, ptr @affine, align 8, !tbaa !5
  %34 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %34, i32 noundef 256, ptr noundef %35)
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %75, %15
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = load i32, ptr @num_trans, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %78

40:                                               ; preds = %36
  %41 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @checkedFGets(ptr noundef %41, i32 noundef 256, ptr noundef %42)
  %43 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %44 = load ptr, ptr @affine, align 8, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %struct.AffineTrans, ptr %44, i64 %46
  %48 = getelementptr inbounds %struct.AffineTrans, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr @affine, align 8, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.AffineTrans, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.AffineTrans, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr @affine, align 8, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.AffineTrans, ptr %54, i64 %56
  %58 = getelementptr inbounds %struct.AffineTrans, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr @affine, align 8, !tbaa !5
  %60 = load i32, ptr %4, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.AffineTrans, ptr %59, i64 %61
  %63 = getelementptr inbounds %struct.AffineTrans, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr @affine, align 8, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.AffineTrans, ptr %64, i64 %66
  %68 = getelementptr inbounds %struct.AffineTrans, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr @affine, align 8, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.AffineTrans, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.AffineTrans, ptr %72, i32 0, i32 5
  %74 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %43, ptr noundef @.str.3, ptr noundef %48, ptr noundef %53, ptr noundef %58, ptr noundef %63, ptr noundef %68, ptr noundef %73) #6
  br label %75

75:                                               ; preds = %40
  %76 = load i32, ptr %4, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %4, align 4, !tbaa !9
  br label %36, !llvm.loop !11

78:                                               ; preds = %36
  br label %123

79:                                               ; preds = %1
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %80)
  %82 = call ptr @strcpy(ptr noundef @window_title, ptr noundef @.str.5) #6
  store i32 2, ptr @num_trans, align 4, !tbaa !9
  %83 = load i32, ptr @num_trans, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = mul i64 %84, 64
  %86 = call noalias ptr @malloc(i64 noundef %85) #7
  store ptr %86, ptr @affine, align 8, !tbaa !5
  %87 = load ptr, ptr @affine, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.AffineTrans, ptr %87, i64 0
  %89 = getelementptr inbounds %struct.AffineTrans, ptr %88, i32 0, i32 0
  store double 2.500000e-01, ptr %89, align 8, !tbaa !13
  %90 = load ptr, ptr @affine, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.AffineTrans, ptr %90, i64 0
  %92 = getelementptr inbounds %struct.AffineTrans, ptr %91, i32 0, i32 1
  store double 0.000000e+00, ptr %92, align 8, !tbaa !16
  %93 = load ptr, ptr @affine, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.AffineTrans, ptr %93, i64 0
  %95 = getelementptr inbounds %struct.AffineTrans, ptr %94, i32 0, i32 2
  store double 0.000000e+00, ptr %95, align 8, !tbaa !17
  %96 = load ptr, ptr @affine, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.AffineTrans, ptr %96, i64 0
  %98 = getelementptr inbounds %struct.AffineTrans, ptr %97, i32 0, i32 3
  store double 2.500000e-01, ptr %98, align 8, !tbaa !18
  %99 = load ptr, ptr @affine, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.AffineTrans, ptr %99, i64 0
  %101 = getelementptr inbounds %struct.AffineTrans, ptr %100, i32 0, i32 4
  store double 0.000000e+00, ptr %101, align 8, !tbaa !19
  %102 = load ptr, ptr @affine, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.AffineTrans, ptr %102, i64 0
  %104 = getelementptr inbounds %struct.AffineTrans, ptr %103, i32 0, i32 5
  store double 0.000000e+00, ptr %104, align 8, !tbaa !20
  %105 = load ptr, ptr @affine, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.AffineTrans, ptr %105, i64 1
  %107 = getelementptr inbounds %struct.AffineTrans, ptr %106, i32 0, i32 0
  store double 2.500000e-01, ptr %107, align 8, !tbaa !13
  %108 = load ptr, ptr @affine, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.AffineTrans, ptr %108, i64 1
  %110 = getelementptr inbounds %struct.AffineTrans, ptr %109, i32 0, i32 1
  store double 0.000000e+00, ptr %110, align 8, !tbaa !16
  %111 = load ptr, ptr @affine, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.AffineTrans, ptr %111, i64 1
  %113 = getelementptr inbounds %struct.AffineTrans, ptr %112, i32 0, i32 2
  store double 0.000000e+00, ptr %113, align 8, !tbaa !17
  %114 = load ptr, ptr @affine, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.AffineTrans, ptr %114, i64 1
  %116 = getelementptr inbounds %struct.AffineTrans, ptr %115, i32 0, i32 3
  store double 2.500000e-01, ptr %116, align 8, !tbaa !18
  %117 = load ptr, ptr @affine, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.AffineTrans, ptr %117, i64 1
  %119 = getelementptr inbounds %struct.AffineTrans, ptr %118, i32 0, i32 4
  store double 5.000000e-01, ptr %119, align 8, !tbaa !19
  %120 = load ptr, ptr @affine, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.AffineTrans, ptr %120, i64 1
  %122 = getelementptr inbounds %struct.AffineTrans, ptr %121, i32 0, i32 5
  store double 0.000000e+00, ptr %122, align 8, !tbaa !20
  br label %123

123:                                              ; preds = %79, %78
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %228, %123
  %125 = load i32, ptr %4, align 4, !tbaa !9
  %126 = load i32, ptr @num_trans, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %231

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %129 = load ptr, ptr @affine, align 8, !tbaa !5
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %struct.AffineTrans, ptr %129, i64 %131
  %133 = getelementptr inbounds %struct.AffineTrans, ptr %132, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = fsub double 1.000000e+00, %134
  store double %135, ptr %6, align 8, !tbaa !21
  %136 = load ptr, ptr @affine, align 8, !tbaa !5
  %137 = load i32, ptr %4, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %struct.AffineTrans, ptr %136, i64 %138
  %140 = getelementptr inbounds %struct.AffineTrans, ptr %139, i32 0, i32 1
  %141 = load double, ptr %140, align 8, !tbaa !16
  %142 = fneg double %141
  store double %142, ptr %7, align 8, !tbaa !21
  %143 = load ptr, ptr @affine, align 8, !tbaa !5
  %144 = load i32, ptr %4, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds %struct.AffineTrans, ptr %143, i64 %145
  %147 = getelementptr inbounds %struct.AffineTrans, ptr %146, i32 0, i32 2
  %148 = load double, ptr %147, align 8, !tbaa !17
  %149 = fneg double %148
  store double %149, ptr %8, align 8, !tbaa !21
  %150 = load ptr, ptr @affine, align 8, !tbaa !5
  %151 = load i32, ptr %4, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %struct.AffineTrans, ptr %150, i64 %152
  %154 = getelementptr inbounds %struct.AffineTrans, ptr %153, i32 0, i32 3
  %155 = load double, ptr %154, align 8, !tbaa !18
  %156 = fsub double 1.000000e+00, %155
  store double %156, ptr %9, align 8, !tbaa !21
  %157 = load double, ptr %6, align 8, !tbaa !21
  %158 = load double, ptr %9, align 8, !tbaa !21
  %159 = load double, ptr %7, align 8, !tbaa !21
  %160 = load double, ptr %8, align 8, !tbaa !21
  %161 = fmul double %159, %160
  %162 = fneg double %161
  %163 = call double @llvm.fmuladd.f64(double %157, double %158, double %162)
  store double %163, ptr %10, align 8, !tbaa !21
  %164 = load double, ptr %10, align 8, !tbaa !21
  %165 = call double @llvm.fabs.f64(double %164)
  %166 = fcmp ogt double %165, 0x3EB0C6F7A0B5ED8D
  br i1 %166, label %167, label %216

167:                                              ; preds = %128
  %168 = load double, ptr %9, align 8, !tbaa !21
  %169 = load ptr, ptr @affine, align 8, !tbaa !5
  %170 = load i32, ptr %4, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.AffineTrans, ptr %169, i64 %171
  %173 = getelementptr inbounds %struct.AffineTrans, ptr %172, i32 0, i32 4
  %174 = load double, ptr %173, align 8, !tbaa !19
  %175 = load double, ptr %7, align 8, !tbaa !21
  %176 = load ptr, ptr @affine, align 8, !tbaa !5
  %177 = load i32, ptr %4, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.AffineTrans, ptr %176, i64 %178
  %180 = getelementptr inbounds %struct.AffineTrans, ptr %179, i32 0, i32 5
  %181 = load double, ptr %180, align 8, !tbaa !20
  %182 = fmul double %175, %181
  %183 = fneg double %182
  %184 = call double @llvm.fmuladd.f64(double %168, double %174, double %183)
  %185 = load double, ptr %10, align 8, !tbaa !21
  %186 = fdiv double %184, %185
  %187 = load ptr, ptr @affine, align 8, !tbaa !5
  %188 = load i32, ptr %4, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds %struct.AffineTrans, ptr %187, i64 %189
  %191 = getelementptr inbounds %struct.AffineTrans, ptr %190, i32 0, i32 6
  store double %186, ptr %191, align 8, !tbaa !22
  %192 = load double, ptr %8, align 8, !tbaa !21
  %193 = fneg double %192
  %194 = load ptr, ptr @affine, align 8, !tbaa !5
  %195 = load i32, ptr %4, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds %struct.AffineTrans, ptr %194, i64 %196
  %198 = getelementptr inbounds %struct.AffineTrans, ptr %197, i32 0, i32 4
  %199 = load double, ptr %198, align 8, !tbaa !19
  %200 = load double, ptr %6, align 8, !tbaa !21
  %201 = load ptr, ptr @affine, align 8, !tbaa !5
  %202 = load i32, ptr %4, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %struct.AffineTrans, ptr %201, i64 %203
  %205 = getelementptr inbounds %struct.AffineTrans, ptr %204, i32 0, i32 5
  %206 = load double, ptr %205, align 8, !tbaa !20
  %207 = fmul double %200, %206
  %208 = call double @llvm.fmuladd.f64(double %193, double %199, double %207)
  %209 = load double, ptr %10, align 8, !tbaa !21
  %210 = fdiv double %208, %209
  %211 = load ptr, ptr @affine, align 8, !tbaa !5
  %212 = load i32, ptr %4, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %struct.AffineTrans, ptr %211, i64 %213
  %215 = getelementptr inbounds %struct.AffineTrans, ptr %214, i32 0, i32 7
  store double %210, ptr %215, align 8, !tbaa !23
  br label %227

216:                                              ; preds = %128
  %217 = load ptr, ptr @affine, align 8, !tbaa !5
  %218 = load i32, ptr %4, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.AffineTrans, ptr %217, i64 %219
  %221 = getelementptr inbounds %struct.AffineTrans, ptr %220, i32 0, i32 7
  store double 0.000000e+00, ptr %221, align 8, !tbaa !23
  %222 = load ptr, ptr @affine, align 8, !tbaa !5
  %223 = load i32, ptr %4, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %struct.AffineTrans, ptr %222, i64 %224
  %226 = getelementptr inbounds %struct.AffineTrans, ptr %225, i32 0, i32 6
  store double 0.000000e+00, ptr %226, align 8, !tbaa !22
  br label %227

227:                                              ; preds = %216, %167
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %4, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %4, align 4, !tbaa !9
  br label %124, !llvm.loop !24

231:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @checkedFGets(ptr noundef, i32 noundef, ptr noundef) #0

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

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

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !15, i64 24}
!19 = !{!14, !15, i64 32}
!20 = !{!14, !15, i64 40}
!21 = !{!15, !15, i64 0}
!22 = !{!14, !15, i64 48}
!23 = !{!14, !15, i64 56}
!24 = distinct !{!24, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.AffineTrans = type { double, double, double, double, double, double, double, double }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@window_title = external dso_local global [80 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@num_trans = external hidden global i32, align 4
@affine = external hidden local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @readConfigFile(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [256 x i8], align 16
  %3 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #7
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.loopexit.thread, label %4

4:                                                ; preds = %1
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %5 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.1, ptr noundef nonnull @window_title) #7
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %6 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @num_trans) #7
  %7 = load i32, ptr @num_trans, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = shl nsw i64 %8, 6
  %10 = call noalias ptr @malloc(i64 noundef %9) #8
  store ptr %10, ptr @affine, align 8, !tbaa !9
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %11 = load i32, ptr @num_trans, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %4 ]
  call void @checkedFGets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %13 = load ptr, ptr @affine, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.AffineTrans, ptr %13, i64 %indvars.iv
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = getelementptr inbounds i8, ptr %14, i64 16
  %17 = getelementptr inbounds i8, ptr %14, i64 24
  %18 = getelementptr inbounds i8, ptr %14, i64 32
  %19 = getelementptr inbounds i8, ptr %14, i64 40
  %20 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.3, ptr noundef %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr @num_trans, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %indvars.iv.next, %22
  br i1 %23, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit.thread:                                 ; preds = %1
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %0)
  %25 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @window_title, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  store i32 2, ptr @num_trans, align 4, !tbaa !5
  %26 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #8
  store ptr %26, ptr @affine, align 8, !tbaa !9
  store double 2.500000e-01, ptr %26, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = getelementptr inbounds i8, ptr %26, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 0, i64 16, i1 false)
  store double 2.500000e-01, ptr %28, align 8, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %26, i64 32
  %30 = getelementptr inbounds i8, ptr %26, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %29, i8 0, i64 16, i1 false)
  store double 2.500000e-01, ptr %30, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %26, i64 72
  %32 = getelementptr inbounds i8, ptr %26, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %31, i8 0, i64 16, i1 false)
  store <2 x double> <double 2.500000e-01, double 5.000000e-01>, ptr %32, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %26, i64 104
  store double 0.000000e+00, ptr %33, align 8, !tbaa !18
  br label %.lr.ph45

.loopexit:                                        ; preds = %.lr.ph
  %34 = icmp sgt i32 %21, 0
  br i1 %34, label %.lr.ph45, label %._crit_edge

.lr.ph45:                                         ; preds = %.loopexit.thread, %.loopexit
  %35 = phi i32 [ 2, %.loopexit.thread ], [ %21, %.loopexit ]
  %36 = load ptr, ptr @affine, align 8, !tbaa !9
  %wide.trip.count = zext nneg i32 %35 to i64
  br label %37

37:                                               ; preds = %.lr.ph45, %67
  %indvars.iv47 = phi i64 [ 0, %.lr.ph45 ], [ %indvars.iv.next48, %67 ]
  %38 = getelementptr inbounds %struct.AffineTrans, ptr %36, i64 %indvars.iv47
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = fsub double 1.000000e+00, %39
  %41 = getelementptr inbounds i8, ptr %38, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %38, i64 16
  %44 = load double, ptr %43, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %38, i64 24
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = fsub double 1.000000e+00, %46
  %48 = fneg double %42
  %49 = fmul double %44, %48
  %50 = call double @llvm.fmuladd.f64(double %40, double %47, double %49)
  %51 = call double @llvm.fabs.f64(double %50)
  %52 = fcmp ogt double %51, 0x3EB0C6F7A0B5ED8D
  br i1 %52, label %53, label %65

53:                                               ; preds = %37
  %54 = getelementptr inbounds i8, ptr %38, i64 32
  %55 = load double, ptr %54, align 8, !tbaa !21
  %56 = getelementptr inbounds i8, ptr %38, i64 40
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = fmul double %42, %57
  %59 = call double @llvm.fmuladd.f64(double %47, double %55, double %58)
  %60 = fdiv double %59, %50
  %61 = getelementptr inbounds i8, ptr %38, i64 48
  store double %60, ptr %61, align 8, !tbaa !22
  %62 = fmul double %40, %57
  %63 = call double @llvm.fmuladd.f64(double %44, double %55, double %62)
  %64 = fdiv double %63, %50
  br label %67

65:                                               ; preds = %37
  %66 = getelementptr inbounds %struct.AffineTrans, ptr %36, i64 %indvars.iv47, i32 6
  store double 0.000000e+00, ptr %66, align 8, !tbaa !22
  br label %67

67:                                               ; preds = %65, %53
  %.sink = phi double [ %64, %53 ], [ 0.000000e+00, %65 ]
  %68 = getelementptr inbounds i8, ptr %38, i64 56
  store double %.sink, ptr %68, align 8
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %37, !llvm.loop !23

._crit_edge:                                      ; preds = %67, %4, %.loopexit
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #7
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @checkedFGets(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 24}
!17 = !{!15, !15, i64 0}
!18 = !{!14, !15, i64 40}
!19 = !{!14, !15, i64 8}
!20 = !{!14, !15, i64 16}
!21 = !{!14, !15, i64 32}
!22 = !{!14, !15, i64 48}
!23 = distinct !{!23, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,MergedLoadStoreMotionPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass