; LLVM IR from tangjz/acm-icpc :: poj (3299)

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

@S = external dso_local global ptr, align 8
@x = external dso_local global [3 x double], align 16
@vis = external dso_local global [3 x i8], align 1
@op = external dso_local global [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %6

6:                                                ; preds = %136, %0
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @op)
  %8 = icmp ne i32 %7, -1
  br i1 %8, label %9, label %137

9:                                                ; preds = %6
  %10 = load i8, ptr @op, align 1, !tbaa !5
  %11 = sext i8 %10 to i32
  %12 = icmp eq i32 %11, 69
  br i1 %12, label %13, label %14

13:                                               ; preds = %9
  br label %137

14:                                               ; preds = %9
  store i8 0, ptr getelementptr inbounds ([3 x i8], ptr @vis, i64 0, i64 2), align 1, !tbaa !8
  store i8 0, ptr getelementptr inbounds ([3 x i8], ptr @vis, i64 0, i64 1), align 1, !tbaa !8
  store i8 0, ptr @vis, align 1, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !10
  br label %15

15:                                               ; preds = %38, %14
  %16 = load i32, ptr %2, align 4, !tbaa !10
  %17 = icmp slt i32 %16, 3
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 4, ptr %3, align 4
  br label %41

19:                                               ; preds = %15
  %20 = load i8, ptr @op, align 1, !tbaa !5
  %21 = sext i8 %20 to i32
  %22 = load ptr, ptr @S, align 8, !tbaa !12
  %23 = load i32, ptr %2, align 4, !tbaa !10
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %22, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !5
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %21, %27
  br i1 %28, label %29, label %37

29:                                               ; preds = %19
  %30 = load i32, ptr %2, align 4, !tbaa !10
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds double, ptr @x, i64 %31
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %32)
  %34 = load i32, ptr %2, align 4, !tbaa !10
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [3 x i8], ptr @vis, i64 0, i64 %35
  store i8 1, ptr %36, align 1, !tbaa !8
  store i32 4, ptr %3, align 4
  br label %41

37:                                               ; preds = %19
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %2, align 4, !tbaa !10
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !10
  br label %15, !llvm.loop !14

41:                                               ; preds = %29, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %42

42:                                               ; preds = %41
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @op)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !10
  br label %44

44:                                               ; preds = %67, %42
  %45 = load i32, ptr %4, align 4, !tbaa !10
  %46 = icmp slt i32 %45, 3
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 7, ptr %3, align 4
  br label %70

48:                                               ; preds = %44
  %49 = load i8, ptr @op, align 1, !tbaa !5
  %50 = sext i8 %49 to i32
  %51 = load ptr, ptr @S, align 8, !tbaa !12
  %52 = load i32, ptr %4, align 4, !tbaa !10
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %51, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %50, %56
  br i1 %57, label %58, label %66

58:                                               ; preds = %48
  %59 = load i32, ptr %4, align 4, !tbaa !10
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr @x, i64 %60
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %61)
  %63 = load i32, ptr %4, align 4, !tbaa !10
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [3 x i8], ptr @vis, i64 0, i64 %64
  store i8 1, ptr %65, align 1, !tbaa !8
  store i32 7, ptr %3, align 4
  br label %70

66:                                               ; preds = %48
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %4, align 4, !tbaa !10
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !10
  br label %44, !llvm.loop !16

70:                                               ; preds = %58, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %71

71:                                               ; preds = %70
  %72 = load i8, ptr @vis, align 1, !tbaa !8, !range !17, !noundef !18
  %73 = trunc i8 %72 to i1
  br i1 %73, label %84, label %74

74:                                               ; preds = %71
  %75 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !19
  %76 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !19
  %77 = fadd double %76, 2.731600e+02
  %78 = fdiv double 1.000000e+00, %77
  %79 = fsub double 0x3F6DFD603AC7A821, %78
  %80 = fmul double 0x40B529C0C49BA5E3, %79
  %81 = call double @exp(double noundef %80) #5
  %82 = call double @llvm.fmuladd.f64(double 6.110000e+00, double %81, double -1.000000e+01)
  %83 = call double @llvm.fmuladd.f64(double -5.555000e-01, double %82, double %75)
  store double %83, ptr @x, align 16, !tbaa !19
  br label %110

84:                                               ; preds = %71
  %85 = load i8, ptr getelementptr inbounds ([3 x i8], ptr @vis, i64 0, i64 1), align 1, !tbaa !8, !range !17, !noundef !18
  %86 = trunc i8 %85 to i1
  br i1 %86, label %99, label %87

87:                                               ; preds = %84
  %88 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !19
  %89 = load double, ptr @x, align 16, !tbaa !19
  %90 = fsub double %88, %89
  %91 = fdiv double %90, 5.550000e-01
  %92 = fadd double %91, 1.000000e+01
  %93 = fdiv double %92, 6.110000e+00
  %94 = call double @log(double noundef %93) #5
  %95 = fdiv double %94, 0x40B529C0C49BA5E3
  %96 = fsub double 0x3F6DFD603AC7A821, %95
  %97 = fdiv double 1.000000e+00, %96
  %98 = fsub double %97, 2.731600e+02
  store double %98, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !19
  br label %109

99:                                               ; preds = %84
  %100 = load double, ptr @x, align 16, !tbaa !19
  %101 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !19
  %102 = fadd double %101, 2.731600e+02
  %103 = fdiv double 1.000000e+00, %102
  %104 = fsub double 0x3F6DFD603AC7A821, %103
  %105 = fmul double 0x40B529C0C49BA5E3, %104
  %106 = call double @exp(double noundef %105) #5
  %107 = call double @llvm.fmuladd.f64(double 6.110000e+00, double %106, double -1.000000e+01)
  %108 = call double @llvm.fmuladd.f64(double 5.555000e-01, double %107, double %100)
  store double %108, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !19
  br label %109

109:                                              ; preds = %99, %87
  br label %110

110:                                              ; preds = %109, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !10
  br label %111

111:                                              ; preds = %133, %110
  %112 = load i32, ptr %5, align 4, !tbaa !10
  %113 = icmp slt i32 %112, 3
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %136

115:                                              ; preds = %111
  %116 = load ptr, ptr @S, align 8, !tbaa !12
  %117 = load i32, ptr %5, align 4, !tbaa !10
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %121 = sext i8 %120 to i32
  %122 = load i32, ptr %5, align 4, !tbaa !10
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [3 x double], ptr @x, i64 0, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !19
  %126 = load i32, ptr %5, align 4, !tbaa !10
  %127 = icmp eq i32 %126, 2
  %128 = zext i1 %127 to i64
  %129 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !5
  %131 = sext i8 %130 to i32
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %121, double noundef %125, i32 noundef %131)
  br label %133

133:                                              ; preds = %115
  %134 = load i32, ptr %5, align 4, !tbaa !10
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %5, align 4, !tbaa !10
  br label %111, !llvm.loop !21

136:                                              ; preds = %114
  br label %6, !llvm.loop !22

137:                                              ; preds = %13, %6
  ret i32 0
}

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #3

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

; Function Attrs: nounwind
declare double @log(double noundef) #3

declare i32 @printf(ptr noundef, ...) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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

@S = external dso_local local_unnamed_addr global ptr, align 8
@x = external dso_local global [3 x double], align 16
@vis = external dso_local local_unnamed_addr global [3 x i8], align 1
@op = external dso_local global [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @op)
  %2 = icmp eq i32 %1, -1
  %3 = load i8, ptr @op, align 1
  %4 = icmp eq i8 %3, 69
  %or.cond25 = select i1 %2, i1 true, i1 %4
  br i1 %or.cond25, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %5 = load i8, ptr @.str.4, align 1
  %6 = sext i8 %5 to i32
  %7 = load i8, ptr getelementptr inbounds (i8, ptr @.str.4, i64 1), align 1
  %8 = sext i8 %7 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.loopexit
  %9 = phi i8 [ %98, %.loopexit ], [ %3, %.lr.ph.preheader ]
  store i8 0, ptr getelementptr inbounds (i8, ptr @vis, i64 2), align 1, !tbaa !5
  store i8 0, ptr getelementptr inbounds (i8, ptr @vis, i64 1), align 1, !tbaa !5
  store i8 0, ptr @vis, align 1, !tbaa !5
  %10 = load ptr, ptr @S, align 8, !tbaa !9
  %11 = load i8, ptr %10, align 1, !tbaa !11
  %12 = icmp eq i8 %9, %11
  br i1 %12, label %21, label %13

13:                                               ; preds = %.lr.ph
  %14 = getelementptr inbounds i8, ptr %10, i64 1
  %15 = load i8, ptr %14, align 1, !tbaa !11
  %16 = icmp eq i8 %9, %15
  br i1 %16, label %21, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %10, i64 2
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = icmp eq i8 %9, %19
  br i1 %20, label %21, label %.loopexit20

21:                                               ; preds = %17, %13, %.lr.ph
  %.lcssa = phi i64 [ 0, %.lr.ph ], [ 1, %13 ], [ 2, %17 ]
  %22 = getelementptr inbounds double, ptr @x, i64 %.lcssa
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %22)
  %24 = getelementptr inbounds [3 x i8], ptr @vis, i64 0, i64 %.lcssa
  store i8 1, ptr %24, align 1, !tbaa !5
  br label %.loopexit20

.loopexit20:                                      ; preds = %17, %21
  %25 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @op)
  %26 = load i8, ptr @op, align 1, !tbaa !11
  %27 = load ptr, ptr @S, align 8, !tbaa !9
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = icmp eq i8 %26, %28
  br i1 %29, label %38, label %30

30:                                               ; preds = %.loopexit20
  %31 = getelementptr inbounds i8, ptr %27, i64 1
  %32 = load i8, ptr %31, align 1, !tbaa !11
  %33 = icmp eq i8 %26, %32
  br i1 %33, label %38, label %34

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %27, i64 2
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = icmp eq i8 %26, %36
  br i1 %37, label %38, label %.loopexit19

38:                                               ; preds = %34, %30, %.loopexit20
  %.lcssa27 = phi i64 [ 0, %.loopexit20 ], [ 1, %30 ], [ 2, %34 ]
  %39 = getelementptr inbounds double, ptr @x, i64 %.lcssa27
  %40 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %39)
  %41 = getelementptr inbounds [3 x i8], ptr @vis, i64 0, i64 %.lcssa27
  store i8 1, ptr %41, align 1, !tbaa !5
  br label %.loopexit19

.loopexit19:                                      ; preds = %34, %38
  %42 = load i8, ptr @vis, align 1, !tbaa !5, !range !12, !noundef !13
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %54, label %44

44:                                               ; preds = %.loopexit19
  %45 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !14
  %46 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 8, !tbaa !14
  %47 = fadd double %46, 2.731600e+02
  %48 = fdiv double 1.000000e+00, %47
  %49 = fsub double 0x3F6DFD603AC7A821, %48
  %50 = fmul double %49, 0x40B529C0C49BA5E3
  %51 = tail call double @exp(double noundef %50) #4
  %52 = tail call double @llvm.fmuladd.f64(double %51, double 6.110000e+00, double -1.000000e+01)
  %53 = tail call double @llvm.fmuladd.f64(double %52, double -5.555000e-01, double %45)
  store double %53, ptr @x, align 16, !tbaa !14
  br label %.loopexit

54:                                               ; preds = %.loopexit19
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @vis, i64 1), align 1, !tbaa !5, !range !12, !noundef !13
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %69, label %57

57:                                               ; preds = %54
  %58 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !14
  %59 = load double, ptr @x, align 16, !tbaa !14
  %60 = fsub double %58, %59
  %61 = fdiv double %60, 5.550000e-01
  %62 = fadd double %61, 1.000000e+01
  %63 = fdiv double %62, 6.110000e+00
  %64 = tail call double @log(double noundef %63) #4
  %65 = fdiv double %64, 0x40B529C0C49BA5E3
  %66 = fsub double 0x3F6DFD603AC7A821, %65
  %67 = fdiv double 1.000000e+00, %66
  %68 = fadd double %67, -2.731600e+02
  store double %68, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 8, !tbaa !14
  br label %.loopexit

69:                                               ; preds = %54
  %70 = load double, ptr @x, align 16, !tbaa !14
  %71 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 8, !tbaa !14
  %72 = fadd double %71, 2.731600e+02
  %73 = fdiv double 1.000000e+00, %72
  %74 = fsub double 0x3F6DFD603AC7A821, %73
  %75 = fmul double %74, 0x40B529C0C49BA5E3
  %76 = tail call double @exp(double noundef %75) #4
  %77 = tail call double @llvm.fmuladd.f64(double %76, double 6.110000e+00, double -1.000000e+01)
  %78 = tail call double @llvm.fmuladd.f64(double %77, double 5.555000e-01, double %70)
  store double %78, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !14
  br label %.loopexit

.loopexit:                                        ; preds = %57, %69, %44
  %79 = load ptr, ptr @S, align 8, !tbaa !9
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = load double, ptr @x, align 16, !tbaa !14
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %81, double noundef %82, i32 noundef %6)
  %84 = load ptr, ptr @S, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 1
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = sext i8 %86 to i32
  %88 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 8, !tbaa !14
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %87, double noundef %88, i32 noundef %6)
  %90 = load ptr, ptr @S, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %90, i64 2
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = sext i8 %92 to i32
  %94 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !14
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %93, double noundef %94, i32 noundef %8)
  %96 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @op)
  %97 = icmp eq i32 %96, -1
  %98 = load i8, ptr @op, align 1
  %99 = icmp eq i8 %98, 69
  %or.cond = select i1 %97, i1 true, i1 %99
  br i1 %or.cond, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) 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: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nofree norecurse 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 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass