; LLVM IR from tangjz/acm-icpc :: TDL_training/2016-03-20 (E - Unique element - lzy)

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

@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 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
  store i32 0, ptr %1, align 4
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %6 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %6, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  br label %7

7:                                                ; preds = %52, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = add nsw i32 %8, 2
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %12, label %53

12:                                               ; preds = %7
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = add nsw i32 %13, %14
  %16 = sdiv i32 %15, 2
  store i32 %16, ptr %4, align 4, !tbaa !5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
  %19 = load ptr, ptr @stdout, align 8, !tbaa !9
  %20 = call i32 @fflush(ptr noundef %19)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a)
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
  %25 = load ptr, ptr @stdout, align 8, !tbaa !9
  %26 = call i32 @fflush(ptr noundef %25)
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @b)
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = and i32 %28, 1
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %42

31:                                               ; preds = %12
  %32 = load i32, ptr @a, align 4, !tbaa !5
  %33 = load i32, ptr @b, align 4, !tbaa !5
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %38

35:                                               ; preds = %31
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = add nsw i32 %36, 2
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %41

38:                                               ; preds = %31
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %38, %35
  br label %52

42:                                               ; preds = %12
  %43 = load i32, ptr @a, align 4, !tbaa !5
  %44 = load i32, ptr @b, align 4, !tbaa !5
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sub nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %51

49:                                               ; preds = %42
  %50 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %50, ptr %2, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %49, %46
  br label %52

52:                                               ; preds = %51, %41
  br label %7, !llvm.loop !11

53:                                               ; preds = %7
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = icmp eq i32 %54, %55
  br i1 %56, label %57, label %65

57:                                               ; preds = %53
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %58)
  %60 = load ptr, ptr @stdout, align 8, !tbaa !9
  %61 = call i32 @fflush(ptr noundef %60)
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a)
  %63 = load i32, ptr @a, align 4, !tbaa !5
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %63)
  br label %170

65:                                               ; preds = %53
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = icmp eq i32 %67, %68
  br i1 %69, label %70, label %102

70:                                               ; preds = %65
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %71)
  %73 = load ptr, ptr @stdout, align 8, !tbaa !9
  %74 = call i32 @fflush(ptr noundef %73)
  %75 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a)
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %76)
  %78 = load ptr, ptr @stdout, align 8, !tbaa !9
  %79 = call i32 @fflush(ptr noundef %78)
  %80 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @b)
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = and i32 %81, 1
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %70
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  br label %90

87:                                               ; preds = %70
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  br label %90

90:                                               ; preds = %87, %84
  %91 = phi i32 [ %86, %84 ], [ %89, %87 ]
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %91)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !9
  %94 = call i32 @fflush(ptr noundef %93)
  %95 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @c)
  %96 = load i32, ptr @a, align 4, !tbaa !5
  %97 = load i32, ptr @b, align 4, !tbaa !5
  %98 = xor i32 %96, %97
  %99 = load i32, ptr @c, align 4, !tbaa !5
  %100 = xor i32 %98, %99
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %100)
  br label %169

102:                                              ; preds = %65
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = and i32 %103, 1
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %129

106:                                              ; preds = %102
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %107)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !9
  %110 = call i32 @fflush(ptr noundef %109)
  %111 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a)
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %112)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !9
  %115 = call i32 @fflush(ptr noundef %114)
  %116 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @b)
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %118)
  %120 = load ptr, ptr @stdout, align 8, !tbaa !9
  %121 = call i32 @fflush(ptr noundef %120)
  %122 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @c)
  %123 = load i32, ptr @a, align 4, !tbaa !5
  %124 = load i32, ptr @b, align 4, !tbaa !5
  %125 = xor i32 %123, %124
  %126 = load i32, ptr @c, align 4, !tbaa !5
  %127 = xor i32 %125, %126
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %127)
  br label %168

129:                                              ; preds = %102
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %130)
  %132 = load ptr, ptr @stdout, align 8, !tbaa !9
  %133 = call i32 @fflush(ptr noundef %132)
  %134 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a)
  %135 = load i32, ptr %3, align 4, !tbaa !5
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %135)
  %137 = load ptr, ptr @stdout, align 8, !tbaa !9
  %138 = call i32 @fflush(ptr noundef %137)
  %139 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @b)
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %141)
  %143 = load ptr, ptr @stdout, align 8, !tbaa !9
  %144 = call i32 @fflush(ptr noundef %143)
  %145 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @c)
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = sub nsw i32 %146, 1
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %147)
  %149 = load ptr, ptr @stdout, align 8, !tbaa !9
  %150 = call i32 @fflush(ptr noundef %149)
  %151 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @d)
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %153)
  %155 = load ptr, ptr @stdout, align 8, !tbaa !9
  %156 = call i32 @fflush(ptr noundef %155)
  %157 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @e)
  %158 = load i32, ptr @a, align 4, !tbaa !5
  %159 = load i32, ptr @b, align 4, !tbaa !5
  %160 = xor i32 %158, %159
  %161 = load i32, ptr @c, align 4, !tbaa !5
  %162 = xor i32 %160, %161
  %163 = load i32, ptr @d, align 4, !tbaa !5
  %164 = xor i32 %162, %163
  %165 = load i32, ptr @e, align 4, !tbaa !5
  %166 = xor i32 %164, %165
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %166)
  br label %168

168:                                              ; preds = %129, %106
  br label %169

169:                                              ; preds = %168, %90
  br label %170

170:                                              ; preds = %169, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  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

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

declare i32 @fflush(ptr noundef) #1

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

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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 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, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 3
  br i1 %3, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %23
  %.039 = phi i32 [ %.1, %23 ], [ 1, %0 ]
  %.03038 = phi i32 [ %.131, %23 ], [ %2, %0 ]
  %4 = add nuw nsw i32 %.039, %.03038
  %5 = lshr i32 %4, 1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %5)
  %7 = load ptr, ptr @stdout, align 8, !tbaa !9
  %8 = tail call i32 @fflush(ptr noundef %7)
  %9 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a)
  %10 = add nuw nsw i32 %5, 1
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %10)
  %12 = load ptr, ptr @stdout, align 8, !tbaa !9
  %13 = tail call i32 @fflush(ptr noundef %12)
  %14 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @b)
  %15 = and i32 %4, 2
  %.not34 = icmp eq i32 %15, 0
  %16 = load i32, ptr @a, align 4, !tbaa !5
  %17 = load i32, ptr @b, align 4, !tbaa !5
  %18 = icmp eq i32 %16, %17
  br i1 %.not34, label %21, label %19

19:                                               ; preds = %.lr.ph
  %20 = add nuw nsw i32 %5, 2
  %spec.select = select i1 %18, i32 %.03038, i32 %10
  %spec.select35 = select i1 %18, i32 %20, i32 %.039
  br label %23

21:                                               ; preds = %.lr.ph
  %22 = add nsw i32 %5, -1
  %spec.select36 = select i1 %18, i32 %22, i32 %.03038
  %spec.select37 = select i1 %18, i32 %.039, i32 %5
  br label %23

23:                                               ; preds = %21, %19
  %.131 = phi i32 [ %spec.select, %19 ], [ %spec.select36, %21 ]
  %.1 = phi i32 [ %spec.select35, %19 ], [ %spec.select37, %21 ]
  %24 = add nuw nsw i32 %.1, 2
  %25 = icmp slt i32 %24, %.131
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %23, %0
  %.030.lcssa = phi i32 [ %2, %0 ], [ %.131, %23 ]
  %.0.lcssa = phi i32 [ 1, %0 ], [ %.1, %23 ]
  %26 = icmp eq i32 %.0.lcssa, %.030.lcssa
  br i1 %26, label %27, label %33

27:                                               ; preds = %._crit_edge
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.030.lcssa)
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  %30 = tail call i32 @fflush(ptr noundef %29)
  %31 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a)
  %32 = load i32, ptr @a, align 4, !tbaa !5
  br label %98

33:                                               ; preds = %._crit_edge
  %34 = add nuw nsw i32 %.0.lcssa, 1
  %35 = icmp eq i32 %34, %.030.lcssa
  br i1 %35, label %36, label %58

36:                                               ; preds = %33
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.0.lcssa)
  %38 = load ptr, ptr @stdout, align 8, !tbaa !9
  %39 = tail call i32 @fflush(ptr noundef %38)
  %40 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a)
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.030.lcssa)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !9
  %43 = tail call i32 @fflush(ptr noundef %42)
  %44 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @b)
  %45 = and i32 %.0.lcssa, 1
  %.not33 = icmp eq i32 %45, 0
  %46 = add nuw nsw i32 %.030.lcssa, 1
  %47 = add nsw i32 %.0.lcssa, -1
  %48 = select i1 %.not33, i32 %47, i32 %46
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %48)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !9
  %51 = tail call i32 @fflush(ptr noundef %50)
  %52 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c)
  %53 = load i32, ptr @a, align 4, !tbaa !5
  %54 = load i32, ptr @b, align 4, !tbaa !5
  %55 = xor i32 %54, %53
  %56 = load i32, ptr @c, align 4, !tbaa !5
  %57 = xor i32 %55, %56
  br label %98

58:                                               ; preds = %33
  %59 = and i32 %.0.lcssa, 1
  %.not = icmp eq i32 %59, 0
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.0.lcssa)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !9
  %62 = tail call i32 @fflush(ptr noundef %61)
  %63 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a)
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.030.lcssa)
  %65 = load ptr, ptr @stdout, align 8, !tbaa !9
  %66 = tail call i32 @fflush(ptr noundef %65)
  %67 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @b)
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %34)
  %69 = load ptr, ptr @stdout, align 8, !tbaa !9
  %70 = tail call i32 @fflush(ptr noundef %69)
  %71 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c)
  br i1 %.not, label %78, label %72

72:                                               ; preds = %58
  %73 = load i32, ptr @a, align 4, !tbaa !5
  %74 = load i32, ptr @b, align 4, !tbaa !5
  %75 = xor i32 %74, %73
  %76 = load i32, ptr @c, align 4, !tbaa !5
  %77 = xor i32 %75, %76
  br label %98

78:                                               ; preds = %58
  %79 = add nsw i32 %.0.lcssa, -1
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %79)
  %81 = load ptr, ptr @stdout, align 8, !tbaa !9
  %82 = tail call i32 @fflush(ptr noundef %81)
  %83 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @d)
  %84 = add nsw i32 %.030.lcssa, 1
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !9
  %87 = tail call i32 @fflush(ptr noundef %86)
  %88 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @e)
  %89 = load i32, ptr @a, align 4, !tbaa !5
  %90 = load i32, ptr @b, align 4, !tbaa !5
  %91 = xor i32 %90, %89
  %92 = load i32, ptr @c, align 4, !tbaa !5
  %93 = xor i32 %91, %92
  %94 = load i32, ptr @d, align 4, !tbaa !5
  %95 = xor i32 %93, %94
  %96 = load i32, ptr @e, align 4, !tbaa !5
  %97 = xor i32 %95, %96
  br label %98

98:                                               ; preds = %36, %78, %72, %27
  %.sink = phi i32 [ %57, %36 ], [ %97, %78 ], [ %77, %72 ], [ %32, %27 ]
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.sink)
  ret i32 0
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) 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" }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass