program main
  implicit none
  integer :: n, a(100)
  integer :: cons(100)
  read(*, *) n
  read(*, *) a(1:n)
  cons = consecutives(n, a(1:n))
  cons(:) = cons(:) / 2
  write(*, "(i0)") sum(cons)
  contains
  function consecutives(n, a)
    implicit none
    integer, intent(in) :: n, a(n)
    integer :: consecutives(100)
    integer :: i, j, last
    consecutives(:) = 0
    last = 9999999
    j = 0
    do i = 1, n
      if (a(i) /= last) then
        last = a(i)
        j = j + 1
      end if
      consecutives(j) = consecutives(j) + 1
    end do
  end function consecutives
end program main

; 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 = internal global [100 x i32] undef
@_QFEcons = internal unnamed_addr global [100 x i32] undef
@_QQcl.d56f8f03d6b4570f23ffb3bc68b4ae29 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5755/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %2 = alloca [100 x i32], align 4
  %3 = alloca i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.d56f8f03d6b4570f23ffb3bc68b4ae29, i32 5)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %7 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.d56f8f03d6b4570f23ffb3bc68b4ae29, i32 6)
  %8 = load i32, ptr %3, align 4, !tbaa !3
  %9 = call i32 @llvm.smax.i32(i32 %8, i32 0)
  %10 = zext i32 %9 to i64
  store ptr @_QFEa, ptr %1, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 4, 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 %1, 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 %1, 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 %1, i64 0, i32 4
  store i8 9, 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 %1, 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 %1, 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 %1, 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 %1, i64 0, i32 7, i64 0, i64 1
  store i64 %10, 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 %1, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %11 = call i1 @_FortranAioInputDescriptor(ptr %7, ptr nonnull %1)
  %12 = call i32 @_FortranAioEndIoStatement(ptr %7)
  %13 = call ptr @llvm.stacksave()
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(400) %2, i8 0, i64 400, i1 false), !tbaa !3
  %14 = load i32, ptr %3, align 4, !tbaa !3
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph.preheader.i, label %_QFPconsecutives.exit

.lr.ph.preheader.i:                               ; preds = %0
  %16 = zext i32 %14 to i64
  %xtraiter = and i64 %16, 1
  %17 = icmp eq i32 %14, 1
  br i1 %17, label %_QFPconsecutives.exit.loopexit.unr-lcssa, label %.lr.ph.preheader.i.new

.lr.ph.preheader.i.new:                           ; preds = %.lr.ph.preheader.i
  %unroll_iter = and i64 %16, 4294967294
  br label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.lr.ph.i, %.lr.ph.preheader.i.new
  %indvars.iv.i = phi i64 [ 1, %.lr.ph.preheader.i.new ], [ %indvars.iv.next.i.1, %.lr.ph.i ]
  %.013.i = phi i32 [ 9999999, %.lr.ph.preheader.i.new ], [ %28, %.lr.ph.i ]
  %.0612.i = phi i32 [ 0, %.lr.ph.preheader.i.new ], [ %spec.select.i.1, %.lr.ph.i ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.i.new ], [ %niter.next.1, %.lr.ph.i ]
  %18 = add nsw i64 %indvars.iv.i, -1
  %19 = getelementptr i32, ptr @_QFEa, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !3
  %.not.i = icmp ne i32 %20, %.013.i
  %21 = zext i1 %.not.i to i32
  %spec.select.i = add i32 %.0612.i, %21
  %22 = sext i32 %spec.select.i to i64
  %23 = add nsw i64 %22, -1
  %24 = getelementptr [100 x i32], ptr %2, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !3
  %26 = add i32 %25, 1
  store i32 %26, ptr %24, align 4, !tbaa !3
  %27 = getelementptr i32, ptr @_QFEa, i64 %indvars.iv.i
  %28 = load i32, ptr %27, align 4, !tbaa !3
  %.not.i.1 = icmp ne i32 %28, %20
  %29 = zext i1 %.not.i.1 to i32
  %spec.select.i.1 = add i32 %spec.select.i, %29
  %30 = sext i32 %spec.select.i.1 to i64
  %31 = add nsw i64 %30, -1
  %32 = getelementptr [100 x i32], ptr %2, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !3
  %34 = add i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !3
  %indvars.iv.next.i.1 = add nuw nsw i64 %indvars.iv.i, 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 %_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit, label %.lr.ph.i

_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit: ; preds = %.lr.ph.i
  %35 = add nuw nsw i64 %indvars.iv.i, 1
  br label %_QFPconsecutives.exit.loopexit.unr-lcssa

_QFPconsecutives.exit.loopexit.unr-lcssa:         ; preds = %_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit, %.lr.ph.preheader.i
  %indvars.iv.i.unr = phi i64 [ 0, %.lr.ph.preheader.i ], [ %35, %_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit ]
  %.013.i.unr = phi i32 [ 9999999, %.lr.ph.preheader.i ], [ %28, %_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit ]
  %.0612.i.unr = phi i32 [ 0, %.lr.ph.preheader.i ], [ %spec.select.i.1, %_QFPconsecutives.exit.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %_QFPconsecutives.exit, label %.lr.ph.i.epil

.lr.ph.i.epil:                                    ; preds = %_QFPconsecutives.exit.loopexit.unr-lcssa
  %36 = getelementptr i32, ptr @_QFEa, i64 %indvars.iv.i.unr
  %37 = load i32, ptr %36, align 4, !tbaa !3
  %.not.i.epil = icmp ne i32 %37, %.013.i.unr
  %38 = zext i1 %.not.i.epil to i32
  %spec.select.i.epil = add i32 %.0612.i.unr, %38
  %39 = sext i32 %spec.select.i.epil to i64
  %40 = add nsw i64 %39, -1
  %41 = getelementptr [100 x i32], ptr %2, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !3
  %43 = add i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !3
  br label %_QFPconsecutives.exit

_QFPconsecutives.exit:                            ; preds = %.lr.ph.i.epil, %_QFPconsecutives.exit.loopexit.unr-lcssa, %0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) @_QFEcons, ptr noundef nonnull align 4 dereferenceable(400) %2, i64 400, i1 false), !tbaa !3
  call void @llvm.stackrestore(ptr %13)
  %wide.load = load <4 x i32>, ptr @_QFEcons, align 16, !tbaa !3
  %44 = sdiv <4 x i32> %wide.load, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %44, ptr @_QFEcons, align 16, !tbaa !3
  %wide.load.1 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 4), align 16, !tbaa !3
  %45 = sdiv <4 x i32> %wide.load.1, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %45, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 4), align 16, !tbaa !3
  %wide.load.2 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 8), align 16, !tbaa !3
  %46 = sdiv <4 x i32> %wide.load.2, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %46, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 8), align 16, !tbaa !3
  %wide.load.3 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 12), align 16, !tbaa !3
  %47 = sdiv <4 x i32> %wide.load.3, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %47, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 12), align 16, !tbaa !3
  %wide.load.4 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 16), align 16, !tbaa !3
  %48 = sdiv <4 x i32> %wide.load.4, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %48, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 16), align 16, !tbaa !3
  %wide.load.5 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 20), align 16, !tbaa !3
  %49 = sdiv <4 x i32> %wide.load.5, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %49, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 20), align 16, !tbaa !3
  %wide.load.6 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 24), align 16, !tbaa !3
  %50 = sdiv <4 x i32> %wide.load.6, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %50, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 24), align 16, !tbaa !3
  %wide.load.7 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 28), align 16, !tbaa !3
  %51 = sdiv <4 x i32> %wide.load.7, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %51, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 28), align 16, !tbaa !3
  %wide.load.8 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 32), align 16, !tbaa !3
  %52 = sdiv <4 x i32> %wide.load.8, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %52, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 32), align 16, !tbaa !3
  %wide.load.9 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 36), align 16, !tbaa !3
  %53 = sdiv <4 x i32> %wide.load.9, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %53, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 36), align 16, !tbaa !3
  %wide.load.10 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 40), align 16, !tbaa !3
  %54 = sdiv <4 x i32> %wide.load.10, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %54, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 40), align 16, !tbaa !3
  %wide.load.11 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 44), align 16, !tbaa !3
  %55 = sdiv <4 x i32> %wide.load.11, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %55, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 44), align 16, !tbaa !3
  %wide.load.12 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 48), align 16, !tbaa !3
  %56 = sdiv <4 x i32> %wide.load.12, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %56, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 48), align 16, !tbaa !3
  %wide.load.13 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 52), align 16, !tbaa !3
  %57 = sdiv <4 x i32> %wide.load.13, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %57, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 52), align 16, !tbaa !3
  %wide.load.14 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 56), align 16, !tbaa !3
  %58 = sdiv <4 x i32> %wide.load.14, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %58, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 56), align 16, !tbaa !3
  %wide.load.15 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 60), align 16, !tbaa !3
  %59 = sdiv <4 x i32> %wide.load.15, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %59, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 60), align 16, !tbaa !3
  %wide.load.16 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 64), align 16, !tbaa !3
  %60 = sdiv <4 x i32> %wide.load.16, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %60, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 64), align 16, !tbaa !3
  %wide.load.17 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 68), align 16, !tbaa !3
  %61 = sdiv <4 x i32> %wide.load.17, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %61, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 68), align 16, !tbaa !3
  %wide.load.18 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 72), align 16, !tbaa !3
  %62 = sdiv <4 x i32> %wide.load.18, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %62, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 72), align 16, !tbaa !3
  %wide.load.19 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 76), align 16, !tbaa !3
  %63 = sdiv <4 x i32> %wide.load.19, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %63, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 76), align 16, !tbaa !3
  %wide.load.20 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 80), align 16, !tbaa !3
  %64 = sdiv <4 x i32> %wide.load.20, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %64, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 80), align 16, !tbaa !3
  %wide.load.21 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 84), align 16, !tbaa !3
  %65 = sdiv <4 x i32> %wide.load.21, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %65, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 84), align 16, !tbaa !3
  %wide.load.22 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 88), align 16, !tbaa !3
  %66 = sdiv <4 x i32> %wide.load.22, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %66, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 88), align 16, !tbaa !3
  %wide.load.23 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 92), align 16, !tbaa !3
  %67 = sdiv <4 x i32> %wide.load.23, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %67, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 92), align 16, !tbaa !3
  %wide.load.24 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 96), align 16, !tbaa !3
  %68 = sdiv <4 x i32> %wide.load.24, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %68, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 96), align 16, !tbaa !3
  %69 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.d56f8f03d6b4570f23ffb3bc68b4ae29, i32 9)
  %wide.load41 = load <4 x i32>, ptr @_QFEcons, align 16, !tbaa !3
  %wide.load41.1 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 4), align 16, !tbaa !3
  %70 = add <4 x i32> %wide.load41.1, %wide.load41
  %wide.load41.2 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 8), align 16, !tbaa !3
  %71 = add <4 x i32> %wide.load41.2, %70
  %wide.load41.3 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 12), align 16, !tbaa !3
  %72 = add <4 x i32> %wide.load41.3, %71
  %wide.load41.4 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 16), align 16, !tbaa !3
  %73 = add <4 x i32> %wide.load41.4, %72
  %wide.load41.5 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 20), align 16, !tbaa !3
  %74 = add <4 x i32> %wide.load41.5, %73
  %wide.load41.6 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 24), align 16, !tbaa !3
  %75 = add <4 x i32> %wide.load41.6, %74
  %wide.load41.7 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 28), align 16, !tbaa !3
  %76 = add <4 x i32> %wide.load41.7, %75
  %wide.load41.8 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 32), align 16, !tbaa !3
  %77 = add <4 x i32> %wide.load41.8, %76
  %wide.load41.9 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 36), align 16, !tbaa !3
  %78 = add <4 x i32> %wide.load41.9, %77
  %wide.load41.10 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 40), align 16, !tbaa !3
  %79 = add <4 x i32> %wide.load41.10, %78
  %wide.load41.11 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 44), align 16, !tbaa !3
  %80 = add <4 x i32> %wide.load41.11, %79
  %wide.load41.12 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 48), align 16, !tbaa !3
  %81 = add <4 x i32> %wide.load41.12, %80
  %wide.load41.13 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 52), align 16, !tbaa !3
  %82 = add <4 x i32> %wide.load41.13, %81
  %wide.load41.14 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 56), align 16, !tbaa !3
  %83 = add <4 x i32> %wide.load41.14, %82
  %wide.load41.15 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 60), align 16, !tbaa !3
  %84 = add <4 x i32> %wide.load41.15, %83
  %wide.load41.16 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 64), align 16, !tbaa !3
  %85 = add <4 x i32> %wide.load41.16, %84
  %wide.load41.17 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 68), align 16, !tbaa !3
  %86 = add <4 x i32> %wide.load41.17, %85
  %wide.load41.18 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 72), align 16, !tbaa !3
  %87 = add <4 x i32> %wide.load41.18, %86
  %wide.load41.19 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 76), align 16, !tbaa !3
  %88 = add <4 x i32> %wide.load41.19, %87
  %wide.load41.20 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 80), align 16, !tbaa !3
  %89 = add <4 x i32> %wide.load41.20, %88
  %wide.load41.21 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 84), align 16, !tbaa !3
  %90 = add <4 x i32> %wide.load41.21, %89
  %wide.load41.22 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 88), align 16, !tbaa !3
  %91 = add <4 x i32> %wide.load41.22, %90
  %wide.load41.23 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 92), align 16, !tbaa !3
  %92 = add <4 x i32> %wide.load41.23, %91
  %wide.load41.24 = load <4 x i32>, ptr getelementptr inbounds ([100 x i32], ptr @_QFEcons, i64 0, i64 96), align 16, !tbaa !3
  %93 = add <4 x i32> %wide.load41.24, %92
  %94 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %93)
  %95 = call i1 @_FortranAioOutputInteger32(ptr %69, i32 %94)
  %96 = call i32 @_FortranAioEndIoStatement(ptr %69)
  ret void
}

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite)
define void @_QFPconsecutives(ptr nocapture %0, ptr nocapture readonly %1, ptr nocapture readonly %2) local_unnamed_addr #0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(400) %0, i8 0, i64 400, i1 false), !tbaa !3
  %4 = load i32, ptr %1, align 4, !tbaa !3
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %6 = zext i32 %4 to i64
  %xtraiter = and i64 %6, 1
  %7 = icmp eq i32 %4, 1
  br i1 %7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %6, 4294967294
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.013 = phi i32 [ 9999999, %.lr.ph.preheader.new ], [ %18, %.lr.ph ]
  %.0612 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %spec.select.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %8 = add nsw i64 %indvars.iv, -1
  %9 = getelementptr i32, ptr %2, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !3
  %.not = icmp ne i32 %10, %.013
  %11 = zext i1 %.not to i32
  %spec.select = add i32 %.0612, %11
  %12 = sext i32 %spec.select to i64
  %13 = add nsw i64 %12, -1
  %14 = getelementptr [100 x i32], ptr %0, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !3
  %16 = add i32 %15, 1
  store i32 %16, ptr %14, align 4, !tbaa !3
  %17 = getelementptr i32, ptr %2, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !3
  %.not.1 = icmp ne i32 %18, %10
  %19 = zext i1 %.not.1 to i32
  %spec.select.1 = add i32 %spec.select, %19
  %20 = sext i32 %spec.select.1 to i64
  %21 = add nsw i64 %20, -1
  %22 = getelementptr [100 x i32], ptr %0, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !3
  %24 = add i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !3
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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_edge.loopexit.unr-lcssa.loopexit, label %.lr.ph

._crit_edge.loopexit.unr-lcssa.loopexit:          ; preds = %.lr.ph
  %25 = add nuw nsw i64 %indvars.iv, 1
  br label %._crit_edge.loopexit.unr-lcssa

._crit_edge.loopexit.unr-lcssa:                   ; preds = %._crit_edge.loopexit.unr-lcssa.loopexit, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %25, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %.013.unr = phi i32 [ 9999999, %.lr.ph.preheader ], [ %18, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %.0612.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %spec.select.1, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %26 = getelementptr i32, ptr %2, i64 %indvars.iv.unr
  %27 = load i32, ptr %26, align 4, !tbaa !3
  %.not.epil = icmp ne i32 %27, %.013.unr
  %28 = zext i1 %.not.epil to i32
  %spec.select.epil = add i32 %.0612.unr, %28
  %29 = sext i32 %spec.select.epil to i64
  %30 = add nsw i64 %29, -1
  %31 = getelementptr [100 x i32], ptr %0, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !3
  %33 = add i32 %32, 1
  store i32 %33, ptr %31, align 4, !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %3
  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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

attributes #0 = { nofree norecurse nosync nounwind memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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}
