program main
  implicit none
  integer i,N
  real(8) ans1,ans2
  real(8),allocatable :: v(:)
  read(*, *) N
  allocate(v(N))
  read(*, *) (v(i), i = 1,N)

  call qsort(v)

  do i = 1,N-1
    v(i+1) = (v(i+1)+v(i))/2
  end do

  write(*, *) v(N)

  contains

  recursive subroutine qsort(a)
  implicit none
  !integer(8),intent(in) :: n
  real(8),intent(inout) :: a(:)
  integer::i,j,n
  real(8)::toobig,toosmall,pv
  n = size(a)
  i = 1
  j = n
  pv = a((i+j)/2)
  do
     do
       if (a(i) < pv) then
         i = i+1
       else
         exit
       end if
     end do
     do
       if(a(j) > pv) then
         j = j-1
       else
         exit
       end if
     end do
     if (i>=j) then
       exit
     else
       toobig = a(j)
       toosmall = a(i)
       a(i) = toobig
       a(j) = toosmall
       i = i+1
       j = j-1
     end if
   end do
   if (i > 2) then
     call qsort(a(1:i-1))
   end if
   if (j < n-1) then
     call qsort(a(j+1:n))
   end if
  end subroutine qsort
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"

@_QFEv.0 = internal unnamed_addr global ptr null
@_QFEv.8 = internal unnamed_addr global i64 0
@_QQcl.ba1b8a827a5a01083729a11a4bcf2243 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_3461/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 i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.ba1b8a827a5a01083729a11a4bcf2243, i32 6)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %5 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %6 = load i32, ptr %2, align 4, !tbaa !3
  %7 = call i32 @llvm.smax.i32(i32 %6, i32 0)
  %8 = zext i32 %7 to i64
  %9 = shl nuw nsw i64 %8, 3
  %10 = call ptr @malloc(i64 %9)
  store ptr %10, ptr @_QFEv.0, align 8, !tbaa !7
  store i64 %8, ptr @_QFEv.8, align 8, !tbaa !7
  %11 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.ba1b8a827a5a01083729a11a4bcf2243, i32 8)
  %12 = load i32, ptr %2, align 4, !tbaa !3
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %14 = zext i32 %12 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %15 = phi i64 [ %20, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %.unpack175 = load ptr, ptr @_QFEv.0, align 8, !tbaa !7
  %sext = shl i64 %15, 32
  %16 = ashr exact i64 %sext, 32
  %17 = add nsw i64 %16, -1
  %18 = getelementptr double, ptr %.unpack175, i64 %17
  %19 = call i1 @_FortranAioInputReal64(ptr %11, ptr %18)
  %20 = add nuw nsw i64 %15, 1
  %exitcond.not = icmp eq i64 %15, %14
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %21 = call i32 @_FortranAioEndIoStatement(ptr %11)
  %.unpack = load ptr, ptr @_QFEv.0, align 8, !tbaa !7
  %.unpack146.unpack.unpack148 = load i64, ptr @_QFEv.8, align 8, !tbaa !7
  store ptr %.unpack, 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 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 %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 28, 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 %.unpack146.unpack.unpack148, 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 8, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  call void @_QFPqsort(ptr nonnull %1)
  %22 = load i32, ptr %2, align 4, !tbaa !3
  %23 = add i32 %22, -1
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph188.lver.check, label %._crit_edge189

.lr.ph188.lver.check:                             ; preds = %._crit_edge
  %25 = zext i32 %23 to i64
  %26 = add nsw i64 %25, -1
  %27 = trunc i64 %26 to i32
  %28 = icmp ugt i32 %27, 2147483645
  %29 = icmp ugt i64 %26, 4294967295
  %30 = or i1 %28, %29
  br i1 %30, label %.lr.ph188.lver.orig.preheader, label %.lr.ph188.ph

.lr.ph188.lver.orig.preheader:                    ; preds = %.lr.ph188.lver.check
  %xtraiter195 = and i64 %25, 1
  %31 = icmp eq i64 %26, 0
  br i1 %31, label %._crit_edge189.loopexit.unr-lcssa, label %.lr.ph188.lver.orig.preheader.new

.lr.ph188.lver.orig.preheader.new:                ; preds = %.lr.ph188.lver.orig.preheader
  %unroll_iter197 = and i64 %25, 4294967294
  br label %.lr.ph188.lver.orig

.lr.ph188.lver.orig:                              ; preds = %.lr.ph188.lver.orig, %.lr.ph188.lver.orig.preheader.new
  %indvars.iv.lver.orig = phi i64 [ 1, %.lr.ph188.lver.orig.preheader.new ], [ %indvars.iv.next.lver.orig.1, %.lr.ph188.lver.orig ]
  %niter198 = phi i64 [ 0, %.lr.ph188.lver.orig.preheader.new ], [ %niter198.next.1, %.lr.ph188.lver.orig ]
  %indvars.iv.next.lver.orig = shl i64 %indvars.iv.lver.orig, 32
  %sext192.lver.orig = add i64 %indvars.iv.next.lver.orig, 4294967296
  %32 = ashr exact i64 %sext192.lver.orig, 32
  %33 = add nsw i64 %32, -1
  %34 = getelementptr double, ptr %.unpack, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !3
  %36 = add nsw i64 %indvars.iv.lver.orig, -1
  %37 = getelementptr double, ptr %.unpack, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !3
  %39 = fadd contract double %35, %38
  %40 = fmul contract double %39, 5.000000e-01
  store double %40, ptr %34, align 8, !tbaa !3
  %indvars.iv.next.lver.orig.1 = add nuw nsw i64 %indvars.iv.lver.orig, 2
  %sext192.lver.orig.1 = shl i64 %indvars.iv.next.lver.orig.1, 32
  %41 = ashr exact i64 %sext192.lver.orig.1, 32
  %42 = add nsw i64 %41, -1
  %43 = getelementptr double, ptr %.unpack, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !3
  %45 = getelementptr double, ptr %.unpack, i64 %indvars.iv.lver.orig
  %46 = load double, ptr %45, align 8, !tbaa !3
  %47 = fadd contract double %44, %46
  %48 = fmul contract double %47, 5.000000e-01
  store double %48, ptr %43, align 8, !tbaa !3
  %niter198.next.1 = add i64 %niter198, 2
  %niter198.ncmp.1 = icmp eq i64 %niter198.next.1, %unroll_iter197
  br i1 %niter198.ncmp.1, label %._crit_edge189.loopexit.unr-lcssa, label %.lr.ph188.lver.orig

.lr.ph188.ph:                                     ; preds = %.lr.ph188.lver.check
  %load_initial = load double, ptr %.unpack, align 8
  %xtraiter = and i64 %25, 1
  %49 = icmp eq i64 %26, 0
  br i1 %49, label %._crit_edge189.loopexit194.unr-lcssa, label %.lr.ph188.ph.new

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

.lr.ph188:                                        ; preds = %.lr.ph188, %.lr.ph188.ph.new
  %store_forwarded = phi double [ %load_initial, %.lr.ph188.ph.new ], [ %61, %.lr.ph188 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph188.ph.new ], [ %indvars.iv.next.1, %.lr.ph188 ]
  %niter = phi i64 [ 0, %.lr.ph188.ph.new ], [ %niter.next.1, %.lr.ph188 ]
  %indvars.iv.next = shl i64 %indvars.iv, 32
  %sext192 = add i64 %indvars.iv.next, 4294967296
  %50 = ashr exact i64 %sext192, 32
  %51 = add nsw i64 %50, -1
  %52 = getelementptr double, ptr %.unpack, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !3
  %54 = fadd contract double %53, %store_forwarded
  %55 = fmul contract double %54, 5.000000e-01
  store double %55, ptr %52, align 8, !tbaa !3
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %sext192.1 = shl i64 %indvars.iv.next.1, 32
  %56 = ashr exact i64 %sext192.1, 32
  %57 = add nsw i64 %56, -1
  %58 = getelementptr double, ptr %.unpack, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !3
  %60 = fadd contract double %59, %55
  %61 = fmul contract double %60, 5.000000e-01
  store double %61, ptr %58, align 8, !tbaa !3
  %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_edge189.loopexit194.unr-lcssa.loopexit, label %.lr.ph188

._crit_edge189.loopexit.unr-lcssa:                ; preds = %.lr.ph188.lver.orig, %.lr.ph188.lver.orig.preheader
  %indvars.iv.lver.orig.unr = phi i64 [ 1, %.lr.ph188.lver.orig.preheader ], [ %indvars.iv.next.lver.orig.1, %.lr.ph188.lver.orig ]
  %lcmp.mod196.not = icmp eq i64 %xtraiter195, 0
  br i1 %lcmp.mod196.not, label %._crit_edge189, label %.lr.ph188.lver.orig.epil

.lr.ph188.lver.orig.epil:                         ; preds = %._crit_edge189.loopexit.unr-lcssa
  %indvars.iv.next.lver.orig.epil = shl i64 %indvars.iv.lver.orig.unr, 32
  %sext192.lver.orig.epil = add i64 %indvars.iv.next.lver.orig.epil, 4294967296
  %62 = ashr exact i64 %sext192.lver.orig.epil, 32
  %63 = add nsw i64 %62, -1
  %64 = getelementptr double, ptr %.unpack, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !3
  %66 = add nsw i64 %indvars.iv.lver.orig.unr, -1
  %67 = getelementptr double, ptr %.unpack, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !3
  %69 = fadd contract double %65, %68
  %70 = fmul contract double %69, 5.000000e-01
  store double %70, ptr %64, align 8, !tbaa !3
  br label %._crit_edge189

._crit_edge189.loopexit194.unr-lcssa.loopexit:    ; preds = %.lr.ph188
  %71 = shl i64 %indvars.iv, 32
  %72 = add i64 %71, 12884901888
  %73 = ashr exact i64 %72, 32
  %74 = add nsw i64 %73, -1
  br label %._crit_edge189.loopexit194.unr-lcssa

._crit_edge189.loopexit194.unr-lcssa:             ; preds = %._crit_edge189.loopexit194.unr-lcssa.loopexit, %.lr.ph188.ph
  %store_forwarded.unr = phi double [ %load_initial, %.lr.ph188.ph ], [ %61, %._crit_edge189.loopexit194.unr-lcssa.loopexit ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph188.ph ], [ %74, %._crit_edge189.loopexit194.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge189, label %.lr.ph188.epil

.lr.ph188.epil:                                   ; preds = %._crit_edge189.loopexit194.unr-lcssa
  %75 = getelementptr double, ptr %.unpack, i64 %indvars.iv.unr
  %76 = load double, ptr %75, align 8, !tbaa !3
  %77 = fadd contract double %76, %store_forwarded.unr
  %78 = fmul contract double %77, 5.000000e-01
  store double %78, ptr %75, align 8, !tbaa !3
  br label %._crit_edge189

._crit_edge189:                                   ; preds = %.lr.ph188.epil, %._crit_edge189.loopexit194.unr-lcssa, %.lr.ph188.lver.orig.epil, %._crit_edge189.loopexit.unr-lcssa, %._crit_edge
  %79 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.ba1b8a827a5a01083729a11a4bcf2243, i32 16)
  %.unpack151 = load ptr, ptr @_QFEv.0, align 8, !tbaa !7
  %80 = load i32, ptr %2, align 4, !tbaa !3
  %81 = sext i32 %80 to i64
  %82 = add nsw i64 %81, -1
  %83 = getelementptr double, ptr %.unpack151, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !3
  %85 = call i1 @_FortranAioOutputReal64(ptr %79, double %84)
  %86 = call i32 @_FortranAioEndIoStatement(ptr %79)
  ret void
}

; Function Attrs: nofree nosync nounwind memory(readwrite, inaccessiblemem: none)
define void @_QFPqsort(ptr nocapture readonly %0) local_unnamed_addr #1 {
  %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 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 1
  %5 = load i64, ptr %4, align 8, !tbaa !7
  %6 = trunc i64 %5 to i32
  %7 = add i32 %6, 1
  %8 = sdiv i32 %7, 2
  %narrow = add nsw i32 %8, -1
  %9 = sext i32 %narrow to i64
  %10 = load ptr, ptr %0, align 8, !tbaa !7
  %11 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 2
  %12 = load i64, ptr %11, align 8, !tbaa !7
  %13 = mul i64 %12, %9
  %14 = getelementptr i8, ptr %10, i64 %13
  %15 = load double, ptr %14, align 8, !tbaa !3
  br label %.outer

.outer:                                           ; preds = %55, %1
  %.044.ph = phi i32 [ %32, %55 ], [ %6, %1 ]
  %.0.ph = phi i32 [ %23, %55 ], [ 1, %1 ]
  br label %16

16:                                               ; preds = %16, %.outer
  %.0 = phi i32 [ %23, %16 ], [ %.0.ph, %.outer ]
  %17 = sext i32 %.0 to i64
  %18 = add nsw i64 %17, -1
  %19 = mul i64 %18, %12
  %20 = getelementptr i8, ptr %10, i64 %19
  %21 = load double, ptr %20, align 8, !tbaa !3
  %22 = fcmp olt double %21, %15
  %23 = add i32 %.0, 1
  br i1 %22, label %16, label %.preheader

.preheader:                                       ; preds = %16
  %24 = getelementptr i8, ptr %10, i64 %19
  br label %25

25:                                               ; preds = %25, %.preheader
  %.1 = phi i32 [ %32, %25 ], [ %.044.ph, %.preheader ]
  %26 = sext i32 %.1 to i64
  %27 = add nsw i64 %26, -1
  %28 = mul i64 %27, %12
  %29 = getelementptr i8, ptr %10, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !3
  %31 = fcmp ogt double %30, %15
  %32 = add i32 %.1, -1
  br i1 %31, label %25, label %33

33:                                               ; preds = %25
  %.not = icmp slt i32 %.0, %.1
  br i1 %.not, label %55, label %34

34:                                               ; preds = %33
  %35 = icmp sgt i32 %.0, 2
  br i1 %35, label %36, label %39

36:                                               ; preds = %34
  %37 = add nsw i32 %.0, -1
  %38 = zext i32 %37 to i64
  store ptr %10, ptr %2, align 8, !tbaa !7
  %.fca.1.gep27 = 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.gep27, align 8, !tbaa !7
  %.fca.2.gep29 = 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.gep29, align 8, !tbaa !7
  %.fca.3.gep31 = 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.gep31, align 4, !tbaa !7
  %.fca.4.gep33 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 28, ptr %.fca.4.gep33, align 1, !tbaa !7
  %.fca.5.gep35 = 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.gep35, align 2, !tbaa !7
  %.fca.6.gep37 = 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.gep37, align 1, !tbaa !7
  %.fca.7.0.0.gep39 = 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.gep39, align 8, !tbaa !7
  %.fca.7.0.1.gep41 = 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 %38, ptr %.fca.7.0.1.gep41, align 8, !tbaa !7
  %.fca.7.0.2.gep43 = 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 %12, ptr %.fca.7.0.2.gep43, align 8, !tbaa !7
  call void @_QFPqsort(ptr nonnull %2)
  br label %39

39:                                               ; preds = %36, %34
  %40 = add i32 %6, -1
  %41 = icmp slt i32 %.1, %40
  br i1 %41, label %42, label %54

42:                                               ; preds = %39
  %43 = add nsw i32 %.1, 1
  %44 = sext i32 %43 to i64
  %sext = shl i64 %5, 32
  %45 = ashr exact i64 %sext, 32
  %46 = load i64, ptr %11, align 8, !tbaa !7
  %47 = load ptr, ptr %0, align 8, !tbaa !7
  %48 = add nsw i64 %44, -1
  %49 = mul i64 %46, %48
  %50 = getelementptr i8, ptr %47, i64 %49
  %51 = sub nsw i64 %45, %44
  %52 = tail call i64 @llvm.smax.i64(i64 %51, i64 -1)
  %53 = add nsw i64 %52, 1
  store ptr %50, 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 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 %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 28, 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 %53, 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 %46, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  call void @_QFPqsort(ptr nonnull %3)
  br label %54

54:                                               ; preds = %42, %39
  ret void

55:                                               ; preds = %33
  %56 = getelementptr i8, ptr %10, i64 %28
  store double %30, ptr %24, align 8, !tbaa !3
  store double %21, ptr %56, align 8, !tbaa !3
  br label %.outer
}

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 @_FortranAioInputReal64(ptr, ptr) local_unnamed_addr

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

declare i1 @_FortranAioOutputReal64(ptr, double) 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

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