program ABC_088_B_CardGameforTwo
   implicit none 
   integer i, m, N, am, countA, countB
   integer(8), allocatable :: a(:)
   read(*, *) N
   allocate (a(1:2*N))
   a(:) = 0
   read(*, *) a(1:N)
   do i = 1, N - 1
      am = maxval(a(i+1:N))
	  m  = maxloc(a(i+1:N), 1) + i
	  if (a(i) < am) then
	      a(m) = a(i)
		  a(i) = am
	  end if
   end do
   countA = 0
   countB = 0
   do i = 1, N
      countA = countA + a(2 * i -1 )
	  countB = countB + a(2 * i)
   end do
   write(*, *)countA-countB
end program ABC_088_B_CardGameforTwo  
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@_QFEa.0 = internal unnamed_addr global ptr null
@_QQcl.34e158e6a6db895a88e55cbabd58d62f = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6257/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %3 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %4 = alloca i32, align 4
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.34e158e6a6db895a88e55cbabd58d62f, i32 5)
  %6 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %4, i32 4)
  %7 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %8 = load i32, ptr %4, align 4, !tbaa !3
  %9 = shl i32 %8, 1
  %10 = call i32 @llvm.smax.i32(i32 %9, i32 0)
  %11 = zext i32 %10 to i64
  %12 = shl nuw nsw i64 %11, 3
  %13 = call ptr @malloc(i64 %12)
  store ptr %13, ptr @_QFEa.0, align 8, !tbaa !7
  %.not = icmp slt i32 %9, 1
  br i1 %.not, label %select.unfold._crit_edge, label %select.unfold.preheader

select.unfold.preheader:                          ; preds = %0
  %14 = shl nuw nsw i64 %11, 3
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 %14, i1 false), !tbaa !3
  br label %select.unfold._crit_edge

select.unfold._crit_edge:                         ; preds = %select.unfold.preheader, %0
  %15 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.34e158e6a6db895a88e55cbabd58d62f, i32 8)
  %.unpack = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %16 = load i32, ptr %4, align 4, !tbaa !3
  %17 = call i32 @llvm.smax.i32(i32 %16, i32 0)
  %18 = zext i32 %17 to i64
  store ptr %.unpack, ptr %2, align 8, !tbaa !7
  %.fca.1.gep116 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 1
  store i64 8, ptr %.fca.1.gep116, align 8, !tbaa !7
  %.fca.2.gep118 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep118, align 8, !tbaa !7
  %.fca.3.gep120 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep120, align 4, !tbaa !7
  %.fca.4.gep122 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 10, ptr %.fca.4.gep122, align 1, !tbaa !7
  %.fca.5.gep124 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep124, align 2, !tbaa !7
  %.fca.6.gep126 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep126, align 1, !tbaa !7
  %.fca.7.0.0.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep, align 8, !tbaa !7
  %.fca.7.0.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 1
  store i64 %18, ptr %.fca.7.0.1.gep, align 8, !tbaa !7
  %.fca.7.0.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 2
  store i64 8, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %19 = call i1 @_FortranAioInputDescriptor(ptr %15, ptr nonnull %2)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %15)
  %21 = load i32, ptr %4, align 4, !tbaa !3
  %22 = add i32 %21, -1
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph509, label %._crit_edge

.lr.ph509:                                        ; preds = %select.unfold._crit_edge
  %24 = zext i32 %22 to i64
  %.fca.1.gep273 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  %.fca.2.gep275 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  %.fca.3.gep277 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  %.fca.4.gep279 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  %.fca.5.gep281 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  %.fca.6.gep283 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  %.fca.7.0.0.gep285 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep287 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep289 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 2
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 4
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 5
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 6
  %.unpack460.pre = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  br label %25

25:                                               ; preds = %.lr.ph509, %61
  %.unpack460 = phi ptr [ %.unpack460.pre, %.lr.ph509 ], [ %.unpack484, %61 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph509 ], [ %indvars.iv.next, %61 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %sext528 = shl i64 %indvars.iv.next, 32
  %26 = ashr exact i64 %sext528, 32
  %27 = load i32, ptr %4, align 4, !tbaa !3
  %28 = sext i32 %27 to i64
  %29 = add nsw i64 %26, -1
  %30 = sub nsw i64 %28, %26
  %31 = call i64 @llvm.smax.i64(i64 %30, i64 -1)
  %32 = add nsw i64 %31, 1
  %33 = getelementptr i64, ptr %.unpack460, i64 %29
  %.not508 = icmp eq i64 %32, 0
  br i1 %.not508, label %_FortranAMaxvalInteger8x1_contract_simplified.exit, label %.lr.ph.i.preheader

.lr.ph.i.preheader:                               ; preds = %25
  %min.iters.check = icmp ult i64 %32, 4
  br i1 %min.iters.check, label %.lr.ph.i.preheader536, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.i.preheader
  %n.vec = and i64 %32, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ <i64 -9223372036854775808, i64 -9223372036854775808>, %vector.ph ], [ %37, %vector.body ]
  %vec.phi533 = phi <2 x i64> [ <i64 -9223372036854775808, i64 -9223372036854775808>, %vector.ph ], [ %38, %vector.body ]
  %34 = shl i64 %index, 3
  %35 = getelementptr i8, ptr %33, i64 %34
  %wide.load = load <2 x i64>, ptr %35, align 8, !tbaa !3
  %36 = getelementptr i64, ptr %35, i64 2
  %wide.load534 = load <2 x i64>, ptr %36, align 8, !tbaa !3
  %37 = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %wide.load, <2 x i64> %vec.phi)
  %38 = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %wide.load534, <2 x i64> %vec.phi533)
  %index.next = add nuw i64 %index, 4
  %39 = icmp eq i64 %index.next, %n.vec
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %rdx.minmax.select = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %37, <2 x i64> %38)
  %40 = call i64 @llvm.vector.reduce.smax.v2i64(<2 x i64> %rdx.minmax.select)
  %cmp.n = icmp eq i64 %32, %n.vec
  br i1 %cmp.n, label %_FortranAMaxvalInteger8x1_contract_simplified.exit, label %.lr.ph.i.preheader536

.lr.ph.i.preheader536:                            ; preds = %.lr.ph.i.preheader, %middle.block
  %.ph = phi i64 [ -9223372036854775808, %.lr.ph.i.preheader ], [ %40, %middle.block ]
  %.ph537 = phi i64 [ 0, %.lr.ph.i.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.lr.ph.i.preheader536, %.lr.ph.i
  %41 = phi i64 [ %46, %.lr.ph.i ], [ %.ph, %.lr.ph.i.preheader536 ]
  %42 = phi i64 [ %47, %.lr.ph.i ], [ %.ph537, %.lr.ph.i.preheader536 ]
  %43 = shl i64 %42, 3
  %44 = getelementptr i8, ptr %33, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !3
  %46 = call i64 @llvm.smax.i64(i64 %45, i64 %41)
  %47 = add nuw nsw i64 %42, 1
  %exitcond.not.i = icmp eq i64 %42, %31
  br i1 %exitcond.not.i, label %_FortranAMaxvalInteger8x1_contract_simplified.exit, label %.lr.ph.i, !llvm.loop !12

_FortranAMaxvalInteger8x1_contract_simplified.exit: ; preds = %.lr.ph.i, %middle.block, %25
  %.lcssa.i = phi i64 [ -9223372036854775808, %25 ], [ %40, %middle.block ], [ %46, %.lr.ph.i ]
  store ptr %33, ptr %1, align 8, !tbaa !7
  store i64 8, ptr %.fca.1.gep273, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep275, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep277, align 4, !tbaa !7
  store i8 10, ptr %.fca.4.gep279, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep281, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep283, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep285, align 8, !tbaa !7
  store i64 %32, ptr %.fca.7.0.1.gep287, align 8, !tbaa !7
  store i64 8, ptr %.fca.7.0.2.gep289, align 8, !tbaa !7
  store ptr null, ptr %3, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !7
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep, align 1, !tbaa !7
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !7
  %48 = call {} @_FortranAMaxlocDim(ptr nonnull %3, ptr nonnull %1, i32 4, i32 1, ptr nonnull @_QQcl.34e158e6a6db895a88e55cbabd58d62f, i32 11, ptr null, i1 false)
  %.fca.0.load = load ptr, ptr %3, align 8, !tbaa !7
  %49 = load i32, ptr %.fca.0.load, align 4, !tbaa !3
  call void @free(ptr %.fca.0.load)
  %.unpack484 = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %50 = add nsw i64 %indvars.iv, -1
  %51 = getelementptr i64, ptr %.unpack484, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !3
  %sext = shl i64 %.lcssa.i, 32
  %53 = ashr exact i64 %sext, 32
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %55, label %61

55:                                               ; preds = %_FortranAMaxvalInteger8x1_contract_simplified.exit
  %56 = trunc i64 %indvars.iv to i32
  %57 = add i32 %49, %56
  %58 = sext i32 %57 to i64
  %59 = add nsw i64 %58, -1
  %60 = getelementptr i64, ptr %.unpack484, i64 %59
  store i64 %52, ptr %60, align 8, !tbaa !3
  store i64 %53, ptr %51, align 8, !tbaa !3
  br label %61

61:                                               ; preds = %55, %_FortranAMaxvalInteger8x1_contract_simplified.exit
  %exitcond.not = icmp eq i64 %indvars.iv, %24
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %25

._crit_edge.loopexit:                             ; preds = %61
  %.pre = load i32, ptr %4, align 4, !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %select.unfold._crit_edge
  %62 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %21, %select.unfold._crit_edge ]
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.lr.ph513, label %._crit_edge514

.lr.ph513:                                        ; preds = %._crit_edge
  %64 = zext i32 %62 to i64
  %.unpack448 = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %xtraiter = and i64 %64, 1
  %65 = icmp eq i32 %62, 1
  br i1 %65, label %._crit_edge514.loopexit.unr-lcssa, label %.lr.ph513.new

.lr.ph513.new:                                    ; preds = %.lr.ph513
  %unroll_iter = and i64 %64, 4294967294
  br label %66

66:                                               ; preds = %66, %.lr.ph513.new
  %indvars.iv520 = phi i64 [ 1, %.lr.ph513.new ], [ %indvars.iv.next521.1, %66 ]
  %.0511 = phi i32 [ 0, %.lr.ph513.new ], [ %87, %66 ]
  %.0422510 = phi i32 [ 0, %.lr.ph513.new ], [ %94, %66 ]
  %niter = phi i64 [ 0, %.lr.ph513.new ], [ %niter.next.1, %66 ]
  %67 = shl i64 %indvars.iv520, 33
  %sext527 = add nsw i64 %67, -4294967296
  %68 = ashr exact i64 %sext527, 32
  %69 = add nsw i64 %68, -1
  %70 = getelementptr i64, ptr %.unpack448, i64 %69
  %71 = load i64, ptr %70, align 8, !tbaa !3
  %72 = trunc i64 %71 to i32
  %73 = add i32 %.0511, %72
  %indvars.iv520.tr = trunc i64 %indvars.iv520 to i32
  %74 = shl i32 %indvars.iv520.tr, 1
  %75 = sext i32 %74 to i64
  %76 = add nsw i64 %75, -1
  %77 = getelementptr i64, ptr %.unpack448, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !3
  %79 = trunc i64 %78 to i32
  %80 = add i32 %.0422510, %79
  %indvars.iv.next521 = add nuw nsw i64 %indvars.iv520, 1
  %81 = shl i64 %indvars.iv.next521, 33
  %sext527.1 = add i64 %81, -4294967296
  %82 = ashr exact i64 %sext527.1, 32
  %83 = add nsw i64 %82, -1
  %84 = getelementptr i64, ptr %.unpack448, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !3
  %86 = trunc i64 %85 to i32
  %87 = add i32 %73, %86
  %indvars.iv520.tr.1 = trunc i64 %indvars.iv.next521 to i32
  %88 = shl i32 %indvars.iv520.tr.1, 1
  %89 = sext i32 %88 to i64
  %90 = add nsw i64 %89, -1
  %91 = getelementptr i64, ptr %.unpack448, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !3
  %93 = trunc i64 %92 to i32
  %94 = add i32 %80, %93
  %indvars.iv.next521.1 = add nuw nsw i64 %indvars.iv520, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge514.loopexit.unr-lcssa, label %66

._crit_edge514.loopexit.unr-lcssa:                ; preds = %66, %.lr.ph513
  %.lcssa535.ph = phi i32 [ undef, %.lr.ph513 ], [ %87, %66 ]
  %.lcssa.ph = phi i32 [ undef, %.lr.ph513 ], [ %94, %66 ]
  %indvars.iv520.unr = phi i64 [ 1, %.lr.ph513 ], [ %indvars.iv.next521.1, %66 ]
  %.0511.unr = phi i32 [ 0, %.lr.ph513 ], [ %87, %66 ]
  %.0422510.unr = phi i32 [ 0, %.lr.ph513 ], [ %94, %66 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge514, label %._crit_edge514.loopexit.epilog-lcssa

._crit_edge514.loopexit.epilog-lcssa:             ; preds = %._crit_edge514.loopexit.unr-lcssa
  %95 = shl i64 %indvars.iv520.unr, 33
  %sext527.epil = add i64 %95, -4294967296
  %96 = ashr exact i64 %sext527.epil, 32
  %97 = add nsw i64 %96, -1
  %98 = getelementptr i64, ptr %.unpack448, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !3
  %100 = trunc i64 %99 to i32
  %101 = add i32 %.0511.unr, %100
  %indvars.iv520.tr.epil = trunc i64 %indvars.iv520.unr to i32
  %102 = shl i32 %indvars.iv520.tr.epil, 1
  %103 = sext i32 %102 to i64
  %104 = add nsw i64 %103, -1
  %105 = getelementptr i64, ptr %.unpack448, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !3
  %107 = trunc i64 %106 to i32
  %108 = add i32 %.0422510.unr, %107
  br label %._crit_edge514

._crit_edge514:                                   ; preds = %._crit_edge514.loopexit.epilog-lcssa, %._crit_edge514.loopexit.unr-lcssa, %._crit_edge
  %.0422.lcssa = phi i32 [ 0, %._crit_edge ], [ %.lcssa.ph, %._crit_edge514.loopexit.unr-lcssa ], [ %108, %._crit_edge514.loopexit.epilog-lcssa ]
  %.0.lcssa = phi i32 [ 0, %._crit_edge ], [ %.lcssa535.ph, %._crit_edge514.loopexit.unr-lcssa ], [ %101, %._crit_edge514.loopexit.epilog-lcssa ]
  %109 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.34e158e6a6db895a88e55cbabd58d62f, i32 23)
  %110 = sub i32 %.0.lcssa, %.0422.lcssa
  %111 = call i1 @_FortranAioOutputInteger32(ptr %109, i32 %110)
  %112 = call i32 @_FortranAioEndIoStatement(ptr %109)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare i1 @_FortranAioInputDescriptor(ptr, ptr) local_unnamed_addr

declare {} @_FortranAMaxlocDim(ptr, ptr, i32, i32, ptr, i32, ptr, i1) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.smax.v2i64(<2 x i64>, <2 x i64>) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.vector.reduce.smax.v2i64(<2 x i64>) #5

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(none) }

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

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"descriptor member", !5, i64 0}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !11, !10}
