#import <stdio.h>
int main(){
    int r,d,x;
    scanf("%d %d %d",&r,&d,&x);
    for(int i=0;i<10;i++){
        x=r*x-d;
        printf("%d\n", x);
    }
}

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_285/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_285/source.m"
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"

@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1

; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
  %r = alloca i32, align 4
  %d = alloca i32, align 4
  %x = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
  %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %r, ptr noundef nonnull %d, ptr noundef nonnull %x)
  %0 = load i32, ptr %r, align 4, !tbaa !5
  %1 = load i32, ptr %x, align 4, !tbaa !5
  %mul = mul nsw i32 %1, %0
  %2 = load i32, ptr %d, align 4, !tbaa !5
  %sub = sub nsw i32 %mul, %2
  store i32 %sub, ptr %x, align 4, !tbaa !5
  %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub)
  %3 = load i32, ptr %r, align 4, !tbaa !5
  %4 = load i32, ptr %x, align 4, !tbaa !5
  %mul.1 = mul nsw i32 %4, %3
  %5 = load i32, ptr %d, align 4, !tbaa !5
  %sub.1 = sub nsw i32 %mul.1, %5
  store i32 %sub.1, ptr %x, align 4, !tbaa !5
  %call1.1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.1)
  %6 = load i32, ptr %r, align 4, !tbaa !5
  %7 = load i32, ptr %x, align 4, !tbaa !5
  %mul.2 = mul nsw i32 %7, %6
  %8 = load i32, ptr %d, align 4, !tbaa !5
  %sub.2 = sub nsw i32 %mul.2, %8
  store i32 %sub.2, ptr %x, align 4, !tbaa !5
  %call1.2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.2)
  %9 = load i32, ptr %r, align 4, !tbaa !5
  %10 = load i32, ptr %x, align 4, !tbaa !5
  %mul.3 = mul nsw i32 %10, %9
  %11 = load i32, ptr %d, align 4, !tbaa !5
  %sub.3 = sub nsw i32 %mul.3, %11
  store i32 %sub.3, ptr %x, align 4, !tbaa !5
  %call1.3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.3)
  %12 = load i32, ptr %r, align 4, !tbaa !5
  %13 = load i32, ptr %x, align 4, !tbaa !5
  %mul.4 = mul nsw i32 %13, %12
  %14 = load i32, ptr %d, align 4, !tbaa !5
  %sub.4 = sub nsw i32 %mul.4, %14
  store i32 %sub.4, ptr %x, align 4, !tbaa !5
  %call1.4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.4)
  %15 = load i32, ptr %r, align 4, !tbaa !5
  %16 = load i32, ptr %x, align 4, !tbaa !5
  %mul.5 = mul nsw i32 %16, %15
  %17 = load i32, ptr %d, align 4, !tbaa !5
  %sub.5 = sub nsw i32 %mul.5, %17
  store i32 %sub.5, ptr %x, align 4, !tbaa !5
  %call1.5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.5)
  %18 = load i32, ptr %r, align 4, !tbaa !5
  %19 = load i32, ptr %x, align 4, !tbaa !5
  %mul.6 = mul nsw i32 %19, %18
  %20 = load i32, ptr %d, align 4, !tbaa !5
  %sub.6 = sub nsw i32 %mul.6, %20
  store i32 %sub.6, ptr %x, align 4, !tbaa !5
  %call1.6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.6)
  %21 = load i32, ptr %r, align 4, !tbaa !5
  %22 = load i32, ptr %x, align 4, !tbaa !5
  %mul.7 = mul nsw i32 %22, %21
  %23 = load i32, ptr %d, align 4, !tbaa !5
  %sub.7 = sub nsw i32 %mul.7, %23
  store i32 %sub.7, ptr %x, align 4, !tbaa !5
  %call1.7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.7)
  %24 = load i32, ptr %r, align 4, !tbaa !5
  %25 = load i32, ptr %x, align 4, !tbaa !5
  %mul.8 = mul nsw i32 %25, %24
  %26 = load i32, ptr %d, align 4, !tbaa !5
  %sub.8 = sub nsw i32 %mul.8, %26
  store i32 %sub.8, ptr %x, align 4, !tbaa !5
  %call1.8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.8)
  %27 = load i32, ptr %r, align 4, !tbaa !5
  %28 = load i32, ptr %x, align 4, !tbaa !5
  %mul.9 = mul nsw i32 %28, %27
  %29 = load i32, ptr %d, align 4, !tbaa !5
  %sub.9 = sub nsw i32 %mul.9, %29
  store i32 %sub.9, ptr %x, align 4, !tbaa !5
  %call1.9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub.9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.linker.options = !{}
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
