; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/ABSP1 (abs)

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = 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
  %5 = alloca [10000 x i64], align 16
  %6 = alloca [10000 x i64], align 16
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 80000, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 80000, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %12

12:                                               ; preds = %102, %23, %0
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %2, align 4, !tbaa !5
  %15 = icmp ne i32 %13, 0
  br i1 %15, label %16, label %105

16:                                               ; preds = %12
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %23, label %20

20:                                               ; preds = %16
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %20, %16
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %12, !llvm.loop !9

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %36, %25
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %39

31:                                               ; preds = %26
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [10000 x i64], ptr %5, i64 0, i64 %33
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %34)
  br label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %8, align 4, !tbaa !5
  br label %26, !llvm.loop !11

39:                                               ; preds = %30
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sub nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10000 x i64], ptr %5, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !12
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sub nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [10000 x i64], ptr %6, i64 0, i64 %47
  store i64 %44, ptr %48, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 2
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %69, %39
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = icmp sge i32 %52, 0
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %72

55:                                               ; preds = %51
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [10000 x i64], ptr %6, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !12
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10000 x i64], ptr %5, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !12
  %65 = add nsw i64 %60, %64
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [10000 x i64], ptr %6, i64 0, i64 %67
  store i64 %65, ptr %68, align 8, !tbaa !12
  br label %69

69:                                               ; preds = %55
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %9, align 4, !tbaa !5
  br label %51, !llvm.loop !14

72:                                               ; preds = %54
  store i64 0, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %99, %72
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sub nsw i32 %75, 1
  %77 = icmp slt i32 %74, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %102

79:                                               ; preds = %73
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = sub nsw i32 %80, %81
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10000 x i64], ptr %5, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !12
  %89 = mul nsw i64 %84, %88
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [10000 x i64], ptr %6, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !12
  %95 = sub nsw i64 %89, %94
  %96 = call noundef i64 @_ZSt3absx(i64 noundef %95)
  %97 = load i64, ptr %7, align 8, !tbaa !12
  %98 = add nsw i64 %97, %96
  store i64 %98, ptr %7, align 8, !tbaa !12
  br label %99

99:                                               ; preds = %79
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %10, align 4, !tbaa !5
  br label %73, !llvm.loop !15

102:                                              ; preds = %78
  %103 = load i64, ptr %7, align 8, !tbaa !12
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %103)
  br label %12, !llvm.loop !9

105:                                              ; preds = %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 80000, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 80000, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #3

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


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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [10000 x i64], align 16
  %4 = alloca [10000 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %4) #4
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr %1, align 4, !tbaa !5
  %.not30 = icmp eq i32 %6, 0
  br i1 %.not30, label %._crit_edge33, label %.lr.ph32.preheader

.lr.ph32.preheader:                               ; preds = %0
  %scevgep = getelementptr inbounds i8, ptr %4, i64 8
  br label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32.preheader, %.backedge
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %9 = load i32, ptr %2, align 4
  %or.cond = icmp ult i32 %9, 2
  br i1 %or.cond, label %16, label %.preheader20

.preheader20:                                     ; preds = %.lr.ph32
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader20
  %11 = add nsw i32 %9, -1
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %12
  store i64 %14, ptr %15, align 8, !tbaa !9
  br label %._crit_edge28

16:                                               ; preds = %.lr.ph32
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %.backedge

.backedge:                                        ; preds = %16, %._crit_edge28
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %._crit_edge33, label %.lr.ph32, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph
  %20 = add nsw i32 %37, -1
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %21
  store i64 %23, ptr %24, align 8, !tbaa !9
  %25 = icmp sgt i32 %37, 1
  br i1 %25, label %.lr.ph24.preheader, label %._crit_edge28

.lr.ph24.preheader:                               ; preds = %._crit_edge
  %26 = add nsw i32 %37, -2
  %27 = zext i32 %26 to i64
  %28 = shl nuw nsw i64 %27, 3
  %scevgep47 = getelementptr i8, ptr %scevgep, i64 %28
  %load_initial = load i64, ptr %scevgep47, align 8
  %29 = add nuw nsw i64 %27, 1
  %xtraiter = and i64 %29, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph24.prol.loopexit, label %.lr.ph24.prol

.lr.ph24.prol:                                    ; preds = %.lr.ph24.preheader, %.lr.ph24.prol
  %store_forwarded.prol = phi i64 [ %32, %.lr.ph24.prol ], [ %load_initial, %.lr.ph24.preheader ]
  %indvars.iv37.prol = phi i64 [ %indvars.iv.next38.prol, %.lr.ph24.prol ], [ %27, %.lr.ph24.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph24.prol ], [ 0, %.lr.ph24.preheader ]
  %30 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv37.prol
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %32 = add nsw i64 %31, %store_forwarded.prol
  %33 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv37.prol
  store i64 %32, ptr %33, align 8, !tbaa !9
  %indvars.iv.next38.prol = add nsw i64 %indvars.iv37.prol, -1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph24.prol.loopexit, label %.lr.ph24.prol, !llvm.loop !13

.lr.ph24.prol.loopexit:                           ; preds = %.lr.ph24.prol, %.lr.ph24.preheader
  %store_forwarded.unr = phi i64 [ %load_initial, %.lr.ph24.preheader ], [ %32, %.lr.ph24.prol ]
  %indvars.iv37.unr = phi i64 [ %27, %.lr.ph24.preheader ], [ %indvars.iv.next38.prol, %.lr.ph24.prol ]
  %34 = icmp ult i32 %26, 3
  br i1 %34, label %.preheader, label %.lr.ph24

.lr.ph:                                           ; preds = %.preheader20, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader20 ]
  %35 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !15

.preheader:                                       ; preds = %.lr.ph24, %.lr.ph24.prol.loopexit
  br i1 %25, label %.lr.ph27, label %._crit_edge28

.lr.ph24:                                         ; preds = %.lr.ph24.prol.loopexit, %.lr.ph24
  %store_forwarded = phi i64 [ %54, %.lr.ph24 ], [ %store_forwarded.unr, %.lr.ph24.prol.loopexit ]
  %indvars.iv37 = phi i64 [ %indvars.iv.next38.3, %.lr.ph24 ], [ %indvars.iv37.unr, %.lr.ph24.prol.loopexit ]
  %40 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv37
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = add nsw i64 %41, %store_forwarded
  %43 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv37
  store i64 %42, ptr %43, align 8, !tbaa !9
  %indvars.iv.next38 = add nsw i64 %indvars.iv37, -1
  %44 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv.next38
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = add nsw i64 %45, %42
  %47 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv.next38
  store i64 %46, ptr %47, align 8, !tbaa !9
  %indvars.iv.next38.1 = add nsw i64 %indvars.iv37, -2
  %48 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv.next38.1
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = add nsw i64 %49, %46
  %51 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv.next38.1
  store i64 %50, ptr %51, align 8, !tbaa !9
  %indvars.iv.next38.2 = add nsw i64 %indvars.iv37, -3
  %52 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv.next38.2
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = add nsw i64 %53, %50
  %55 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv.next38.2
  store i64 %54, ptr %55, align 8, !tbaa !9
  %indvars.iv.next38.3 = add nsw i64 %indvars.iv37, -4
  %.not45.3 = icmp eq i64 %indvars.iv.next38.2, 0
  br i1 %.not45.3, label %.preheader, label %.lr.ph24, !llvm.loop !16

._crit_edge28:                                    ; preds = %.lr.ph27, %._crit_edge, %._crit_edge.thread, %.preheader
  %.018.lcssa = phi i64 [ 0, %.preheader ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ], [ %69, %.lr.ph27 ]
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %.018.lcssa)
  br label %.backedge

.lr.ph27:                                         ; preds = %.preheader, %.lr.ph27
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %.lr.ph27 ], [ 0, %.preheader ]
  %57 = phi i32 [ %70, %.lr.ph27 ], [ %37, %.preheader ]
  %.01825 = phi i64 [ %69, %.lr.ph27 ], [ 0, %.preheader ]
  %58 = trunc nuw nsw i64 %indvars.iv40 to i32
  %59 = xor i32 %58, -1
  %60 = add i32 %57, %59
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 %indvars.iv40
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = mul nsw i64 %63, %61
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %65 = getelementptr inbounds [10000 x i64], ptr %4, i64 0, i64 %indvars.iv.next41
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = sub nsw i64 %64, %66
  %68 = call noundef i64 @_ZSt3absx(i64 noundef %67)
  %69 = add nsw i64 %68, %.01825
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next41, %72
  br i1 %73, label %.lr.ph27, label %._crit_edge28, !llvm.loop !17

._crit_edge33:                                    ; preds = %.backedge, %0
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { 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 = { inlinehint mustprogress 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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