integer r,d
integer x(0:10)
read*,r,d,x(0)
do i=1,10
  x(i)=r*x(i-1)-D
  print*,x(i)
end do
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"

@_QFEx = internal global [11 x i32] undef
@_QQcl.2df8a2601c70ad58b76b1000e95b45d6 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4210/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 3)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull @_QFEx, i32 4)
  %7 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %8 = load i32, ptr %2, align 4, !tbaa !3
  %9 = load i32, ptr @_QFEx, align 16, !tbaa !3
  %10 = mul i32 %9, %8
  %11 = load i32, ptr %1, align 4, !tbaa !3
  %12 = sub i32 %10, %11
  store i32 %12, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 1), align 4, !tbaa !3
  %13 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %14 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 1), align 4, !tbaa !3
  %15 = call i1 @_FortranAioOutputInteger32(ptr %13, i32 %14)
  %16 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %17 = load i32, ptr %2, align 4, !tbaa !3
  %18 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 1), align 4, !tbaa !3
  %19 = mul i32 %18, %17
  %20 = load i32, ptr %1, align 4, !tbaa !3
  %21 = sub i32 %19, %20
  store i32 %21, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 2), align 8, !tbaa !3
  %22 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %23 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 2), align 8, !tbaa !3
  %24 = call i1 @_FortranAioOutputInteger32(ptr %22, i32 %23)
  %25 = call i32 @_FortranAioEndIoStatement(ptr %22)
  %26 = load i32, ptr %2, align 4, !tbaa !3
  %27 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 2), align 8, !tbaa !3
  %28 = mul i32 %27, %26
  %29 = load i32, ptr %1, align 4, !tbaa !3
  %30 = sub i32 %28, %29
  store i32 %30, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 3), align 4, !tbaa !3
  %31 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %32 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 3), align 4, !tbaa !3
  %33 = call i1 @_FortranAioOutputInteger32(ptr %31, i32 %32)
  %34 = call i32 @_FortranAioEndIoStatement(ptr %31)
  %35 = load i32, ptr %2, align 4, !tbaa !3
  %36 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 3), align 4, !tbaa !3
  %37 = mul i32 %36, %35
  %38 = load i32, ptr %1, align 4, !tbaa !3
  %39 = sub i32 %37, %38
  store i32 %39, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 4), align 16, !tbaa !3
  %40 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %41 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 4), align 16, !tbaa !3
  %42 = call i1 @_FortranAioOutputInteger32(ptr %40, i32 %41)
  %43 = call i32 @_FortranAioEndIoStatement(ptr %40)
  %44 = load i32, ptr %2, align 4, !tbaa !3
  %45 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 4), align 16, !tbaa !3
  %46 = mul i32 %45, %44
  %47 = load i32, ptr %1, align 4, !tbaa !3
  %48 = sub i32 %46, %47
  store i32 %48, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 5), align 4, !tbaa !3
  %49 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %50 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 5), align 4, !tbaa !3
  %51 = call i1 @_FortranAioOutputInteger32(ptr %49, i32 %50)
  %52 = call i32 @_FortranAioEndIoStatement(ptr %49)
  %53 = load i32, ptr %2, align 4, !tbaa !3
  %54 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 5), align 4, !tbaa !3
  %55 = mul i32 %54, %53
  %56 = load i32, ptr %1, align 4, !tbaa !3
  %57 = sub i32 %55, %56
  store i32 %57, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 6), align 8, !tbaa !3
  %58 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %59 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 6), align 8, !tbaa !3
  %60 = call i1 @_FortranAioOutputInteger32(ptr %58, i32 %59)
  %61 = call i32 @_FortranAioEndIoStatement(ptr %58)
  %62 = load i32, ptr %2, align 4, !tbaa !3
  %63 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 6), align 8, !tbaa !3
  %64 = mul i32 %63, %62
  %65 = load i32, ptr %1, align 4, !tbaa !3
  %66 = sub i32 %64, %65
  store i32 %66, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 7), align 4, !tbaa !3
  %67 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %68 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 7), align 4, !tbaa !3
  %69 = call i1 @_FortranAioOutputInteger32(ptr %67, i32 %68)
  %70 = call i32 @_FortranAioEndIoStatement(ptr %67)
  %71 = load i32, ptr %2, align 4, !tbaa !3
  %72 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 7), align 4, !tbaa !3
  %73 = mul i32 %72, %71
  %74 = load i32, ptr %1, align 4, !tbaa !3
  %75 = sub i32 %73, %74
  store i32 %75, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 8), align 16, !tbaa !3
  %76 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %77 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 8), align 16, !tbaa !3
  %78 = call i1 @_FortranAioOutputInteger32(ptr %76, i32 %77)
  %79 = call i32 @_FortranAioEndIoStatement(ptr %76)
  %80 = load i32, ptr %2, align 4, !tbaa !3
  %81 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 8), align 16, !tbaa !3
  %82 = mul i32 %81, %80
  %83 = load i32, ptr %1, align 4, !tbaa !3
  %84 = sub i32 %82, %83
  store i32 %84, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 9), align 4, !tbaa !3
  %85 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %86 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 9), align 4, !tbaa !3
  %87 = call i1 @_FortranAioOutputInteger32(ptr %85, i32 %86)
  %88 = call i32 @_FortranAioEndIoStatement(ptr %85)
  %89 = load i32, ptr %2, align 4, !tbaa !3
  %90 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 9), align 4, !tbaa !3
  %91 = mul i32 %90, %89
  %92 = load i32, ptr %1, align 4, !tbaa !3
  %93 = sub i32 %91, %92
  store i32 %93, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 10), align 8, !tbaa !3
  %94 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.2df8a2601c70ad58b76b1000e95b45d6, i32 6)
  %95 = load i32, ptr getelementptr inbounds ([11 x i32], ptr @_QFEx, i64 0, i64 10), align 8, !tbaa !3
  %96 = call i1 @_FortranAioOutputInteger32(ptr %94, i32 %95)
  %97 = call i32 @_FortranAioEndIoStatement(ptr %94)
  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 ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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