program abc119c
  implicit none
  integer n, a, b, c, mp, i, m, ix, bamboo(3)
  integer, allocatable :: l(:), ans(:)

  read *, n, a, b, c
  allocate(l(n), ans(4**n))
  read *, l
  ans = 10**9
  do i = 1, 4**n
     mp = 0
     bamboo = 0
     do m = 1, n
        ix = iand(ishft(i - 1, -(m - 1) * 2), 3)
        if (ix /= 0) then
           bamboo(ix) = bamboo(ix) + l(m)
           mp = mp + 10
        end if
     end do
     if (any(bamboo == 0)) then
        cycle
     end if
     ans(i) = mp + sum(abs(bamboo - [a, b, c])) - 30
  end do
  print *, minval(ans)
end program abc119c

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

@_QFEans.0 = internal unnamed_addr global ptr null
@_QFEans.7 = internal unnamed_addr global i64 1
@_QFEans.8 = internal unnamed_addr global i64 0
@_QFEl.0 = internal unnamed_addr global ptr null
@_QFEl.8 = internal unnamed_addr global i64 0
@_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4875/source.f\00"
@_QQcl.16373402fa3425c6e46827601abb88fa = linkonce constant [76 x i8] c"array left hand side must be allocated when the right hand side is a scalar\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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [3 x i32], align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 6)
  %10 = call i1 @_FortranAioInputInteger(ptr %9, ptr nonnull %8, i32 4)
  %11 = call i1 @_FortranAioInputInteger(ptr %9, ptr nonnull %4, i32 4)
  %12 = call i1 @_FortranAioInputInteger(ptr %9, ptr nonnull %5, i32 4)
  %13 = call i1 @_FortranAioInputInteger(ptr %9, ptr nonnull %7, i32 4)
  %14 = call i32 @_FortranAioEndIoStatement(ptr %9)
  %15 = load i32, ptr %8, align 4, !tbaa !3
  %16 = call i32 @llvm.smax.i32(i32 %15, i32 0)
  %17 = zext i32 %16 to i64
  %18 = shl nuw nsw i64 %17, 2
  %19 = call ptr @malloc(i64 %18)
  store ptr %19, ptr @_QFEl.0, align 8, !tbaa !7
  store i64 %17, ptr @_QFEl.8, align 8, !tbaa !7
  %20 = icmp eq i32 %15, 0
  br i1 %20, label %__mlir_math_ipowi_i32.exit, label %21

21:                                               ; preds = %0
  %22 = icmp slt i32 %15, 1
  br i1 %22, label %__mlir_math_ipowi_i32.exit, label %.preheader.i

.preheader.i:                                     ; preds = %21
  %23 = and i32 %15, 1
  %.not3.i = icmp eq i32 %23, 0
  %24 = select i1 %.not3.i, i32 1, i32 4
  %25 = icmp eq i32 %15, 1
  br i1 %25, label %__mlir_math_ipowi_i32.exit, label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.preheader.i, %.lr.ph.i
  %spec.select4.i = phi i32 [ %spec.select.i, %.lr.ph.i ], [ %24, %.preheader.i ]
  %26 = phi i32 [ %28, %.lr.ph.i ], [ %15, %.preheader.i ]
  %27 = phi i32 [ %29, %.lr.ph.i ], [ 4, %.preheader.i ]
  %28 = lshr i32 %26, 1
  %29 = mul i32 %27, %27
  %30 = and i32 %26, 2
  %.not.i = icmp eq i32 %30, 0
  %31 = select i1 %.not.i, i32 1, i32 %29
  %spec.select.i = mul i32 %31, %spec.select4.i
  %32 = icmp ult i32 %26, 4
  br i1 %32, label %__mlir_math_ipowi_i32.exit, label %.lr.ph.i

__mlir_math_ipowi_i32.exit:                       ; preds = %.lr.ph.i, %21, %0, %.preheader.i
  %common.ret.op.i = phi i32 [ 1, %0 ], [ %24, %.preheader.i ], [ 0, %21 ], [ %spec.select.i, %.lr.ph.i ]
  %33 = call i32 @llvm.smax.i32(i32 %common.ret.op.i, i32 0)
  %34 = zext i32 %33 to i64
  %35 = shl nuw nsw i64 %34, 2
  %36 = call ptr @malloc(i64 %35)
  store ptr %36, ptr @_QFEans.0, align 8, !tbaa !7
  store i64 1, ptr @_QFEans.7, align 8, !tbaa !7
  store i64 %34, ptr @_QFEans.8, align 8, !tbaa !7
  %37 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 8)
  %.unpack = load ptr, ptr @_QFEl.0, align 8, !tbaa !7
  %.unpack387.unpack.unpack389 = load i64, ptr @_QFEl.8, align 8, !tbaa !7
  store ptr %.unpack, ptr %3, align 8, !tbaa !7
  %.fca.1.gep = 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.gep, align 8, !tbaa !7
  %.fca.2.gep = 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.gep, align 8, !tbaa !7
  %.fca.3.gep = 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.gep, align 4, !tbaa !7
  %.fca.4.gep = 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.gep, align 1, !tbaa !7
  %.fca.5.gep = 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.gep, align 2, !tbaa !7
  %.fca.6.gep = 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.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 %3, 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 %3, i64 0, i32 7, i64 0, i64 1
  store i64 %.unpack387.unpack.unpack389, 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 %3, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %38 = call i1 @_FortranAioInputDescriptor(ptr %37, ptr nonnull %3)
  %39 = call i32 @_FortranAioEndIoStatement(ptr %37)
  %.unpack392 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack399.unpack.unpack401 = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  %.not = icmp eq ptr %.unpack392, null
  br i1 %.not, label %47, label %.preheader472

.preheader472:                                    ; preds = %__mlir_math_ipowi_i32.exit
  %40 = icmp sgt i64 %.unpack399.unpack.unpack401, 0
  br i1 %40, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader472
  %min.iters.check = icmp ult i64 %.unpack399.unpack.unpack401, 8
  br i1 %min.iters.check, label %.lr.ph.preheader491, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %.unpack399.unpack.unpack401, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %41 = getelementptr i32, ptr %.unpack392, i64 %index
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %41, align 4, !tbaa !3
  %42 = getelementptr i32, ptr %41, i64 4
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %42, align 4, !tbaa !3
  %index.next = add nuw i64 %index, 8
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.unpack399.unpack.unpack401, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader491

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

.lr.ph:                                           ; preds = %.lr.ph.preheader491, %.lr.ph
  %44 = phi i64 [ %45, %.lr.ph ], [ %.ph, %.lr.ph.preheader491 ]
  %45 = add nuw nsw i64 %44, 1
  %46 = getelementptr i32, ptr %.unpack392, i64 %44
  store i32 1000000000, ptr %46, align 4, !tbaa !3
  %exitcond.not = icmp eq i64 %45, %.unpack399.unpack.unpack401
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !12

47:                                               ; preds = %__mlir_math_ipowi_i32.exit
  %48 = call {} @_FortranAReportFatalUserError(ptr nonnull @_QQcl.16373402fa3425c6e46827601abb88fa, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 9)
  %.unpack449.unpack.unpack = load i64, ptr @_QFEans.7, align 8, !tbaa !7
  %49 = icmp eq i64 %.unpack399.unpack.unpack401, 0
  %50 = select i1 %49, i64 1, i64 %.unpack449.unpack.unpack
  store ptr null, ptr @_QFEans.0, align 8, !tbaa !7
  store i64 %50, ptr @_QFEans.7, align 8, !tbaa !7
  store i64 %.unpack399.unpack.unpack401, ptr @_QFEans.8, align 8, !tbaa !7
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %.preheader472, %47
  %51 = load i32, ptr %8, align 4, !tbaa !3
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %.preheader.lr.ph, label %53

53:                                               ; preds = %.loopexit
  %54 = icmp slt i32 %51, 1
  br i1 %54, label %._crit_edge475, label %.preheader.i465

.preheader.i465:                                  ; preds = %53
  %55 = and i32 %51, 1
  %.not3.i464 = icmp eq i32 %55, 0
  %56 = select i1 %.not3.i464, i32 1, i32 4
  %57 = icmp eq i32 %51, 1
  br i1 %57, label %.preheader.lr.ph, label %.lr.ph.i469

.lr.ph.i469:                                      ; preds = %.preheader.i465, %.lr.ph.i469
  %spec.select4.i466 = phi i32 [ %spec.select.i468, %.lr.ph.i469 ], [ %56, %.preheader.i465 ]
  %58 = phi i32 [ %60, %.lr.ph.i469 ], [ %51, %.preheader.i465 ]
  %59 = phi i32 [ %61, %.lr.ph.i469 ], [ 4, %.preheader.i465 ]
  %60 = lshr i32 %58, 1
  %61 = mul i32 %59, %59
  %62 = and i32 %58, 2
  %.not.i467 = icmp eq i32 %62, 0
  %63 = select i1 %.not.i467, i32 1, i32 %61
  %spec.select.i468 = mul i32 %63, %spec.select4.i466
  %64 = icmp ult i32 %58, 4
  br i1 %64, label %__mlir_math_ipowi_i32.exit470, label %.lr.ph.i469

__mlir_math_ipowi_i32.exit470:                    ; preds = %.lr.ph.i469
  %65 = icmp sgt i32 %spec.select.i468, 0
  br i1 %65, label %.preheader.lr.ph, label %._crit_edge475

.preheader.lr.ph:                                 ; preds = %.preheader.i465, %.loopexit, %__mlir_math_ipowi_i32.exit470
  %common.ret.op.i463488 = phi i32 [ %spec.select.i468, %__mlir_math_ipowi_i32.exit470 ], [ %56, %.preheader.i465 ], [ 1, %.loopexit ]
  %66 = zext i32 %common.ret.op.i463488 to i64
  %.fca.1.gep179 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  %.fca.2.gep181 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  %.fca.3.gep183 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  %.fca.4.gep185 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  %.fca.5.gep187 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  %.fca.6.gep189 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  %.fca.7.0.0.gep191 = 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.gep193 = 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.gep195 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  %.phi.trans.insert = getelementptr inbounds i32, ptr %6, i64 1
  %.phi.trans.insert485 = getelementptr inbounds i32, ptr %6, i64 2
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %126
  %indvars.iv480 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next481, %126 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, i8 0, i64 12, i1 false), !tbaa !3
  %67 = load i32, ptr %8, align 4, !tbaa !3
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph474, label %._crit_edge

.lr.ph474:                                        ; preds = %.preheader
  %69 = zext i32 %67 to i64
  %.unpack430 = load ptr, ptr @_QFEl.0, align 8
  %70 = trunc i64 %indvars.iv480 to i32
  %71 = add i32 %70, -1
  br label %72

72:                                               ; preds = %.lr.ph474, %91
  %indvars.iv = phi i64 [ 1, %.lr.ph474 ], [ %indvars.iv.next, %91 ]
  %.0473 = phi i32 [ 0, %.lr.ph474 ], [ %.1, %91 ]
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %73 = shl i32 %indvars.iv.tr, 1
  %74 = sub i32 2, %73
  %75 = call i32 @llvm.abs.i32(i32 %74, i1 false)
  %76 = shl i32 %71, %75
  %77 = lshr i32 %71, %75
  %78 = icmp sgt i32 %75, 31
  %79 = icmp slt i32 %74, 0
  %80 = select i1 %79, i32 %77, i32 %76
  %.op = and i32 %80, 3
  %.not428429 = icmp eq i32 %.op, 0
  %.not428 = select i1 %78, i1 true, i1 %.not428429
  br i1 %.not428, label %91, label %81

81:                                               ; preds = %72
  %82 = zext i32 %.op to i64
  %83 = add nsw i64 %82, -1
  %84 = getelementptr [3 x i32], ptr %6, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !3
  %86 = add nsw i64 %indvars.iv, -1
  %87 = getelementptr i32, ptr %.unpack430, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !3
  %89 = add i32 %88, %85
  store i32 %89, ptr %84, align 4, !tbaa !3
  %90 = add i32 %.0473, 10
  br label %91

91:                                               ; preds = %81, %72
  %.1 = phi i32 [ %90, %81 ], [ %.0473, %72 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond477.not = icmp eq i64 %indvars.iv, %69
  br i1 %exitcond477.not, label %._crit_edge.loopexit, label %72

._crit_edge.loopexit:                             ; preds = %91
  %.pre = load i32, ptr %6, align 4, !tbaa !3
  %.pre484 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !3
  %.pre486 = load i32, ptr %.phi.trans.insert485, align 4, !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %92 = phi i32 [ 0, %.preheader ], [ %.pre486, %._crit_edge.loopexit ]
  %93 = phi i32 [ 0, %.preheader ], [ %.pre484, %._crit_edge.loopexit ]
  %94 = phi i32 [ 0, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %.0.lcssa = phi i32 [ 0, %.preheader ], [ %.1, %._crit_edge.loopexit ]
  %95 = call dereferenceable_or_null(12) ptr @malloc(i64 12)
  %96 = icmp eq i32 %94, 0
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %95, align 4, !tbaa !3
  %98 = icmp eq i32 %93, 0
  %99 = zext i1 %98 to i32
  %100 = getelementptr i32, ptr %95, i64 1
  store i32 %99, ptr %100, align 4, !tbaa !3
  %101 = icmp eq i32 %92, 0
  %102 = zext i1 %101 to i32
  %103 = getelementptr i32, ptr %95, i64 2
  store i32 %102, ptr %103, align 4, !tbaa !3
  store ptr %95, ptr %1, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep179, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep181, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep183, align 4, !tbaa !7
  store i8 14, ptr %.fca.4.gep185, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep187, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep189, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep191, align 8, !tbaa !7
  store i64 3, ptr %.fca.7.0.1.gep193, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep195, align 8, !tbaa !7
  %104 = call i1 @_FortranAAny(ptr nonnull %1, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 19, i32 1)
  call void @free(ptr %95)
  br i1 %104, label %126, label %.lr.ph.i471.preheader

.lr.ph.i471.preheader:                            ; preds = %._crit_edge
  %105 = call dereferenceable_or_null(12) ptr @malloc(i64 12)
  %106 = load i32, ptr %4, align 4, !tbaa !3
  store i32 %106, ptr %105, align 4, !tbaa !3
  %107 = load i32, ptr %5, align 4, !tbaa !3
  %108 = getelementptr [3 x i32], ptr %105, i64 0, i64 1
  store i32 %107, ptr %108, align 4, !tbaa !3
  %109 = load i32, ptr %7, align 4, !tbaa !3
  %110 = call dereferenceable_or_null(24) ptr @realloc(ptr nonnull %105, i64 24)
  %111 = load i32, ptr %110, align 4, !tbaa !3
  %112 = sub i32 %94, %111
  %113 = call i32 @llvm.abs.i32(i32 %112, i1 false)
  %114 = getelementptr i32, ptr %110, i64 1
  %115 = load i32, ptr %114, align 4, !tbaa !3
  %116 = sub i32 %93, %115
  %117 = call i32 @llvm.abs.i32(i32 %116, i1 false)
  %118 = sub i32 %92, %109
  %119 = call i32 @llvm.abs.i32(i32 %118, i1 false)
  %120 = add i32 %117, %113
  %121 = add i32 %119, %120
  %122 = add i32 %.0.lcssa, -30
  %123 = add i32 %122, %121
  %.unpack416 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack423.unpack.unpack = load i64, ptr @_QFEans.7, align 8, !tbaa !7
  %124 = sub i64 %indvars.iv480, %.unpack423.unpack.unpack
  %125 = getelementptr i32, ptr %.unpack416, i64 %124
  store i32 %123, ptr %125, align 4, !tbaa !3
  call void @free(ptr %110)
  br label %126

126:                                              ; preds = %.lr.ph.i471.preheader, %._crit_edge
  %indvars.iv.next481 = add nuw nsw i64 %indvars.iv480, 1
  %exitcond483.not = icmp eq i64 %indvars.iv480, %66
  br i1 %exitcond483.not, label %._crit_edge475, label %.preheader

._crit_edge475:                                   ; preds = %126, %53, %__mlir_math_ipowi_i32.exit470
  %127 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 25)
  %.unpack404 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack411.unpack.unpack = load i64, ptr @_QFEans.7, align 8, !tbaa !7
  %.unpack411.unpack.unpack413 = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  %128 = icmp eq i64 %.unpack411.unpack.unpack413, 0
  %129 = select i1 %128, i64 1, i64 %.unpack411.unpack.unpack
  store ptr %.unpack404, ptr %2, align 8, !tbaa !7
  %.fca.1.gep159 = 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.gep159, align 8, !tbaa !7
  %.fca.2.gep161 = 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.gep161, align 8, !tbaa !7
  %.fca.3.gep163 = 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.gep163, align 4, !tbaa !7
  %.fca.4.gep165 = 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.gep165, align 1, !tbaa !7
  %.fca.5.gep167 = 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.gep167, align 2, !tbaa !7
  %.fca.6.gep169 = 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.gep169, align 1, !tbaa !7
  %.fca.7.0.0.gep171 = 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 %129, ptr %.fca.7.0.0.gep171, align 8, !tbaa !7
  %.fca.7.0.1.gep173 = 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 %.unpack411.unpack.unpack413, ptr %.fca.7.0.1.gep173, align 8, !tbaa !7
  %.fca.7.0.2.gep175 = 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.gep175, align 8, !tbaa !7
  %130 = call i32 @_FortranAMinvalInteger4(ptr nonnull %2, ptr nonnull @_QQcl.30ce1d256f5e12fbc7f5accb8e9e998b, i32 25, i32 0, ptr null)
  %131 = call i1 @_FortranAioOutputInteger32(ptr %127, i32 %130)
  %132 = call i32 @_FortranAioEndIoStatement(ptr %127)
  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 {} @_FortranAReportFatalUserError(ptr, ptr, i32) local_unnamed_addr

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture, i64 noundef) local_unnamed_addr #2

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

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

declare i32 @_FortranAMinvalInteger4(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) #3

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

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

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 nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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}
