; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/1021 (main)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca [6 x i32], align 16
  %5 = alloca [6 x i32], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 24, i1 false)
  br label %6

6:                                                ; preds = %15, %0
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %8

8:                                                ; preds = %6
  %9 = load float, ptr %2, align 4, !tbaa !5
  %10 = fcmp ole float %9, 0.000000e+00
  br i1 %10, label %11, label %15

11:                                               ; preds = %8
  %12 = load float, ptr %2, align 4, !tbaa !5
  %13 = fpext float %12 to double
  %14 = fcmp oge double %13, 1.000000e+06
  br label %15

15:                                               ; preds = %11, %8
  %16 = phi i1 [ false, %8 ], [ %14, %11 ]
  br i1 %16, label %6, label %17, !llvm.loop !9

17:                                               ; preds = %15
  %18 = load float, ptr %2, align 4, !tbaa !5
  %19 = fdiv float %18, 1.000000e+02
  %20 = fptosi float %19 to i32
  %21 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  store i32 %20, ptr %21, align 16, !tbaa !11
  %22 = load float, ptr %2, align 4, !tbaa !5
  %23 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %24 = load i32, ptr %23, align 16, !tbaa !11
  %25 = mul nsw i32 %24, 100
  %26 = sitofp i32 %25 to float
  %27 = fsub float %22, %26
  store float %27, ptr %2, align 4, !tbaa !5
  %28 = load float, ptr %2, align 4, !tbaa !5
  %29 = fdiv float %28, 5.000000e+01
  %30 = fptosi float %29 to i32
  %31 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 1
  store i32 %30, ptr %31, align 4, !tbaa !11
  %32 = load float, ptr %2, align 4, !tbaa !5
  %33 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 1
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = mul nsw i32 %34, 50
  %36 = sitofp i32 %35 to float
  %37 = fsub float %32, %36
  store float %37, ptr %2, align 4, !tbaa !5
  %38 = load float, ptr %2, align 4, !tbaa !5
  %39 = fdiv float %38, 2.000000e+01
  %40 = fptosi float %39 to i32
  %41 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 2
  store i32 %40, ptr %41, align 8, !tbaa !11
  %42 = load float, ptr %2, align 4, !tbaa !5
  %43 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 2
  %44 = load i32, ptr %43, align 8, !tbaa !11
  %45 = mul nsw i32 %44, 20
  %46 = sitofp i32 %45 to float
  %47 = fsub float %42, %46
  store float %47, ptr %2, align 4, !tbaa !5
  %48 = load float, ptr %2, align 4, !tbaa !5
  %49 = fdiv float %48, 1.000000e+01
  %50 = fptosi float %49 to i32
  %51 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 3
  store i32 %50, ptr %51, align 4, !tbaa !11
  %52 = load float, ptr %2, align 4, !tbaa !5
  %53 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 3
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = mul nsw i32 %54, 10
  %56 = sitofp i32 %55 to float
  %57 = fsub float %52, %56
  store float %57, ptr %2, align 4, !tbaa !5
  %58 = load float, ptr %2, align 4, !tbaa !5
  %59 = fdiv float %58, 5.000000e+00
  %60 = fptosi float %59 to i32
  %61 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 4
  store i32 %60, ptr %61, align 16, !tbaa !11
  %62 = load float, ptr %2, align 4, !tbaa !5
  %63 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 4
  %64 = load i32, ptr %63, align 16, !tbaa !11
  %65 = mul nsw i32 %64, 5
  %66 = sitofp i32 %65 to float
  %67 = fsub float %62, %66
  store float %67, ptr %2, align 4, !tbaa !5
  %68 = load float, ptr %2, align 4, !tbaa !5
  %69 = fdiv float %68, 2.000000e+00
  %70 = fptosi float %69 to i32
  %71 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 5
  store i32 %70, ptr %71, align 4, !tbaa !11
  %72 = load float, ptr %2, align 4, !tbaa !5
  %73 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 5
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = mul nsw i32 %74, 2
  %76 = sitofp i32 %75 to float
  %77 = fsub float %72, %76
  store float %77, ptr %2, align 4, !tbaa !5
  %78 = load float, ptr %2, align 4, !tbaa !5
  %79 = fpext float %78 to double
  %80 = fadd double %79, 1.000000e-03
  %81 = fptrunc double %80 to float
  store float %81, ptr %2, align 4, !tbaa !5
  %82 = load float, ptr %2, align 4, !tbaa !5
  %83 = fdiv float %82, 1.000000e+00
  %84 = fptosi float %83 to i32
  %85 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 0
  store i32 %84, ptr %85, align 16, !tbaa !11
  %86 = load float, ptr %2, align 4, !tbaa !5
  %87 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 0
  %88 = load i32, ptr %87, align 16, !tbaa !11
  %89 = mul nsw i32 %88, 1
  %90 = sitofp i32 %89 to float
  %91 = fsub float %86, %90
  store float %91, ptr %2, align 4, !tbaa !5
  %92 = load float, ptr %2, align 4, !tbaa !5
  %93 = fpext float %92 to double
  %94 = fdiv double %93, 5.000000e-01
  %95 = fptosi double %94 to i32
  %96 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 1
  store i32 %95, ptr %96, align 4, !tbaa !11
  %97 = load float, ptr %2, align 4, !tbaa !5
  %98 = fpext float %97 to double
  %99 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 1
  %100 = load i32, ptr %99, align 4, !tbaa !11
  %101 = sitofp i32 %100 to double
  %102 = fneg double %101
  %103 = call double @llvm.fmuladd.f64(double %102, double 5.000000e-01, double %98)
  %104 = fptrunc double %103 to float
  store float %104, ptr %2, align 4, !tbaa !5
  %105 = load float, ptr %2, align 4, !tbaa !5
  %106 = fpext float %105 to double
  %107 = fdiv double %106, 2.500000e-01
  %108 = fptosi double %107 to i32
  %109 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 2
  store i32 %108, ptr %109, align 8, !tbaa !11
  %110 = load float, ptr %2, align 4, !tbaa !5
  %111 = fpext float %110 to double
  %112 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 2
  %113 = load i32, ptr %112, align 8, !tbaa !11
  %114 = sitofp i32 %113 to double
  %115 = fneg double %114
  %116 = call double @llvm.fmuladd.f64(double %115, double 2.500000e-01, double %111)
  %117 = fptrunc double %116 to float
  store float %117, ptr %2, align 4, !tbaa !5
  %118 = load float, ptr %2, align 4, !tbaa !5
  %119 = fpext float %118 to double
  %120 = fdiv double %119, 1.000000e-01
  %121 = fptosi double %120 to i32
  %122 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 3
  store i32 %121, ptr %122, align 4, !tbaa !11
  %123 = load float, ptr %2, align 4, !tbaa !5
  %124 = fpext float %123 to double
  %125 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 3
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = sitofp i32 %126 to double
  %128 = fneg double %127
  %129 = call double @llvm.fmuladd.f64(double %128, double 1.000000e-01, double %124)
  %130 = fptrunc double %129 to float
  store float %130, ptr %2, align 4, !tbaa !5
  %131 = load float, ptr %2, align 4, !tbaa !5
  %132 = fpext float %131 to double
  %133 = fdiv double %132, 5.000000e-02
  %134 = fptosi double %133 to i32
  %135 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 4
  store i32 %134, ptr %135, align 16, !tbaa !11
  %136 = load float, ptr %2, align 4, !tbaa !5
  %137 = fpext float %136 to double
  %138 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 4
  %139 = load i32, ptr %138, align 16, !tbaa !11
  %140 = sitofp i32 %139 to double
  %141 = fneg double %140
  %142 = call double @llvm.fmuladd.f64(double %141, double 5.000000e-02, double %137)
  %143 = fptrunc double %142 to float
  store float %143, ptr %2, align 4, !tbaa !5
  %144 = load float, ptr %2, align 4, !tbaa !5
  %145 = fpext float %144 to double
  %146 = fdiv double %145, 1.000000e-02
  %147 = fptosi double %146 to i32
  %148 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 5
  store i32 %147, ptr %148, align 4, !tbaa !11
  %149 = load float, ptr %2, align 4, !tbaa !5
  %150 = fpext float %149 to double
  %151 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 5
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = sitofp i32 %152 to double
  %154 = fneg double %153
  %155 = call double @llvm.fmuladd.f64(double %154, double 1.000000e-02, double %150)
  %156 = fptrunc double %155 to float
  store float %156, ptr %2, align 4, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %159 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %160 = load i32, ptr %159, align 16, !tbaa !11
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %160)
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef @.str.2)
  %163 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 1
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %164)
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @.str.3)
  %167 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 2
  %168 = load i32, ptr %167, align 8, !tbaa !11
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %168)
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef @.str.4)
  %171 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 3
  %172 = load i32, ptr %171, align 4, !tbaa !11
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %172)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef @.str.5)
  %175 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 4
  %176 = load i32, ptr %175, align 16, !tbaa !11
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %176)
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @.str.6)
  %179 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 5
  %180 = load i32, ptr %179, align 4, !tbaa !11
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %180)
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef @.str.7)
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %185 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 0
  %186 = load i32, ptr %185, align 16, !tbaa !11
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %186)
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @.str.9)
  %189 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 1
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %190)
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @.str.10)
  %193 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 2
  %194 = load i32, ptr %193, align 8, !tbaa !11
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %194)
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef @.str.11)
  %197 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 3
  %198 = load i32, ptr %197, align 4, !tbaa !11
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %198)
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef @.str.12)
  %201 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 4
  %202 = load i32, ptr %201, align 16, !tbaa !11
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %202)
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef @.str.13)
  %205 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 5
  %206 = load i32, ptr %205, align 4, !tbaa !11
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %206)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef @.str.14)
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  ret i32 0
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

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

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  br label %2

2:                                                ; preds = %2, %0
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %4 = load float, ptr %1, align 4
  %5 = fcmp ole float %4, 0.000000e+00
  %6 = fcmp oge float %4, 1.000000e+06
  %7 = and i1 %5, %6
  br i1 %7, label %2, label %8, !llvm.loop !5

8:                                                ; preds = %2
  %9 = fdiv float %4, 1.000000e+02
  %10 = fptosi float %9 to i32
  %11 = mul nsw i32 %10, 100
  %12 = sitofp i32 %11 to float
  %13 = fsub float %4, %12
  %14 = fdiv float %13, 5.000000e+01
  %15 = fptosi float %14 to i32
  %16 = mul nsw i32 %15, 50
  %17 = sitofp i32 %16 to float
  %18 = fsub float %13, %17
  %19 = fdiv float %18, 2.000000e+01
  %20 = fptosi float %19 to i32
  %21 = mul nsw i32 %20, 20
  %22 = sitofp i32 %21 to float
  %23 = fsub float %18, %22
  %24 = fdiv float %23, 1.000000e+01
  %25 = fptosi float %24 to i32
  %26 = mul nsw i32 %25, 10
  %27 = sitofp i32 %26 to float
  %28 = fsub float %23, %27
  %29 = fdiv float %28, 5.000000e+00
  %30 = fptosi float %29 to i32
  %31 = mul nsw i32 %30, 5
  %32 = sitofp i32 %31 to float
  %33 = fsub float %28, %32
  %34 = fmul float %33, 5.000000e-01
  %35 = fptosi float %34 to i32
  %36 = shl nsw i32 %35, 1
  %37 = sitofp i32 %36 to float
  %38 = fsub float %33, %37
  %39 = fpext float %38 to double
  %40 = fadd double %39, 1.000000e-03
  %41 = fptrunc double %40 to float
  %42 = fptosi float %41 to i32
  %43 = sitofp i32 %42 to float
  %44 = fsub float %41, %43
  %45 = fpext float %44 to double
  %46 = fmul double %45, 2.000000e+00
  %47 = fptosi double %46 to i32
  %48 = sitofp i32 %47 to double
  %49 = fneg double %48
  %50 = call double @llvm.fmuladd.f64(double %49, double 5.000000e-01, double %45)
  %51 = fptrunc double %50 to float
  %52 = fpext float %51 to double
  %53 = fmul double %52, 4.000000e+00
  %54 = fptosi double %53 to i32
  %55 = sitofp i32 %54 to double
  %56 = fneg double %55
  %57 = call double @llvm.fmuladd.f64(double %56, double 2.500000e-01, double %52)
  %58 = fptrunc double %57 to float
  %59 = fpext float %58 to double
  %60 = fdiv double %59, 1.000000e-01
  %61 = fptosi double %60 to i32
  %62 = sitofp i32 %61 to double
  %63 = fneg double %62
  %64 = call double @llvm.fmuladd.f64(double %63, double 1.000000e-01, double %59)
  %65 = fptrunc double %64 to float
  %66 = fpext float %65 to double
  %67 = fdiv double %66, 5.000000e-02
  %68 = fptosi double %67 to i32
  %69 = sitofp i32 %68 to double
  %70 = fneg double %69
  %71 = call double @llvm.fmuladd.f64(double %70, double 5.000000e-02, double %66)
  %72 = fptrunc double %71 to float
  %73 = fpext float %72 to double
  %74 = fdiv double %73, 1.000000e-02
  %75 = fptosi double %74 to i32
  %76 = sitofp i32 %75 to double
  %77 = fneg double %76
  %78 = call double @llvm.fmuladd.f64(double %77, double 1.000000e-02, double %73)
  %79 = fptrunc double %78 to float
  store float %79, ptr %1, align 4, !tbaa !7
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %10)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.2)
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %15)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @.str.3)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %20)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.4)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %25)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @.str.5)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %30)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @.str.6)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %35)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.7)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @.str.9)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %47)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @.str.10)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %54)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.11)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %61)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @.str.12)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %68)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.13)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %75)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @.str.14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #6

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

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


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