program RainFlowsintoDams
    implicit none
    integer(4):: n, i
    integer(8), allocatable:: a(:), ans(:)

    read*, n
    allocate(a(n), ans(n))
    read*, a(:)

    ans(:) = 0
    ans(1) = sum(a) - 2*sum(a(2:n:2))

    do i=2,n
        ans(i) = 2*a(i-1) - ans(i-1)
    end do

    print*, ans(:)

end program RainFlowsintoDams
; 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
@_QFEa.8 = internal unnamed_addr global i64 0
@_QFEans.0 = internal unnamed_addr global ptr null
@_QFEans.8 = internal unnamed_addr global i64 0
@_QQcl.599c118b5222b20a9d5e6ac52ce5ab60 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_3831/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

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 i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.599c118b5222b20a9d5e6ac52ce5ab60, i32 6)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %7 = load i32, ptr %3, align 4, !tbaa !3
  %8 = call i32 @llvm.smax.i32(i32 %7, i32 0)
  %9 = zext i32 %8 to i64
  %10 = shl nuw nsw i64 %9, 3
  %11 = call ptr @malloc(i64 %10)
  store ptr %11, ptr @_QFEa.0, align 8, !tbaa !7
  store i64 %9, ptr @_QFEa.8, align 8, !tbaa !7
  %12 = call ptr @malloc(i64 %10)
  store ptr %12, ptr @_QFEans.0, align 8, !tbaa !7
  store i64 %9, ptr @_QFEans.8, align 8, !tbaa !7
  %13 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.599c118b5222b20a9d5e6ac52ce5ab60, i32 8)
  %.unpack = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %.unpack374.unpack.unpack376 = load i64, ptr @_QFEa.8, align 8, !tbaa !7
  %14 = call i64 @llvm.smax.i64(i64 %.unpack374.unpack.unpack376, i64 0)
  store ptr %.unpack, ptr %2, align 8, !tbaa !7
  %.fca.1.gep = 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.gep, align 8, !tbaa !7
  %.fca.2.gep = 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.gep, align 8, !tbaa !7
  %.fca.3.gep = 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.gep, align 4, !tbaa !7
  %.fca.4.gep = 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.gep, align 1, !tbaa !7
  %.fca.5.gep = 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.gep, align 2, !tbaa !7
  %.fca.6.gep = 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.gep, 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 %14, 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
  %15 = call i1 @_FortranAioInputDescriptor(ptr %13, ptr nonnull %2)
  %16 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %.unpack379 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack386.unpack.unpack388 = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  %.not480 = icmp slt i64 %.unpack386.unpack.unpack388, 1
  br i1 %.not480, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %17 = shl nuw i64 %.unpack386.unpack.unpack388, 3
  call void @llvm.memset.p0.i64(ptr align 8 %.unpack379, i8 0, i64 %17, i1 false), !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %0
  %.unpack391 = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %.unpack398.unpack.unpack400 = load i64, ptr @_QFEa.8, align 8, !tbaa !7
  %18 = icmp sgt i64 %.unpack398.unpack.unpack400, 0
  br i1 %18, label %.lr.ph.i.preheader, label %_FortranASumInteger8x1_contract_simplified.exit

.lr.ph.i.preheader:                               ; preds = %._crit_edge
  %min.iters.check = icmp ult i64 %.unpack398.unpack.unpack400, 4
  br i1 %min.iters.check, label %.lr.ph.i.preheader489, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.i.preheader
  %n.vec = and i64 %.unpack398.unpack.unpack400, -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> [ zeroinitializer, %vector.ph ], [ %22, %vector.body ]
  %vec.phi487 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %23, %vector.body ]
  %19 = shl i64 %index, 3
  %20 = getelementptr i8, ptr %.unpack391, i64 %19
  %wide.load = load <2 x i64>, ptr %20, align 8, !tbaa !3
  %21 = getelementptr i64, ptr %20, i64 2
  %wide.load488 = load <2 x i64>, ptr %21, align 8, !tbaa !3
  %22 = add <2 x i64> %wide.load, %vec.phi
  %23 = add <2 x i64> %wide.load488, %vec.phi487
  %index.next = add nuw i64 %index, 4
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %23, %22
  %25 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %.unpack398.unpack.unpack400, %n.vec
  br i1 %cmp.n, label %_FortranASumInteger8x1_contract_simplified.exit, label %.lr.ph.i.preheader489

.lr.ph.i.preheader489:                            ; preds = %.lr.ph.i.preheader, %middle.block
  %.ph = phi i64 [ 0, %.lr.ph.i.preheader ], [ %25, %middle.block ]
  %.ph490 = phi i64 [ 0, %.lr.ph.i.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.lr.ph.i.preheader489, %.lr.ph.i
  %26 = phi i64 [ %31, %.lr.ph.i ], [ %.ph, %.lr.ph.i.preheader489 ]
  %27 = phi i64 [ %32, %.lr.ph.i ], [ %.ph490, %.lr.ph.i.preheader489 ]
  %28 = shl i64 %27, 3
  %29 = getelementptr i8, ptr %.unpack391, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !3
  %31 = add i64 %30, %26
  %32 = add nuw nsw i64 %27, 1
  %exitcond.not.i = icmp eq i64 %32, %.unpack398.unpack.unpack400
  br i1 %exitcond.not.i, label %_FortranASumInteger8x1_contract_simplified.exit, label %.lr.ph.i, !llvm.loop !12

_FortranASumInteger8x1_contract_simplified.exit:  ; preds = %.lr.ph.i, %middle.block, %._crit_edge
  %.lcssa.i = phi i64 [ 0, %._crit_edge ], [ %25, %middle.block ], [ %31, %.lr.ph.i ]
  %33 = load i32, ptr %3, align 4, !tbaa !3
  %34 = sdiv i32 %33, 2
  %35 = call i32 @llvm.smax.i32(i32 %34, i32 0)
  %36 = zext i32 %35 to i64
  %37 = getelementptr i64, ptr %.unpack391, i64 1
  %.not = icmp slt i32 %33, 2
  br i1 %.not, label %_FortranASumInteger8x1_contract_simplified.exit466.thread, label %.lr.ph.i463.preheader

.lr.ph.i463.preheader:                            ; preds = %_FortranASumInteger8x1_contract_simplified.exit
  %38 = add nsw i64 %36, -1
  %xtraiter = and i64 %36, 3
  %39 = icmp ult i64 %38, 3
  br i1 %39, label %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa, label %.lr.ph.i463.preheader.new

.lr.ph.i463.preheader.new:                        ; preds = %.lr.ph.i463.preheader
  %unroll_iter = and i64 %36, 2147483644
  br label %.lr.ph.i463

_FortranASumInteger8x1_contract_simplified.exit466.thread: ; preds = %_FortranASumInteger8x1_contract_simplified.exit
  store i64 %.lcssa.i, ptr %.unpack379, align 8, !tbaa !3
  br label %._crit_edge479

.lr.ph.i463:                                      ; preds = %.lr.ph.i463, %.lr.ph.i463.preheader.new
  %40 = phi i64 [ 0, %.lr.ph.i463.preheader.new ], [ %60, %.lr.ph.i463 ]
  %41 = phi i64 [ 0, %.lr.ph.i463.preheader.new ], [ %61, %.lr.ph.i463 ]
  %niter = phi i64 [ 0, %.lr.ph.i463.preheader.new ], [ %niter.next.3, %.lr.ph.i463 ]
  %42 = shl i64 %41, 4
  %43 = getelementptr i8, ptr %37, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !3
  %45 = add i64 %44, %40
  %46 = shl i64 %41, 4
  %47 = or i64 %46, 16
  %48 = getelementptr i8, ptr %37, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !3
  %50 = add i64 %49, %45
  %51 = shl i64 %41, 4
  %52 = or i64 %51, 32
  %53 = getelementptr i8, ptr %37, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !3
  %55 = add i64 %54, %50
  %56 = shl i64 %41, 4
  %57 = or i64 %56, 48
  %58 = getelementptr i8, ptr %37, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !3
  %60 = add i64 %59, %55
  %61 = add nuw nsw i64 %41, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa, label %.lr.ph.i463

_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa: ; preds = %.lr.ph.i463, %.lr.ph.i463.preheader
  %.lcssa.ph = phi i64 [ undef, %.lr.ph.i463.preheader ], [ %60, %.lr.ph.i463 ]
  %.unr = phi i64 [ 0, %.lr.ph.i463.preheader ], [ %60, %.lr.ph.i463 ]
  %.unr494 = phi i64 [ 0, %.lr.ph.i463.preheader ], [ %61, %.lr.ph.i463 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %_FortranASumInteger8x1_contract_simplified.exit466, label %.lr.ph.i463.epil

.lr.ph.i463.epil:                                 ; preds = %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa, %.lr.ph.i463.epil
  %62 = phi i64 [ %67, %.lr.ph.i463.epil ], [ %.unr, %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa ]
  %63 = phi i64 [ %68, %.lr.ph.i463.epil ], [ %.unr494, %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.i463.epil ], [ 0, %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa ]
  %64 = shl i64 %63, 4
  %65 = getelementptr i8, ptr %37, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !3
  %67 = add i64 %66, %62
  %68 = add nuw nsw i64 %63, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %_FortranASumInteger8x1_contract_simplified.exit466, label %.lr.ph.i463.epil, !llvm.loop !13

_FortranASumInteger8x1_contract_simplified.exit466: ; preds = %.lr.ph.i463.epil, %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %_FortranASumInteger8x1_contract_simplified.exit466.unr-lcssa ], [ %67, %.lr.ph.i463.epil ]
  %69 = shl i64 %.lcssa, 1
  %70 = sub i64 %.lcssa.i, %69
  store i64 %70, ptr %.unpack379, align 8, !tbaa !3
  %71 = icmp sgt i32 %33, 1
  br i1 %71, label %.lr.ph478.preheader, label %._crit_edge479

.lr.ph478.preheader:                              ; preds = %_FortranASumInteger8x1_contract_simplified.exit466
  %72 = zext i32 %33 to i64
  %load_initial = load i64, ptr %.unpack379, align 8
  %73 = add nsw i64 %72, -1
  %xtraiter496 = and i64 %73, 1
  %74 = icmp eq i32 %33, 2
  br i1 %74, label %._crit_edge479.loopexit.unr-lcssa, label %.lr.ph478.preheader.new

.lr.ph478.preheader.new:                          ; preds = %.lr.ph478.preheader
  %unroll_iter499 = and i64 %73, -2
  br label %.lr.ph478

.lr.ph478:                                        ; preds = %.lr.ph478, %.lr.ph478.preheader.new
  %store_forwarded = phi i64 [ %load_initial, %.lr.ph478.preheader.new ], [ %86, %.lr.ph478 ]
  %indvars.iv = phi i64 [ 2, %.lr.ph478.preheader.new ], [ %indvars.iv.next.1, %.lr.ph478 ]
  %niter500 = phi i64 [ 0, %.lr.ph478.preheader.new ], [ %niter500.next.1, %.lr.ph478 ]
  %75 = add nsw i64 %indvars.iv, -2
  %76 = getelementptr i64, ptr %.unpack391, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !3
  %78 = shl i64 %77, 1
  %79 = sub i64 %78, %store_forwarded
  %80 = add nsw i64 %indvars.iv, -1
  %81 = getelementptr i64, ptr %.unpack379, i64 %80
  store i64 %79, ptr %81, align 8, !tbaa !3
  %82 = add nsw i64 %indvars.iv, -1
  %83 = getelementptr i64, ptr %.unpack391, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !3
  %85 = shl i64 %84, 1
  %86 = sub i64 %85, %79
  %87 = getelementptr i64, ptr %.unpack379, i64 %indvars.iv
  store i64 %86, ptr %87, align 8, !tbaa !3
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter500.next.1 = add i64 %niter500, 2
  %niter500.ncmp.1 = icmp eq i64 %niter500.next.1, %unroll_iter499
  br i1 %niter500.ncmp.1, label %._crit_edge479.loopexit.unr-lcssa, label %.lr.ph478

._crit_edge479.loopexit.unr-lcssa:                ; preds = %.lr.ph478, %.lr.ph478.preheader
  %store_forwarded.unr = phi i64 [ %load_initial, %.lr.ph478.preheader ], [ %86, %.lr.ph478 ]
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph478.preheader ], [ %indvars.iv.next.1, %.lr.ph478 ]
  %lcmp.mod498.not = icmp eq i64 %xtraiter496, 0
  br i1 %lcmp.mod498.not, label %._crit_edge479, label %.lr.ph478.epil

.lr.ph478.epil:                                   ; preds = %._crit_edge479.loopexit.unr-lcssa
  %88 = add nsw i64 %indvars.iv.unr, -2
  %89 = getelementptr i64, ptr %.unpack391, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !3
  %91 = shl i64 %90, 1
  %92 = sub i64 %91, %store_forwarded.unr
  %93 = add nsw i64 %indvars.iv.unr, -1
  %94 = getelementptr i64, ptr %.unpack379, i64 %93
  store i64 %92, ptr %94, align 8, !tbaa !3
  br label %._crit_edge479

._crit_edge479:                                   ; preds = %.lr.ph478.epil, %._crit_edge479.loopexit.unr-lcssa, %_FortranASumInteger8x1_contract_simplified.exit466.thread, %_FortranASumInteger8x1_contract_simplified.exit466
  %95 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.599c118b5222b20a9d5e6ac52ce5ab60, i32 17)
  %.unpack427 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack434.unpack.unpack436 = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  %96 = call i64 @llvm.smax.i64(i64 %.unpack434.unpack.unpack436, i64 0)
  store ptr %.unpack427, ptr %1, align 8, !tbaa !7
  %.fca.1.gep272 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 8, ptr %.fca.1.gep272, align 8, !tbaa !7
  %.fca.2.gep274 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep274, align 8, !tbaa !7
  %.fca.3.gep276 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep276, align 4, !tbaa !7
  %.fca.4.gep278 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  store i8 10, ptr %.fca.4.gep278, align 1, !tbaa !7
  %.fca.5.gep280 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep280, align 2, !tbaa !7
  %.fca.6.gep282 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep282, align 1, !tbaa !7
  %.fca.7.0.0.gep284 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep284, align 8, !tbaa !7
  %.fca.7.0.1.gep286 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  store i64 %96, ptr %.fca.7.0.1.gep286, align 8, !tbaa !7
  %.fca.7.0.2.gep288 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  store i64 8, ptr %.fca.7.0.2.gep288, align 8, !tbaa !7
  %97 = call i1 @_FortranAioOutputDescriptor(ptr %95, ptr nonnull %1)
  %98 = call i32 @_FortranAioEndIoStatement(ptr %95)
  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 ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputDescriptor(ptr, ptr) local_unnamed_addr

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

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

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

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
