#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);
int main(void) {
  int i, c;
  i = 0;
  for (c = 32; c < 127; ++c) {
    i++;
    if ('A' <= c && c <= 'Z')
      c = c - 'A' + 'a';
    (void)putchar(c);
    if (i % 16 == 0)
      (void)putchar('\n');
  }
  (void)putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x20,-0xc(%rbp)
cmpl   $0x7f,-0xc(%rbp)
jge    11a0 <main+0x90>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x41,%eax
cmp    -0xc(%rbp),%eax
jg     1164 <main+0x54>
cmpl   $0x5a,-0xc(%rbp)
jg     1164 <main+0x54>
mov    -0xc(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    118d <main+0x7d>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1192 <main+0x82>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112d <main+0x1d>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x20,%eax
mov    $0x1,%ebx
jmp    112d <main+0x1d>
nop
add    $0x1,%ebp
add    $0x1,%ebx
mov    %ebp,%eax
cmp    $0x40,%ebx
je     1153 <main+0x43>
lea    -0x41(%rax),%ecx
lea    0x20(%rax),%ebp
cmp    $0x1a,%ecx
cmovae %eax,%ebp
movsbl %bpl,%edi
call   1030 <putchar@plt>
test   $0xf,%bl
jne    1120 <main+0x10>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1120 <main+0x10>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 32, i32* %3
br label %4
4: ; preds = %29, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 127
br i1 %6, label %7, label %32
7: ; preds = %4
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
store i32 %9, i32* %2
%10 = load i32, i32* %3
%11 = icmp sle i32 65, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = load i32, i32* %3
%14 = icmp sle i32 %13, 90
br i1 %14, label %15, label %19
15: ; preds = %12
%16 = load i32, i32* %3
%17 = sub nsw i32 %16, 65
%18 = add nsw i32 %17, 97
store i32 %18, i32* %3
br label %19
19: ; preds = %15, %12, %7
%20 = load i32, i32* %3
%21 = trunc i32 %20 to i8
%22 = call i32 @putchar(i8 signext %21)
%23 = load i32, i32* %2
%24 = srem i32 %23, 16
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = call i32 @putchar(i8 signext 10)
br label %28
28: ; preds = %26, %19
br label %29
29: ; preds = %28
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %4
32: ; preds = %4
%33 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %15
%2 = phi i32 [ 32, %0 ], [ %16, %15 ]
%3 = phi i32 [ 0, %0 ], [ %4, %15 ]
%4 = add nuw nsw i32 %3, 1
%5 = add i32 %2, -65
%6 = icmp ult i32 %5, 26
%7 = add nsw i32 %2, 32
%8 = select i1 %6, i32 %7, i32 %2
%9 = trunc i32 %8 to i8
%10 = tail call i32 @putchar(i8 signext %9)
%11 = and i32 %4, 15
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = tail call i32 @putchar(i8 signext 10)
br label %15
15: ; preds = %1, %13
%16 = add nsw i32 %8, 1
%17 = icmp eq i32 %4, 63
br i1 %17, label %18, label %1
18: ; preds = %15
%19 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}