integer :: a,b,t
integer :: ans,i

read*,a,b,t

ans = 0
do i = 1,t
  if( mod(i,a)==0 ) ans = ans + b
end do

print*,ans
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.979dde5743d68d23abd086dc763140af = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4352/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 = alloca i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.979dde5743d68d23abd086dc763140af, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i32, ptr %3, align 4, !tbaa !3
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %11 = zext i32 %9 to i64
  %12 = load i32, ptr %1, align 4, !tbaa !3
  %13 = load i32, ptr %2, align 4
  %xtraiter = and i64 %11, 1
  %14 = icmp eq i32 %9, 1
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

15:                                               ; preds = %15, %.lr.ph.new
  %16 = phi i32 [ 1, %.lr.ph.new ], [ %24, %15 ]
  %.05 = phi i32 [ 0, %.lr.ph.new ], [ %.1.1, %15 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %15 ]
  %17 = srem i32 %16, %12
  %18 = icmp eq i32 %17, 0
  %19 = select i1 %18, i32 %13, i32 0
  %.1 = add i32 %19, %.05
  %20 = add nuw i32 %16, 1
  %21 = srem i32 %20, %12
  %22 = icmp eq i32 %21, 0
  %23 = select i1 %22, i32 %13, i32 0
  %.1.1 = add i32 %23, %.1
  %24 = add nuw i32 %16, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1.not = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1.not, label %._crit_edge.loopexit.unr-lcssa, label %15

._crit_edge.loopexit.unr-lcssa:                   ; preds = %15, %.lr.ph
  %.1.lcssa.ph = phi i32 [ undef, %.lr.ph ], [ %.1.1, %15 ]
  %.unr6 = phi i32 [ 1, %.lr.ph ], [ %24, %15 ]
  %.05.unr = phi i32 [ 0, %.lr.ph ], [ %.1.1, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %25 = srem i32 %.unr6, %12
  %26 = icmp eq i32 %25, 0
  %27 = select i1 %26, i32 %13, i32 0
  %.1.epil = add i32 %27, %.05.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %0
  %.0.lcssa = phi i32 [ 0, %0 ], [ %.1.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.1.epil, %._crit_edge.loopexit.epilog-lcssa ]
  %28 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.979dde5743d68d23abd086dc763140af, i32 11)
  %29 = call i1 @_FortranAioOutputInteger32(ptr %28, i32 %.0.lcssa)
  %30 = call i32 @_FortranAioEndIoStatement(ptr %28)
  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"}
