program echo
    implicit none
    integer(4):: n, i
    character(:), allocatable:: s

    read*, n
    allocate(character(n):: s)
    read*, s

    if (mod(n,2) /= 0) then
        print*, "No"
        stop
    end if

    if(s(1:n/2) == s(n/2+1:n))then
        print*, "Yes"
    else
        print*, "No"
    end if
end program echo
; 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"

@_QQcl.6c1cee22be5d21d60281f80dad9b7933 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2990/source.f\00"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_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 i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.6c1cee22be5d21d60281f80dad9b7933, i32 6)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = load i32, ptr %1, align 4, !tbaa !3
  %6 = call i32 @llvm.smax.i32(i32 %5, i32 0)
  %7 = zext i32 %6 to i64
  %8 = call ptr @malloc(i64 %7)
  %9 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.6c1cee22be5d21d60281f80dad9b7933, i32 8)
  %10 = call i1 @_FortranAioInputAscii(ptr %9, ptr %8, i64 %7)
  %11 = call i32 @_FortranAioEndIoStatement(ptr %9)
  %12 = load i32, ptr %1, align 4, !tbaa !3
  %13 = and i32 %12, 1
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %19, label %14

14:                                               ; preds = %0
  %15 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6c1cee22be5d21d60281f80dad9b7933, i32 11)
  %16 = call i1 @_FortranAioOutputAscii(ptr %15, ptr nonnull @_QQcl.4E6F, i64 2)
  %17 = call i32 @_FortranAioEndIoStatement(ptr %15)
  %18 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

19:                                               ; preds = %0
  %20 = sdiv i32 %12, 2
  %21 = call i32 @llvm.smax.i32(i32 %20, i32 0)
  %22 = zext i32 %21 to i64
  %23 = add nsw i32 %20, 1
  %24 = sext i32 %23 to i64
  %25 = sext i32 %12 to i64
  %26 = add nsw i64 %24, -1
  %27 = getelementptr [1 x i8], ptr %8, i64 %26
  %28 = sub nsw i64 %25, %24
  %29 = call i64 @llvm.smax.i64(i64 %28, i64 -1)
  %30 = add nsw i64 %29, 1
  %31 = call i32 @_FortranACharacterCompareScalar1(ptr %8, ptr %27, i64 %22, i64 %30)
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %19
  %34 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6c1cee22be5d21d60281f80dad9b7933, i32 16)
  %35 = call i1 @_FortranAioOutputAscii(ptr %34, ptr nonnull @_QQcl.596573, i64 3)
  br label %39

36:                                               ; preds = %19
  %37 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6c1cee22be5d21d60281f80dad9b7933, i32 18)
  %38 = call i1 @_FortranAioOutputAscii(ptr %37, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %39

39:                                               ; preds = %33, %36
  %.sink = phi ptr [ %34, %33 ], [ %37, %36 ]
  %40 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_FortranAioInputAscii(ptr, ptr, i64) local_unnamed_addr

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

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

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

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

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

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

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