#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, unsigned char const, unsigned char const,
                          unsigned char const, unsigned char const,
                          unsigned char const, unsigned char const,
                          unsigned char const, unsigned char const);
int main(int argc, char const *argv[]) {
  unsigned char i = 0;
  do {
    const unsigned char c1 = i, c2 = i + 1, c3 = i + 2, c4 = i + 3;
    printf("%d: %c\t%d: %c\t%d: %c\t%d: %c\n", c1, c1, c2, c2, c3, c3, c4, c4);
    i += 4;
  } while (i != 0);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
mov    -0x11(%rbp),%al
mov    %al,-0x12(%rbp)
movzbl -0x11(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x13(%rbp)
movzbl -0x11(%rbp),%eax
add    $0x2,%eax
mov    %al,-0x14(%rbp)
movzbl -0x11(%rbp),%eax
add    $0x3,%eax
mov    %al,-0x15(%rbp)
mov    -0x12(%rbp),%sil
mov    -0x12(%rbp),%dl
mov    -0x13(%rbp),%cl
mov    -0x13(%rbp),%r8b
mov    -0x14(%rbp),%r9b
mov    -0x14(%rbp),%r10b
mov    -0x15(%rbp),%al
lea    0xe92(%rip),%rdi
movzbl %sil,%esi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
movzbl %r9b,%r9d
movzbl %r10b,%r10d
mov    %r10d,(%rsp)
movzbl %al,%eax
mov    %eax,0x8(%rsp)
movzbl -0x15(%rbp),%eax
mov    %eax,0x10(%rsp)
call   1030 <printf@plt>
movzbl -0x11(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
cmp    $0x0,%eax
jne    112a <main+0x1a>
mov    0x2e26(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
lea    0xee3(%rip),%r14
nopl   (%rax)
lea    0x1(%rax),%ecx
lea    0x2(%rax),%edx
lea    0x3(%rax),%esi
sub    $0x8,%rsp
movzbl %sil,%ebx
movzbl %dl,%r9d
movzbl %al,%edx
movzbl %cl,%ecx
mov    %r14,%rdi
mov    %edx,%esi
mov    %ecx,%r8d
push   %rbx
push   %rbx
push   %r9
call   1030 <printf@plt>
add    $0x20,%rsp
inc    %bl
mov    %ebx,%eax
jne    1120 <main+0x10>
mov    0x2e83(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [29 x i8] c"%d: %c\09%d: %c\09%d: %c\09%d: %c\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8 [ 0, %2 ], [ %9, %3 ]
%5 = or i8 %4, 1
%6 = or i8 %4, 2
%7 = or i8 %4, 3
%8 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 zeroext %4, i8 zeroext %4, i8 zeroext %5, i8 zeroext %5, i8 zeroext %6, i8 zeroext %6, i8 zeroext %7, i8 zeroext %7)
%9 = add i8 %4, 4
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}