integer a
character s*16,t*16
a=0
t="CODEFESTIVAL2016"
read*,s
do i=1,16
	if(s(i:i)/=t(i:i))a=a+1
end do
print*, a
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"

@_QQcl.434F4445464553544956414C32303136 = linkonce local_unnamed_addr constant [16 x i8] c"CODEFESTIVAL2016"
@_QQcl.5409f15955098a123fc0dc4b981c5e30 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7825/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [16 x i8], align 1
  %2 = alloca [16 x i8], align 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %2, ptr noundef nonnull align 1 dereferenceable(16) @_QQcl.434F4445464553544956414C32303136, i64 16, i1 false)
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.5409f15955098a123fc0dc4b981c5e30, i32 5)
  %4 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %1, i64 16)
  %5 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %6 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %2, i64 1, i64 1)
  %.not = icmp ne i32 %6, 0
  %7 = zext i1 %.not to i32
  %8 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 1
  %9 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 1
  %10 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %8, ptr nonnull %9, i64 1, i64 1)
  %.not.1 = icmp ne i32 %10, 0
  %11 = zext i1 %.not.1 to i32
  %spec.select.1 = add nuw nsw i32 %7, %11
  %12 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 2
  %13 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 2
  %14 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %12, ptr nonnull %13, i64 1, i64 1)
  %.not.2 = icmp ne i32 %14, 0
  %15 = zext i1 %.not.2 to i32
  %spec.select.2 = add nuw nsw i32 %spec.select.1, %15
  %16 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 3
  %17 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 3
  %18 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %16, ptr nonnull %17, i64 1, i64 1)
  %.not.3 = icmp ne i32 %18, 0
  %19 = zext i1 %.not.3 to i32
  %spec.select.3 = add nuw nsw i32 %spec.select.2, %19
  %20 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 4
  %21 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 4
  %22 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %20, ptr nonnull %21, i64 1, i64 1)
  %.not.4 = icmp ne i32 %22, 0
  %23 = zext i1 %.not.4 to i32
  %spec.select.4 = add nuw nsw i32 %spec.select.3, %23
  %24 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 5
  %25 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 5
  %26 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %24, ptr nonnull %25, i64 1, i64 1)
  %.not.5 = icmp ne i32 %26, 0
  %27 = zext i1 %.not.5 to i32
  %spec.select.5 = add nuw nsw i32 %spec.select.4, %27
  %28 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 6
  %29 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 6
  %30 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %28, ptr nonnull %29, i64 1, i64 1)
  %.not.6 = icmp ne i32 %30, 0
  %31 = zext i1 %.not.6 to i32
  %spec.select.6 = add nuw nsw i32 %spec.select.5, %31
  %32 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 7
  %33 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 7
  %34 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %32, ptr nonnull %33, i64 1, i64 1)
  %.not.7 = icmp ne i32 %34, 0
  %35 = zext i1 %.not.7 to i32
  %spec.select.7 = add nuw nsw i32 %spec.select.6, %35
  %36 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 8
  %37 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 8
  %38 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %36, ptr nonnull %37, i64 1, i64 1)
  %.not.8 = icmp ne i32 %38, 0
  %39 = zext i1 %.not.8 to i32
  %spec.select.8 = add nuw nsw i32 %spec.select.7, %39
  %40 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 9
  %41 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 9
  %42 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %40, ptr nonnull %41, i64 1, i64 1)
  %.not.9 = icmp ne i32 %42, 0
  %43 = zext i1 %.not.9 to i32
  %spec.select.9 = add nuw nsw i32 %spec.select.8, %43
  %44 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 10
  %45 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 10
  %46 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %44, ptr nonnull %45, i64 1, i64 1)
  %.not.10 = icmp ne i32 %46, 0
  %47 = zext i1 %.not.10 to i32
  %spec.select.10 = add nuw nsw i32 %spec.select.9, %47
  %48 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 11
  %49 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 11
  %50 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %48, ptr nonnull %49, i64 1, i64 1)
  %.not.11 = icmp ne i32 %50, 0
  %51 = zext i1 %.not.11 to i32
  %spec.select.11 = add nuw nsw i32 %spec.select.10, %51
  %52 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 12
  %53 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 12
  %54 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %52, ptr nonnull %53, i64 1, i64 1)
  %.not.12 = icmp ne i32 %54, 0
  %55 = zext i1 %.not.12 to i32
  %spec.select.12 = add nuw nsw i32 %spec.select.11, %55
  %56 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 13
  %57 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 13
  %58 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %56, ptr nonnull %57, i64 1, i64 1)
  %.not.13 = icmp ne i32 %58, 0
  %59 = zext i1 %.not.13 to i32
  %spec.select.13 = add nuw nsw i32 %spec.select.12, %59
  %60 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 14
  %61 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 14
  %62 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %60, ptr nonnull %61, i64 1, i64 1)
  %.not.14 = icmp ne i32 %62, 0
  %63 = zext i1 %.not.14 to i32
  %spec.select.14 = add nuw nsw i32 %spec.select.13, %63
  %64 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 15
  %65 = getelementptr inbounds [16 x [1 x i8]], ptr %2, i64 0, i64 15
  %66 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %64, ptr nonnull %65, i64 1, i64 1)
  %.not.15 = icmp ne i32 %66, 0
  %67 = zext i1 %.not.15 to i32
  %spec.select.15 = add nuw nsw i32 %spec.select.14, %67
  %68 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.5409f15955098a123fc0dc4b981c5e30, i32 9)
  %69 = call i1 @_FortranAioOutputInteger32(ptr %68, i32 %spec.select.15)
  %70 = call i32 @_FortranAioEndIoStatement(ptr %68)
  ret void
}

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

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

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