#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  int shuzi1 = 1234567, shuzi2 = 9, jishu = 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  shuzi2 = shuzi1 % 10 * jishu + shuzi2;
  shuzi1 = shuzi1 / 10;
  jishu = jishu * 10;
  printf("%d8%d\n", shuzi1, shuzi2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x12d687,-0x8(%rbp)
movl   $0x9,-0xc(%rbp)
movl   $0xa,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe05(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xdc7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xd89(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xd4b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x12d687,%esi
mov    $0x9,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1e240,%esi
mov    $0x4f,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3039,%esi
mov    $0x2a7,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4d2,%esi
mov    $0x162f,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7b,%esi
mov    $0xb26f,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x5464f,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x23cacf,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d8%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1234567, i32* %2
store i32 9, i32* %3
store i32 10, i32* %4
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
%8 = load i32, i32* %2
%9 = srem i32 %8, 10
%10 = load i32, i32* %4
%11 = mul nsw i32 %9, %10
%12 = load i32, i32* %3
%13 = add nsw i32 %11, %12
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = sdiv i32 %14, 10
store i32 %15, i32* %2
%16 = load i32, i32* %4
%17 = mul nsw i32 %16, 10
store i32 %17, i32* %4
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
%21 = load i32, i32* %2
%22 = srem i32 %21, 10
%23 = load i32, i32* %4
%24 = mul nsw i32 %22, %23
%25 = load i32, i32* %3
%26 = add nsw i32 %24, %25
store i32 %26, i32* %3
%27 = load i32, i32* %2
%28 = sdiv i32 %27, 10
store i32 %28, i32* %2
%29 = load i32, i32* %4
%30 = mul nsw i32 %29, 10
store i32 %30, i32* %4
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32)
%34 = load i32, i32* %2
%35 = srem i32 %34, 10
%36 = load i32, i32* %4
%37 = mul nsw i32 %35, %36
%38 = load i32, i32* %3
%39 = add nsw i32 %37, %38
store i32 %39, i32* %3
%40 = load i32, i32* %2
%41 = sdiv i32 %40, 10
store i32 %41, i32* %2
%42 = load i32, i32* %4
%43 = mul nsw i32 %42, 10
store i32 %43, i32* %4
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %44, i32 %45)
%47 = load i32, i32* %2
%48 = srem i32 %47, 10
%49 = load i32, i32* %4
%50 = mul nsw i32 %48, %49
%51 = load i32, i32* %3
%52 = add nsw i32 %50, %51
store i32 %52, i32* %3
%53 = load i32, i32* %2
%54 = sdiv i32 %53, 10
store i32 %54, i32* %2
%55 = load i32, i32* %4
%56 = mul nsw i32 %55, 10
store i32 %56, i32* %4
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %57, i32 %58)
%60 = load i32, i32* %2
%61 = srem i32 %60, 10
%62 = load i32, i32* %4
%63 = mul nsw i32 %61, %62
%64 = load i32, i32* %3
%65 = add nsw i32 %63, %64
store i32 %65, i32* %3
%66 = load i32, i32* %2
%67 = sdiv i32 %66, 10
store i32 %67, i32* %2
%68 = load i32, i32* %4
%69 = mul nsw i32 %68, 10
store i32 %69, i32* %4
%70 = load i32, i32* %2
%71 = load i32, i32* %3
%72 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %70, i32 %71)
%73 = load i32, i32* %2
%74 = srem i32 %73, 10
%75 = load i32, i32* %4
%76 = mul nsw i32 %74, %75
%77 = load i32, i32* %3
%78 = add nsw i32 %76, %77
store i32 %78, i32* %3
%79 = load i32, i32* %2
%80 = sdiv i32 %79, 10
store i32 %80, i32* %2
%81 = load i32, i32* %4
%82 = mul nsw i32 %81, 10
store i32 %82, i32* %4
%83 = load i32, i32* %2
%84 = load i32, i32* %3
%85 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %83, i32 %84)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d8%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1234567, i32 9)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 123456, i32 79)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 12345, i32 679)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1234, i32 5679)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 123, i32 45679)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 12, i32 345679)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1, i32 2345679)
ret i32 0
}