integer n
integer, allocatable :: v(:), c(:)
read *, n
allocate(v(n), c(n))
read *, v, c
print *, sum(v - c, v - c > 0)
end

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

@_QFEc.0 = internal unnamed_addr global ptr null
@_QFEc.8 = internal unnamed_addr global i64 0
@_QFEv.0 = internal unnamed_addr global ptr null
@_QFEv.8 = internal unnamed_addr global i64 0
@_QQcl.91bc4e5080be887018266d830fed0c0e = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4362/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, [1 x [3 x i64]] }, align 8
  %4 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %5 = alloca i32, align 4
  %6 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.91bc4e5080be887018266d830fed0c0e, i32 3)
  %7 = call i1 @_FortranAioInputInteger(ptr %6, ptr nonnull %5, i32 4)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %6)
  %9 = load i32, ptr %5, align 4, !tbaa !3
  %10 = call i32 @llvm.smax.i32(i32 %9, i32 0)
  %11 = zext i32 %10 to i64
  %12 = shl nuw nsw i64 %11, 2
  %13 = call ptr @malloc(i64 %12)
  store ptr %13, ptr @_QFEv.0, align 8, !tbaa !7
  store i64 %11, ptr @_QFEv.8, align 8, !tbaa !7
  %14 = call ptr @malloc(i64 %12)
  store ptr %14, ptr @_QFEc.0, align 8, !tbaa !7
  store i64 %11, ptr @_QFEc.8, align 8, !tbaa !7
  %15 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.91bc4e5080be887018266d830fed0c0e, i32 5)
  %.unpack = load ptr, ptr @_QFEv.0, align 8, !tbaa !7
  %.unpack313.unpack.unpack315 = load i64, ptr @_QFEv.8, align 8, !tbaa !7
  store ptr %.unpack, ptr %4, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, 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 %4, 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 %4, 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 %4, 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 %4, 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 %4, 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 %4, 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 %4, i64 0, i32 7, i64 0, i64 1
  store i64 %.unpack313.unpack.unpack315, 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 %4, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %16 = call i1 @_FortranAioInputDescriptor(ptr %15, ptr nonnull %4)
  %.unpack318 = load ptr, ptr @_QFEc.0, align 8, !tbaa !7
  %.unpack325.unpack.unpack327 = load i64, ptr @_QFEc.8, align 8, !tbaa !7
  store ptr %.unpack318, ptr %3, align 8, !tbaa !7
  %.fca.1.gep111 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep111, align 8, !tbaa !7
  %.fca.2.gep113 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep113, align 8, !tbaa !7
  %.fca.3.gep115 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep115, align 4, !tbaa !7
  %.fca.4.gep117 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep117, align 1, !tbaa !7
  %.fca.5.gep119 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep119, align 2, !tbaa !7
  %.fca.6.gep121 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep121, align 1, !tbaa !7
  %.fca.7.0.0.gep123 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep123, align 8, !tbaa !7
  %.fca.7.0.1.gep125 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 1
  store i64 %.unpack325.unpack.unpack327, ptr %.fca.7.0.1.gep125, align 8, !tbaa !7
  %.fca.7.0.2.gep127 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep127, align 8, !tbaa !7
  %17 = call i1 @_FortranAioInputDescriptor(ptr %15, ptr nonnull %3)
  %18 = call i32 @_FortranAioEndIoStatement(ptr %15)
  %19 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.91bc4e5080be887018266d830fed0c0e, i32 6)
  %.unpack330 = load ptr, ptr @_QFEv.0, align 8, !tbaa !7
  %.unpack330382 = ptrtoint ptr %.unpack330 to i64
  %.unpack337.unpack.unpack339 = load i64, ptr @_QFEv.8, align 8, !tbaa !7
  %.unpack342 = load ptr, ptr @_QFEc.0, align 8, !tbaa !7
  %.unpack342383 = ptrtoint ptr %.unpack342 to i64
  %20 = shl i64 %.unpack337.unpack.unpack339, 2
  %21 = call ptr @malloc(i64 %20)
  %22 = ptrtoint ptr %21 to i64
  %23 = icmp sgt i64 %.unpack337.unpack.unpack339, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %min.iters.check = icmp ult i64 %.unpack337.unpack.unpack339, 12
  br i1 %min.iters.check, label %.lr.ph.preheader408, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %24 = sub i64 %22, %.unpack330382
  %diff.check = icmp ult i64 %24, 32
  %25 = sub i64 %22, %.unpack342383
  %diff.check384 = icmp ult i64 %25, 32
  %conflict.rdx = or i1 %diff.check, %diff.check384
  br i1 %conflict.rdx, label %.lr.ph.preheader408, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %.unpack337.unpack.unpack339, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %26 = getelementptr i32, ptr %.unpack330, i64 %index
  %wide.load = load <4 x i32>, ptr %26, align 4, !tbaa !3
  %27 = getelementptr i32, ptr %26, i64 4
  %wide.load385 = load <4 x i32>, ptr %27, align 4, !tbaa !3
  %28 = getelementptr i32, ptr %.unpack342, i64 %index
  %wide.load386 = load <4 x i32>, ptr %28, align 4, !tbaa !3
  %29 = getelementptr i32, ptr %28, i64 4
  %wide.load387 = load <4 x i32>, ptr %29, align 4, !tbaa !3
  %30 = sub <4 x i32> %wide.load, %wide.load386
  %31 = sub <4 x i32> %wide.load385, %wide.load387
  %32 = getelementptr i32, ptr %21, i64 %index
  store <4 x i32> %30, ptr %32, align 4, !tbaa !3
  %33 = getelementptr i32, ptr %32, i64 4
  store <4 x i32> %31, ptr %33, align 4, !tbaa !3
  %index.next = add nuw i64 %index, 8
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.unpack337.unpack.unpack339, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader408

.lr.ph.preheader408:                              ; preds = %vector.memcheck, %.lr.ph.preheader, %middle.block
  %.ph409 = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %35 = xor i64 %.ph409, -1
  %36 = add i64 %.unpack337.unpack.unpack339, %35
  %xtraiter = and i64 %.unpack337.unpack.unpack339, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader408, %.lr.ph.prol
  %37 = phi i64 [ %43, %.lr.ph.prol ], [ %.ph409, %.lr.ph.preheader408 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader408 ]
  %38 = getelementptr i32, ptr %.unpack330, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !3
  %40 = getelementptr i32, ptr %.unpack342, i64 %37
  %41 = load i32, ptr %40, align 4, !tbaa !3
  %42 = sub i32 %39, %41
  %43 = add nuw nsw i64 %37, 1
  %44 = getelementptr i32, ptr %21, i64 %37
  store i32 %42, ptr %44, align 4, !tbaa !3
  %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.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !12

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader408
  %.unr = phi i64 [ %.ph409, %.lr.ph.preheader408 ], [ %43, %.lr.ph.prol ]
  %45 = icmp ult i64 %36, 3
  br i1 %45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %46 = phi i64 [ %73, %.lr.ph ], [ %.unr, %.lr.ph.prol.loopexit ]
  %47 = getelementptr i32, ptr %.unpack330, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !3
  %49 = getelementptr i32, ptr %.unpack342, i64 %46
  %50 = load i32, ptr %49, align 4, !tbaa !3
  %51 = sub i32 %48, %50
  %52 = add nuw nsw i64 %46, 1
  %53 = getelementptr i32, ptr %21, i64 %46
  store i32 %51, ptr %53, align 4, !tbaa !3
  %54 = getelementptr i32, ptr %.unpack330, i64 %52
  %55 = load i32, ptr %54, align 4, !tbaa !3
  %56 = getelementptr i32, ptr %.unpack342, i64 %52
  %57 = load i32, ptr %56, align 4, !tbaa !3
  %58 = sub i32 %55, %57
  %59 = add nuw nsw i64 %46, 2
  %60 = getelementptr i32, ptr %21, i64 %52
  store i32 %58, ptr %60, align 4, !tbaa !3
  %61 = getelementptr i32, ptr %.unpack330, i64 %59
  %62 = load i32, ptr %61, align 4, !tbaa !3
  %63 = getelementptr i32, ptr %.unpack342, i64 %59
  %64 = load i32, ptr %63, align 4, !tbaa !3
  %65 = sub i32 %62, %64
  %66 = add nuw nsw i64 %46, 3
  %67 = getelementptr i32, ptr %21, i64 %59
  store i32 %65, ptr %67, align 4, !tbaa !3
  %68 = getelementptr i32, ptr %.unpack330, i64 %66
  %69 = load i32, ptr %68, align 4, !tbaa !3
  %70 = getelementptr i32, ptr %.unpack342, i64 %66
  %71 = load i32, ptr %70, align 4, !tbaa !3
  %72 = sub i32 %69, %71
  %73 = add nuw nsw i64 %46, 4
  %74 = getelementptr i32, ptr %21, i64 %66
  store i32 %72, ptr %74, align 4, !tbaa !3
  %exitcond.not.3 = icmp eq i64 %73, %.unpack337.unpack.unpack339
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %0
  store ptr %21, ptr %2, align 8, !tbaa !7
  %.fca.1.gep191 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep191, align 8, !tbaa !7
  %.fca.2.gep193 = 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.gep193, align 8, !tbaa !7
  %.fca.3.gep195 = 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.gep195, align 4, !tbaa !7
  %.fca.4.gep197 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep197, align 1, !tbaa !7
  %.fca.5.gep199 = 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.gep199, align 2, !tbaa !7
  %.fca.6.gep201 = 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.gep201, align 1, !tbaa !7
  %.fca.7.0.0.gep203 = 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.gep203, align 8, !tbaa !7
  %.fca.7.0.1.gep205 = 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 %.unpack337.unpack.unpack339, ptr %.fca.7.0.1.gep205, align 8, !tbaa !7
  %.fca.7.0.2.gep207 = 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 4, ptr %.fca.7.0.2.gep207, align 8, !tbaa !7
  %75 = call ptr @malloc(i64 %20)
  %76 = ptrtoint ptr %75 to i64
  br i1 %23, label %.lr.ph379.preheader, label %._crit_edge380

.lr.ph379.preheader:                              ; preds = %._crit_edge
  %min.iters.check394 = icmp ult i64 %.unpack337.unpack.unpack339, 8
  br i1 %min.iters.check394, label %.lr.ph379.preheader407, label %vector.memcheck388

vector.memcheck388:                               ; preds = %.lr.ph379.preheader
  %77 = sub i64 %76, %.unpack330382
  %diff.check389 = icmp ult i64 %77, 32
  %78 = sub i64 %76, %.unpack342383
  %diff.check390 = icmp ult i64 %78, 32
  %conflict.rdx391 = or i1 %diff.check389, %diff.check390
  br i1 %conflict.rdx391, label %.lr.ph379.preheader407, label %vector.ph395

vector.ph395:                                     ; preds = %vector.memcheck388
  %n.vec397 = and i64 %.unpack337.unpack.unpack339, -8
  br label %vector.body400

vector.body400:                                   ; preds = %vector.body400, %vector.ph395
  %index401 = phi i64 [ 0, %vector.ph395 ], [ %index.next406, %vector.body400 ]
  %79 = getelementptr i32, ptr %.unpack330, i64 %index401
  %wide.load402 = load <4 x i32>, ptr %79, align 4, !tbaa !3
  %80 = getelementptr i32, ptr %79, i64 4
  %wide.load403 = load <4 x i32>, ptr %80, align 4, !tbaa !3
  %81 = getelementptr i32, ptr %.unpack342, i64 %index401
  %wide.load404 = load <4 x i32>, ptr %81, align 4, !tbaa !3
  %82 = getelementptr i32, ptr %81, i64 4
  %wide.load405 = load <4 x i32>, ptr %82, align 4, !tbaa !3
  %83 = sub <4 x i32> %wide.load402, %wide.load404
  %84 = sub <4 x i32> %wide.load403, %wide.load405
  %85 = icmp sgt <4 x i32> %83, zeroinitializer
  %86 = icmp sgt <4 x i32> %84, zeroinitializer
  %87 = zext <4 x i1> %85 to <4 x i32>
  %88 = zext <4 x i1> %86 to <4 x i32>
  %89 = getelementptr i32, ptr %75, i64 %index401
  store <4 x i32> %87, ptr %89, align 4, !tbaa !3
  %90 = getelementptr i32, ptr %89, i64 4
  store <4 x i32> %88, ptr %90, align 4, !tbaa !3
  %index.next406 = add nuw i64 %index401, 8
  %91 = icmp eq i64 %index.next406, %n.vec397
  br i1 %91, label %middle.block392, label %vector.body400, !llvm.loop !15

middle.block392:                                  ; preds = %vector.body400
  %cmp.n399 = icmp eq i64 %.unpack337.unpack.unpack339, %n.vec397
  br i1 %cmp.n399, label %._crit_edge380, label %.lr.ph379.preheader407

.lr.ph379.preheader407:                           ; preds = %vector.memcheck388, %.lr.ph379.preheader, %middle.block392
  %.ph = phi i64 [ 0, %vector.memcheck388 ], [ 0, %.lr.ph379.preheader ], [ %n.vec397, %middle.block392 ]
  %.neg = or i64 %.ph, 1
  %xtraiter410 = and i64 %.unpack337.unpack.unpack339, 1
  %lcmp.mod411.not = icmp eq i64 %xtraiter410, 0
  br i1 %lcmp.mod411.not, label %.lr.ph379.prol.loopexit, label %.lr.ph379.prol

.lr.ph379.prol:                                   ; preds = %.lr.ph379.preheader407
  %92 = getelementptr i32, ptr %.unpack330, i64 %.ph
  %93 = load i32, ptr %92, align 4, !tbaa !3
  %94 = getelementptr i32, ptr %.unpack342, i64 %.ph
  %95 = load i32, ptr %94, align 4, !tbaa !3
  %96 = sub i32 %93, %95
  %97 = icmp sgt i32 %96, 0
  %98 = zext i1 %97 to i32
  %99 = or i64 %.ph, 1
  %100 = getelementptr i32, ptr %75, i64 %.ph
  store i32 %98, ptr %100, align 4, !tbaa !3
  br label %.lr.ph379.prol.loopexit

.lr.ph379.prol.loopexit:                          ; preds = %.lr.ph379.prol, %.lr.ph379.preheader407
  %.unr413 = phi i64 [ %.ph, %.lr.ph379.preheader407 ], [ %99, %.lr.ph379.prol ]
  %101 = icmp eq i64 %.unpack337.unpack.unpack339, %.neg
  br i1 %101, label %._crit_edge380, label %.lr.ph379

.lr.ph379:                                        ; preds = %.lr.ph379.prol.loopexit, %.lr.ph379
  %102 = phi i64 [ %119, %.lr.ph379 ], [ %.unr413, %.lr.ph379.prol.loopexit ]
  %103 = getelementptr i32, ptr %.unpack330, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !3
  %105 = getelementptr i32, ptr %.unpack342, i64 %102
  %106 = load i32, ptr %105, align 4, !tbaa !3
  %107 = sub i32 %104, %106
  %108 = icmp sgt i32 %107, 0
  %109 = zext i1 %108 to i32
  %110 = add nuw nsw i64 %102, 1
  %111 = getelementptr i32, ptr %75, i64 %102
  store i32 %109, ptr %111, align 4, !tbaa !3
  %112 = getelementptr i32, ptr %.unpack330, i64 %110
  %113 = load i32, ptr %112, align 4, !tbaa !3
  %114 = getelementptr i32, ptr %.unpack342, i64 %110
  %115 = load i32, ptr %114, align 4, !tbaa !3
  %116 = sub i32 %113, %115
  %117 = icmp sgt i32 %116, 0
  %118 = zext i1 %117 to i32
  %119 = add nuw nsw i64 %102, 2
  %120 = getelementptr i32, ptr %75, i64 %110
  store i32 %118, ptr %120, align 4, !tbaa !3
  %exitcond381.not.1 = icmp eq i64 %119, %.unpack337.unpack.unpack339
  br i1 %exitcond381.not.1, label %._crit_edge380, label %.lr.ph379, !llvm.loop !16

._crit_edge380:                                   ; preds = %.lr.ph379.prol.loopexit, %.lr.ph379, %middle.block392, %._crit_edge
  store ptr %75, ptr %1, align 8, !tbaa !7
  %.fca.1.gep271 = 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.gep271, align 8, !tbaa !7
  %.fca.2.gep273 = 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.gep273, align 8, !tbaa !7
  %.fca.3.gep275 = 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.gep275, align 4, !tbaa !7
  %.fca.4.gep277 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  store i8 14, ptr %.fca.4.gep277, align 1, !tbaa !7
  %.fca.5.gep279 = 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.gep279, align 2, !tbaa !7
  %.fca.6.gep281 = 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.gep281, align 1, !tbaa !7
  %.fca.7.0.0.gep283 = 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.gep283, align 8, !tbaa !7
  %.fca.7.0.1.gep285 = 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 %.unpack337.unpack.unpack339, ptr %.fca.7.0.1.gep285, align 8, !tbaa !7
  %.fca.7.0.2.gep287 = 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.gep287, align 8, !tbaa !7
  %121 = call i32 @_FortranASumInteger4(ptr nonnull %2, ptr nonnull @_QQcl.91bc4e5080be887018266d830fed0c0e, i32 6, i32 0, ptr nonnull %1)
  %122 = call i1 @_FortranAioOutputInteger32(ptr %19, i32 %121)
  call void @free(ptr %75)
  call void @free(ptr %21)
  %123 = call i32 @_FortranAioEndIoStatement(ptr %19)
  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 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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

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

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 = { nocallback nofree nosync nounwind speculatable 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, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}
