#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*/ getch();
int /*<<< orphan*/ print(char *, int);
void main() {
  int i, j, count = 0;
  for (i = 1; i <= 9; i++) {
    print("%d ", i * count);
    if (i == 9) {
      count++;
      i = 1;
      continue;
    }
    if (count > 9)
      break;
  }
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x4(%rbp)
cmpl   $0x9,-0x4(%rbp)
jg     1194 <main+0x74>
mov    -0x4(%rbp),%esi
imul   -0xc(%rbp),%esi
lea    0xeb2(%rip),%rdi
call   1030 <print@plt>
cmpl   $0x9,-0x4(%rbp)
jne    1172 <main+0x52>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x1,-0x4(%rbp)
jmp    1186 <main+0x66>
cmpl   $0x9,-0xc(%rbp)
jle    1181 <main+0x61>
jmp    1194 <main+0x74>
jmp    1186 <main+0x66>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1136 <main+0x16>
mov    $0x0,%al
call   1040 <getch@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %ebp,%ebp
mov    $0x1,%ebx
lea    0xece(%rip),%r14
jmp    114b <main+0x2b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebp
mov    $0x1,%ebx
add    $0x1,%ebx
mov    %ebp,%esi
imul   %ebx,%esi
mov    %r14,%rdi
call   1030 <print@plt>
cmp    $0x9,%ebx
je     1140 <main+0x20>
cmp    $0x9,%ebp
jg     1167 <main+0x47>
add    $0x1,%ebx
jmp    114b <main+0x2b>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <getch@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%d \00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %3
store i32 1, i32* %1
br label %4
4: ; preds = %22, %0
%5 = load i32, i32* %1
%6 = icmp sle i32 %5, 9
br i1 %6, label %7, label %25
7: ; preds = %4
%8 = load i32, i32* %1
%9 = load i32, i32* %3
%10 = mul nsw i32 %8, %9
%11 = call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %1
%13 = icmp eq i32 %12, 9
br i1 %13, label %14, label %17
14: ; preds = %7
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
store i32 1, i32* %1
br label %22
17: ; preds = %7
%18 = load i32, i32* %3
%19 = icmp sgt i32 %18, 9
br i1 %19, label %20, label %21
20: ; preds = %17
br label %25
21: ; preds = %17
br label %22
22: ; preds = %21, %14
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
br label %4
25: ; preds = %20, %4
%26 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define void @main() {
br label %1
1: ; preds = %0, %11
%2 = phi i32 [ 1, %0 ], [ %14, %11 ]
%3 = phi i32 [ 0, %0 ], [ %13, %11 ]
%4 = mul nsw i32 %3, %2
%5 = tail call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %2, 9
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = add nsw i32 %3, 1
br label %11
9: ; preds = %1
%10 = icmp sgt i32 %3, 9
br i1 %10, label %15, label %11
11: ; preds = %9, %7
%12 = phi i32 [ 1, %7 ], [ %2, %9 ]
%13 = phi i32 [ %8, %7 ], [ %3, %9 ]
%14 = add nsw i32 %12, 1
br label %1
15: ; preds = %9
%16 = tail call i32 (...) @getch()
ret void
}