#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*/ _putchar(char);
void more_numbers(void) {
  int i, n, t, o;
  for (i = 0; i < 10; i++) {
    for (n = 0; n <= 14; n++) {
      t = n / 10;
      o = n % 10;
      if (t > 0)
        _putchar(t + '0');
      _putchar(o + '0');
    }
    _putchar('\n');
  }
}


x86 assembly (clang, -O0):
<more_numbers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    11a2 <more_numbers+0x92>
movl   $0x0,-0x8(%rbp)
cmpl   $0xe,-0x8(%rbp)
jg     118a <more_numbers+0x7a>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    116e <more_numbers+0x5e>
mov    -0xc(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <_putchar@plt>
mov    -0x10(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <_putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <more_numbers+0x20>
mov    $0xa,%edi
call   1030 <_putchar@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <more_numbers+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<more_numbers>:
push   %rbp
push   %r14
push   %rbx
xor    %r14d,%r14d
jmp    1134 <more_numbers+0x24>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <_putchar@plt>
add    $0x1,%r14d
cmp    $0xa,%r14d
je     117e <more_numbers+0x6e>
xor    %ebp,%ebp
jmp    1153 <more_numbers+0x43>
nopl   0x0(%rax,%rax,1)
or     $0x30,%bl
movsbl %bl,%edi
call   1030 <_putchar@plt>
add    $0x1,%ebp
cmp    $0xf,%ebp
je     1120 <more_numbers+0x10>
movzbl %bpl,%eax
imul   $0xcd,%eax,%eax
shr    $0xa,%eax
and    $0xfffffffe,%eax
lea    (%rax,%rax,4),%eax
neg    %eax
movzbl %al,%ebx
add    %ebp,%ebx
cmp    $0xa,%ebp
jb     1140 <more_numbers+0x30>
mov    $0x31,%edi
call   1030 <_putchar@plt>
jmp    1140 <more_numbers+0x30>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @more_numbers() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
br label %5
5: ; preds = %34, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %37
8: ; preds = %5
store i32 0, i32* %2
br label %9
9: ; preds = %29, %8
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 14
br i1 %11, label %12, label %32
12: ; preds = %9
%13 = load i32, i32* %2
%14 = sdiv i32 %13, 10
store i32 %14, i32* %3
%15 = load i32, i32* %2
%16 = srem i32 %15, 10
store i32 %16, i32* %4
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %12
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 48
%22 = trunc i32 %21 to i8
%23 = call i32 @_putchar(i8 signext %22)
br label %24
24: ; preds = %19, %12
%25 = load i32, i32* %4
%26 = add nsw i32 %25, 48
%27 = trunc i32 %26 to i8
%28 = call i32 @_putchar(i8 signext %27)
br label %29
29: ; preds = %24
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %9
32: ; preds = %9
%33 = call i32 @_putchar(i8 signext 10)
br label %34
34: ; preds = %32
%35 = load i32, i32* %1
%36 = add nsw i32 %35, 1
store i32 %36, i32* %1
br label %5
37: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @more_numbers() {
br label %1
1: ; preds = %0, %15
%2 = phi i32 [ 0, %0 ], [ %17, %15 ]
br label %3
3: ; preds = %1, %10
%4 = phi i32 [ 0, %1 ], [ %13, %10 ]
%5 = trunc i32 %4 to i8
%6 = urem i8 %5, 10
%7 = icmp ult i32 %4, 10
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 @_putchar(i8 signext 49)
br label %10
10: ; preds = %8, %3
%11 = or i8 %6, 48
%12 = tail call i32 @_putchar(i8 signext %11)
%13 = add nuw nsw i32 %4, 1
%14 = icmp eq i32 %13, 15
br i1 %14, label %15, label %3
15: ; preds = %10
%16 = tail call i32 @_putchar(i8 signext 10)
%17 = add nuw nsw i32 %2, 1
%18 = icmp eq i32 %17, 10
br i1 %18, label %19, label %1
19: ; preds = %15
ret void
}