#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 main(void) {
  for (int j = 32; j < 32 + 16; j++) {
    for (int i = 0; i < 160; i += 16) {
      if (i + j < 127)
        printf("%3d %2x %c ", i + j, i + j, i + j);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x20,-0x8(%rbp)
cmpl   $0x30,-0x8(%rbp)
jge    11a2 <main+0x92>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa0,-0xc(%rbp)
jge    1186 <main+0x76>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
cmp    $0x7f,%eax
jge    1173 <main+0x63>
mov    -0xc(%rbp),%esi
add    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
add    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
add    -0x8(%rbp),%ecx
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1178 <main+0x68>
mov    -0xc(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <main+0x27>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x70,%ebx
lea    0xed0(%rip),%r14
jmp    1152 <main+0x32>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x2f,%ebp
je     11c0 <main+0xa0>
lea    -0x50(%rbx),%ebp
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x40(%rbx),%ecx
mov    %r14,%rdi
mov    %ecx,%esi
mov    %ecx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x30(%rbx),%ecx
mov    %r14,%rdi
mov    %ecx,%esi
mov    %ecx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x20(%rbx),%ecx
mov    %r14,%rdi
mov    %ecx,%esi
mov    %ecx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x10(%rbx),%ecx
mov    %r14,%rdi
mov    %ecx,%esi
mov    %ecx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2e,%ebp
ja     1140 <main+0x20>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%3d %2x %c \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 32, i32* %2
br label %4
4: ; preds = %33, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 48
br i1 %6, label %7, label %36
7: ; preds = %4
store i32 0, i32* %3
br label %8
8: ; preds = %28, %7
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 160
br i1 %10, label %11, label %31
11: ; preds = %8
%12 = load i32, i32* %3
%13 = load i32, i32* %2
%14 = add nsw i32 %12, %13
%15 = icmp slt i32 %14, 127
br i1 %15, label %16, label %27
16: ; preds = %11
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = add nsw i32 %17, %18
%20 = load i32, i32* %3
%21 = load i32, i32* %2
%22 = add nsw i32 %20, %21
%23 = load i32, i32* %3
%24 = load i32, i32* %2
%25 = add nsw i32 %23, %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %22, i32 %25)
br label %27
27: ; preds = %16, %11
br label %28
28: ; preds = %27
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 16
store i32 %30, i32* %3
br label %8
31: ; preds = %8
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %33
33: ; preds = %31
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %4
36: ; preds = %4
%37 = load i32, i32* %1
ret i32 %37
}

LLVM IR (-O2):
@.str = [12 x i8] c"%3d %2x %c \00"
define i32 @main() {
br label %2
1: ; preds = %17
ret i32 0
2: ; preds = %0, %17
%3 = phi i32 [ 32, %0 ], [ %19, %17 ]
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %3, i32 %3)
%5 = add nuw nsw i32 %3, 16
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %5, i32 %5)
%7 = add nuw nsw i32 %3, 32
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %7, i32 %7)
%9 = add nuw nsw i32 %3, 48
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %9, i32 %9)
%11 = add nuw nsw i32 %3, 64
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %11, i32 %11)
%13 = icmp ult i32 %3, 47
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = add nuw nsw i32 %3, 80
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %15, i32 %15, i32 %15)
br label %17
17: ; preds = %14, %2
%18 = tail call i32 @putchar(i32 10)
%19 = add nuw nsw i32 %3, 1
%20 = icmp eq i32 %19, 48
br i1 %20, label %1, label %2
}