program kadai
    implicit none
    character(len=100001) ::  S
    integer  ::  flag(100001)
    integer  ::  e,l,i,j
    integer  ::  left,med
integer,allocatable  ::  lefflag(:)
    integer  ::  right
    integer,allocatable  ::  ans(:)

    read(*,*) S

    flag=0
    i=1
    e=len_trim(S)
    do i=1,e
        if (S(i:i)=="R") then
            flag(i)=1
        end if
            if (S(i:i)=="L") then
            flag(i)=2
        end if
        if (S(i:i)=="0") then
            e=i
            exit
        end if
    end do

    allocate(ans(e))
    allocate(lefflag(e))

    left=1
    right=0
    lefflag=0
    ans=0
    do i=1,e
        if (flag(i)==2 .and. i>right) then
            if (flag(i+1)==1 .or. i==e) then
                right=i
                l=mod(right-left,2)
                if (l==0) then
                    ans(right)=ans(right)+(right-left+2)/2
                    ans(right-1)=ans(right-1)+(right-left)/2
                end if
                if (l==1) then
                    ans(right)=ans(right)+(right-left+1)/2
                    ans(right-1)=ans(right-1)+(right-left+1)/2
                end if
                left=right+1
            end if
            if (flag(i+1)==2) then
                med=i
                do j=med,e
                    if (j==e) then
                        right=j
                        exit
                    end if
                    if (flag(j)==1) then
                        right=j-1
                        exit
                    end if
                end do
                l=mod(med-left,2)
                if (l==0) then
                    ans(med)=ans(med)+(med-left+2)/2
                    ans(med-1)=ans(med-1)+(med-left)/2
                end if
                if (l==1) then
                    ans(med)=ans(med)+(med-left+1)/2
                    ans(med-1)=ans(med-1)+(med-left+1)/2
                end if

                l=mod(right-med,2)
                if (l==0) then
                    ans(med-1)=ans(med-1)+(right-med)/2
                    ans(med)=ans(med)+(right-med+2)/2-1
                end if
                if (l==1) then
                    ans(med-1)=ans(med-1)+(right-med+1)/2
                    ans(med)=ans(med)+(right-med+1)/2-1
                end if
            end if
        left=right+1
        end if
    end do

write(*,*) ans


stop
contains

end program kadai

; 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
@_QFEflag = internal unnamed_addr global [100001 x i32] undef
@_QFElefflag.0 = internal unnamed_addr global ptr null
@_QFElefflag.7 = internal unnamed_addr global i64 1
@_QFEs = internal global [100001 x i8] undef
@_QQcl.fc3b6278775467ffbcb6426e7b6fdc47 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_3616/source.f\00"
@_QQcl.52 = linkonce constant [1 x i8] c"R"
@_QQcl.4C = linkonce constant [1 x i8] c"L"
@_QQcl.30 = linkonce constant [1 x i8] c"0"
@_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: noreturn
define void @_QQmain() local_unnamed_addr #1 {
.preheader957.preheader:
  %0 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.fc3b6278775467ffbcb6426e7b6fdc47, i32 11)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 100001)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @_QFEflag, i8 0, i64 400004, i1 false), !tbaa !3
  br label %.preheader957

.preheader957:                                    ; preds = %.preheader957.preheader, %.preheader957
  %4 = phi i64 [ %8, %.preheader957 ], [ 100000, %.preheader957.preheader ]
  %5 = getelementptr [100001 x [1 x i8]], ptr @_QFEs, i64 0, i64 %4
  %6 = load i8, ptr %5, align 1, !tbaa !3
  %7 = icmp eq i8 %6, 32
  %8 = add nsw i64 %4, -1
  %9 = icmp ne i64 %4, 0
  %10 = and i1 %7, %9
  br i1 %10, label %.preheader957, label %11

11:                                               ; preds = %.preheader957
  %12 = trunc i64 %4 to i32
  %13 = add i32 %12, 1
  %14 = select i1 %7, i32 0, i32 %13
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %11
  %16 = add nuw i32 %14, 1
  %wide.trip.count = zext i32 %16 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %31
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %31 ]
  %17 = add nsw i64 %indvars.iv, -1
  %18 = getelementptr [100001 x [1 x i8]], ptr @_QFEs, i64 0, i64 %17
  %19 = tail call i32 @_FortranACharacterCompareScalar1(ptr %18, ptr nonnull @_QQcl.52, i64 1, i64 1)
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %.lr.ph
  %22 = getelementptr [100001 x i32], ptr @_QFEflag, i64 0, i64 %17
  store i32 1, ptr %22, align 4, !tbaa !3
  br label %23

23:                                               ; preds = %21, %.lr.ph
  %24 = tail call i32 @_FortranACharacterCompareScalar1(ptr %18, ptr nonnull @_QQcl.4C, i64 1, i64 1)
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = getelementptr [100001 x i32], ptr @_QFEflag, i64 0, i64 %17
  store i32 2, ptr %27, align 4, !tbaa !3
  br label %28

28:                                               ; preds = %26, %23
  %29 = tail call i32 @_FortranACharacterCompareScalar1(ptr %18, ptr nonnull @_QQcl.30, i64 1, i64 1)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %._crit_edge.loopexit.split.loop.exit, label %31

31:                                               ; preds = %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit.split.loop.exit:             ; preds = %28
  %32 = trunc i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %31, %._crit_edge.loopexit.split.loop.exit, %11
  %.0718 = phi i32 [ %14, %11 ], [ %32, %._crit_edge.loopexit.split.loop.exit ], [ %14, %31 ]
  %33 = tail call i32 @llvm.smax.i32(i32 %.0718, i32 0)
  %34 = zext i32 %33 to i64
  %35 = shl nuw nsw i64 %34, 2
  %36 = tail 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 = tail call ptr @malloc(i64 %35)
  store ptr %37, ptr @_QFElefflag.0, align 8, !tbaa !7
  store i64 1, ptr @_QFElefflag.7, align 8, !tbaa !7
  %.not = icmp eq ptr %37, null
  br i1 %.not, label %40, label %.preheader955

.preheader955:                                    ; preds = %._crit_edge
  %.not983 = icmp slt i32 %.0718, 1
  br i1 %.not983, label %.loopexit956, label %.lr.ph964.preheader

.lr.ph964.preheader:                              ; preds = %.preheader955
  %38 = tail call i64 @llvm.smax.i64(i64 %34, i64 1)
  %39 = shl nuw nsw i64 %38, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %37, i8 0, i64 %39, i1 false), !tbaa !3
  br label %.loopexit956

40:                                               ; preds = %._crit_edge
  %41 = tail call {} @_FortranAReportFatalUserError(ptr nonnull @_QQcl.16373402fa3425c6e46827601abb88fa, ptr nonnull @_QQcl.fc3b6278775467ffbcb6426e7b6fdc47, i32 34)
  %.unpack939.unpack.unpack = load i64, ptr @_QFElefflag.7, align 8, !tbaa !7
  %42 = icmp slt i32 %.0718, 1
  %43 = select i1 %42, i64 1, i64 %.unpack939.unpack.unpack
  store i64 %43, ptr @_QFElefflag.7, align 8, !tbaa !7
  %.unpack.pre = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack749.unpack.unpack751.pre = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  br label %.loopexit956

.loopexit956:                                     ; preds = %.lr.ph964.preheader, %.preheader955, %40
  %.unpack749.unpack.unpack751 = phi i64 [ %34, %.lr.ph964.preheader ], [ %34, %.preheader955 ], [ %.unpack749.unpack.unpack751.pre, %40 ]
  %.unpack = phi ptr [ %36, %.lr.ph964.preheader ], [ %36, %.preheader955 ], [ %.unpack.pre, %40 ]
  %.not754 = icmp eq ptr %.unpack, null
  br i1 %.not754, label %46, label %.preheader

.preheader:                                       ; preds = %.loopexit956
  %44 = icmp sgt i64 %.unpack749.unpack.unpack751, 0
  br i1 %44, label %.lr.ph965.preheader, label %.loopexit954

.lr.ph965.preheader:                              ; preds = %.preheader
  %45 = shl nuw i64 %.unpack749.unpack.unpack751, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %.unpack, i8 0, i64 %45, i1 false), !tbaa !3
  br label %.loopexit954

46:                                               ; preds = %.loopexit956
  %47 = tail call {} @_FortranAReportFatalUserError(ptr nonnull @_QQcl.16373402fa3425c6e46827601abb88fa, ptr nonnull @_QQcl.fc3b6278775467ffbcb6426e7b6fdc47, i32 35)
  %.unpack918.unpack.unpack = load i64, ptr @_QFEans.7, align 8, !tbaa !7
  %48 = icmp eq i64 %.unpack749.unpack.unpack751, 0
  %49 = select i1 %48, i64 1, i64 %.unpack918.unpack.unpack
  store ptr null, ptr @_QFEans.0, align 8, !tbaa !7
  store i64 %49, ptr @_QFEans.7, align 8, !tbaa !7
  store i64 %.unpack749.unpack.unpack751, ptr @_QFEans.8, align 8, !tbaa !7
  br label %.loopexit954

.loopexit954:                                     ; preds = %.lr.ph965.preheader, %.preheader, %46
  %50 = icmp sgt i32 %.0718, 0
  br i1 %50, label %.lr.ph981, label %._crit_edge982

.lr.ph981:                                        ; preds = %.loopexit954
  %.unpack870.unpack.unpack = load i64, ptr @_QFEans.7, align 8
  br label %51

51:                                               ; preds = %.lr.ph981, %._crit_edge991
  %.0979 = phi i32 [ 0, %.lr.ph981 ], [ %.4, %._crit_edge991 ]
  %.0712978 = phi i32 [ 1, %.lr.ph981 ], [ %.2714, %._crit_edge991 ]
  %.1717974 = phi i32 [ 1, %.lr.ph981 ], [ %59, %._crit_edge991 ]
  %52 = sext i32 %.1717974 to i64
  %53 = add nsw i64 %52, -1
  %54 = getelementptr [100001 x i32], ptr @_QFEflag, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !3
  %56 = icmp eq i32 %55, 2
  %57 = icmp sgt i32 %.1717974, %.0979
  %58 = and i1 %57, %56
  %59 = add nuw i32 %.1717974, 1
  br i1 %58, label %60, label %._crit_edge991

60:                                               ; preds = %51
  %61 = sext i32 %59 to i64
  %62 = add nsw i64 %61, -1
  %63 = getelementptr [100001 x i32], ptr @_QFEflag, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !3
  %65 = icmp eq i32 %64, 1
  %66 = icmp eq i32 %.0718, %.1717974
  %67 = or i1 %66, %65
  br i1 %67, label %68, label %98

68:                                               ; preds = %60
  %69 = sub i32 %.1717974, %.0712978
  %70 = srem i32 %69, 2
  %71 = sdiv i32 %69, 2
  switch i32 %70, label %98 [
    i32 0, label %72
    i32 1, label %85
  ]

72:                                               ; preds = %68
  %73 = sub i64 %52, %.unpack870.unpack.unpack
  %74 = getelementptr i32, ptr %.unpack, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !3
  %76 = add i32 %69, 2
  %77 = sdiv i32 %76, 2
  %78 = add i32 %75, %77
  store i32 %78, ptr %74, align 4, !tbaa !3
  %79 = add nsw i32 %.1717974, -1
  %80 = sext i32 %79 to i64
  %81 = sub i64 %80, %.unpack870.unpack.unpack
  %82 = getelementptr i32, ptr %.unpack, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !3
  %84 = add i32 %83, %71
  store i32 %84, ptr %82, align 4, !tbaa !3
  br label %98

85:                                               ; preds = %68
  %86 = sub i64 %52, %.unpack870.unpack.unpack
  %87 = getelementptr i32, ptr %.unpack, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !3
  %89 = add i32 %69, 1
  %90 = sdiv i32 %89, 2
  %91 = add i32 %88, %90
  store i32 %91, ptr %87, align 4, !tbaa !3
  %92 = add nsw i32 %.1717974, -1
  %93 = sext i32 %92 to i64
  %94 = sub i64 %93, %.unpack870.unpack.unpack
  %95 = getelementptr i32, ptr %.unpack, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !3
  %97 = add i32 %96, %90
  store i32 %97, ptr %95, align 4, !tbaa !3
  br label %98

98:                                               ; preds = %72, %85, %68, %60
  %.1713 = phi i32 [ %.0712978, %60 ], [ %59, %68 ], [ %59, %85 ], [ %59, %72 ]
  %.1 = phi i32 [ %.0979, %60 ], [ %.1717974, %68 ], [ %.1717974, %85 ], [ %.1717974, %72 ]
  %99 = icmp eq i32 %64, 2
  br i1 %99, label %.lr.ph969.preheader, label %163

.lr.ph969.preheader:                              ; preds = %98
  %100 = icmp eq i32 %.1717974, %.0718
  br i1 %100, label %.loopexit, label %.lr.ph1003

.lr.ph1003:                                       ; preds = %.lr.ph969.preheader, %.lr.ph969
  %.07159661002 = phi i32 [ %108, %.lr.ph969 ], [ %.1717974, %.lr.ph969.preheader ]
  %101 = sext i32 %.07159661002 to i64
  %102 = add nsw i64 %101, -1
  %103 = getelementptr [100001 x i32], ptr @_QFEflag, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !3
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %.lr.ph969

106:                                              ; preds = %.lr.ph1003
  %107 = add i32 %.07159661002, -1
  br label %.loopexit

.lr.ph969:                                        ; preds = %.lr.ph1003
  %108 = add nuw i32 %.07159661002, 1
  %109 = icmp eq i32 %108, %.0718
  br i1 %109, label %.loopexit, label %.lr.ph1003

.loopexit:                                        ; preds = %.lr.ph969, %.lr.ph969.preheader, %106
  %.2 = phi i32 [ %107, %106 ], [ %.0718, %.lr.ph969.preheader ], [ %.0718, %.lr.ph969 ]
  %110 = sub i32 %.1717974, %.1713
  %111 = srem i32 %110, 2
  %112 = sdiv i32 %110, 2
  switch i32 %111, label %139 [
    i32 0, label %113
    i32 1, label %126
  ]

113:                                              ; preds = %.loopexit
  %114 = sub i64 %52, %.unpack870.unpack.unpack
  %115 = getelementptr i32, ptr %.unpack, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !3
  %117 = add i32 %110, 2
  %118 = sdiv i32 %117, 2
  %119 = add i32 %116, %118
  store i32 %119, ptr %115, align 4, !tbaa !3
  %120 = add i32 %.1717974, -1
  %121 = sext i32 %120 to i64
  %122 = sub i64 %121, %.unpack870.unpack.unpack
  %123 = getelementptr i32, ptr %.unpack, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !3
  %125 = add i32 %124, %112
  store i32 %125, ptr %123, align 4, !tbaa !3
  br label %139

126:                                              ; preds = %.loopexit
  %127 = sub i64 %52, %.unpack870.unpack.unpack
  %128 = getelementptr i32, ptr %.unpack, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !3
  %130 = add i32 %110, 1
  %131 = sdiv i32 %130, 2
  %132 = add i32 %129, %131
  store i32 %132, ptr %128, align 4, !tbaa !3
  %133 = add i32 %.1717974, -1
  %134 = sext i32 %133 to i64
  %135 = sub i64 %134, %.unpack870.unpack.unpack
  %136 = getelementptr i32, ptr %.unpack, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !3
  %138 = add i32 %137, %131
  store i32 %138, ptr %136, align 4, !tbaa !3
  br label %139

139:                                              ; preds = %113, %.loopexit, %126
  %140 = sub i32 %.2, %.1717974
  %141 = srem i32 %140, 2
  %142 = sdiv i32 %140, 2
  switch i32 %141, label %163 [
    i32 0, label %143
    i32 1, label %152
  ]

143:                                              ; preds = %139
  %144 = add i32 %.1717974, -1
  %145 = sext i32 %144 to i64
  %146 = sub i64 %145, %.unpack870.unpack.unpack
  %147 = getelementptr i32, ptr %.unpack, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !3
  %149 = add i32 %148, %142
  store i32 %149, ptr %147, align 4, !tbaa !3
  %150 = add i32 %140, 2
  %151 = sdiv i32 %150, 2
  br label %.sink.split

152:                                              ; preds = %139
  %153 = add i32 %.1717974, -1
  %154 = sext i32 %153 to i64
  %155 = sub i64 %154, %.unpack870.unpack.unpack
  %156 = getelementptr i32, ptr %.unpack, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !3
  %158 = add i32 %140, 1
  %159 = sdiv i32 %158, 2
  %160 = add i32 %157, %159
  store i32 %160, ptr %156, align 4, !tbaa !3
  br label %.sink.split

.sink.split:                                      ; preds = %152, %143
  %.sink = phi i32 [ %151, %143 ], [ %159, %152 ]
  %.pn = sub i64 %52, %.unpack870.unpack.unpack
  %.sink996 = getelementptr i32, ptr %.unpack, i64 %.pn
  %.sink998 = load i32, ptr %.sink996, align 4, !tbaa !3
  %161 = add nsw i32 %.sink, -1
  %162 = add i32 %161, %.sink998
  store i32 %162, ptr %.sink996, align 4, !tbaa !3
  br label %163

163:                                              ; preds = %.sink.split, %139, %98
  %.3 = phi i32 [ %.1, %98 ], [ %.2, %139 ], [ %.2, %.sink.split ]
  %164 = add i32 %.3, 1
  br label %._crit_edge991

._crit_edge991:                                   ; preds = %51, %163
  %.2714 = phi i32 [ %164, %163 ], [ %.0712978, %51 ]
  %.4 = phi i32 [ %.3, %163 ], [ %.0979, %51 ]
  %exitcond987.not = icmp eq i32 %.1717974, %.0718
  br i1 %exitcond987.not, label %._crit_edge982, label %51

._crit_edge982:                                   ; preds = %._crit_edge991, %.loopexit954
  %165 = tail call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.fc3b6278775467ffbcb6426e7b6fdc47, i32 87)
  %.unpack755 = load ptr, ptr @_QFEans.0, align 8, !tbaa !7
  %.unpack762.unpack.unpack = load i64, ptr @_QFEans.7, align 8, !tbaa !7
  %.unpack762.unpack.unpack764 = load i64, ptr @_QFEans.8, align 8, !tbaa !7
  %166 = icmp eq i64 %.unpack762.unpack.unpack764, 0
  %167 = select i1 %166, i64 1, i64 %.unpack762.unpack.unpack
  store ptr %.unpack755, ptr %0, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, 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 %0, 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 %0, 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 %0, 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 %0, 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 %0, 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 %0, i64 0, i32 7, i64 0, i64 0
  store i64 %167, 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 %0, i64 0, i32 7, i64 0, i64 1
  store i64 %.unpack762.unpack.unpack764, 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 %0, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %168 = call i1 @_FortranAioOutputDescriptor(ptr %165, ptr nonnull %0)
  %169 = call i32 @_FortranAioEndIoStatement(ptr %165)
  %170 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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

declare i1 @_FortranAioInputAscii(ptr, ptr, i64) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

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

declare {} @_FortranAReportFatalUserError(ptr, ptr, i32) local_unnamed_addr

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

declare i1 @_FortranAioOutputDescriptor(ptr, ptr) local_unnamed_addr

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

; Function Attrs: 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) #2

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { noreturn }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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}
