#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 *, ...);
void format1_line_type0(void) {
  int i;
  int b = 0;
  for (i = 0; i < 16; i++) {
    printf("   ");
    if (((i + 1) % 8) == 0) {
      printf(" ");
    } else if (((i + 1) % 2) == 0) {
    } else {
      b++;
      printf("b%d", b);
    }
  }
  printf("(byte number)\n");
}


x86 assembly (clang, -O0):
<format1_line_type0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11b6 <format1_line_type0+0xa6>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1168 <format1_line_type0+0x58>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a3 <format1_line_type0+0x93>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1184 <format1_line_type0+0x74>
jmp    119e <format1_line_type0+0x8e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a3 <format1_line_type0+0x93>
jmp    11a8 <format1_line_type0+0x98>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1126 <format1_line_type0+0x16>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<format1_line_type0>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xebd(%rip),%r15
lea    0xeba(%rip),%r14
xor    %ebp,%ebp
jmp    1162 <format1_line_type0+0x32>
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x11,%ebx
je     1187 <format1_line_type0+0x57>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x7,%bl
je     1150 <format1_line_type0+0x20>
test   $0x1,%bl
je     115a <format1_line_type0+0x2a>
add    $0x1,%ebp
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    115a <format1_line_type0+0x2a>
lea    0xe7a(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

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

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