#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);
int /*<<< orphan*/ test(char *);
int main() {
  int num = 0;
  printf("%2d: ", ++num);
  test("         # #   # ##  #  ## #   ## ### ## ### ## #### # # # ## ##  #   "
       "#  ##  ## ###  # ##  ## ### #  # #       ");
  printf("%2d: ", ++num);
  test("        # # #   ##   ## # #### #   # ## #   ## #   ## # # # ###  # ### "
       " ##  ## ###  # #  ### ###  # # #         ");
  printf("%2d: ", ++num);
  test("         # #    # # #  ###  #   #    # #  #   #    # # # # ## #   ## # "
       "  ## #   ##   # # #### ### ## # #         ");
  printf("%2d: ", ++num);
  test("       # # ##  ## ##  ##   #  #   #  # ###  # ##  ## # # #   ## ##  #  "
       "### ## ## #   # #### ## #   # #        ");
  printf("%2d: ", ++num);
  test("         # # ### ## #   ## ## ###  ##  # ##   #   # ## # # ### #  ## "
       "##  #    # ### #  ## ##  #      # #          ");
  printf("%2d: ", ++num);
  test("          # #  #   # ##  ##  #   #   #  # ##  ##  #   # # # # #### #  "
       "##  # #### #### # #  ##  # #### # #         ");
  printf("%2d: ", ++num);
  test("         # #  #  ##  ##  # #   ## ##   # ### ## ##   # # # #  #   #   "
       "#  #  ### # #    ###  # #  #   # #        ");
  printf("%2d: ", ++num);
  test("        # # #    # ##  ##   #  # ##  ##  ### #   #  # # # ### ## ## "
       "### ## ### ### ## #  ##  ### ## # #         ");
  printf("%2d: ", ++num);
  test("         # # ### ##   ## # # #### #   ## # #### # #### # # #   #  # "
       "###  #    # ###  # #    # ###  # # #       ");
  printf("%2d: ", ++num);
  test("        # # # #### ##   # #### # #   ## ## ### #### # # # #  ### # ### "
       " ###  # # ###  #    # #  ### # #         ");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xe15(%rip),%rdi
call   1030 <printf@plt>
lea    0x1044(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xdf4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xdd3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xdb2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1136(%rip),%rdi
call   1040 <test@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
lea    0xd91(%rip),%rdi
call   1030 <printf@plt>
lea    0x1185(%rip),%rdi
call   1040 <test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xfd2(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
lea    0x1082(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0x10dc(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0x1134(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
lea    0x118c(%rip),%rdi
call   1040 <test@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
call   1040 <test@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%2d: \00"
@.str.1 = [112 x i8] c" # # # ## # ## # ## ### ## ### ## #### # # # ## ## # # ## ## ### # ## ## ### # # # \00"
@.str.2 = [113 x i8] c" # # # ## ## # #### # # ## # ## # ## # # # ### # ### ## ## ### # # ### ### # # # \00"
@.str.3 = [114 x i8] c" # # # # # ### # # # # # # # # # # ## # ## # ## # ## # # #### ### ## # # \00"
@.str.4 = [111 x i8] c" # # ## ## ## ## # # # # ### # ## ## # # # ## ## # ### ## ## # # #### ## # # # \00"
@.str.5 = [115 x i8] c" # # ### ## # ## ## ### ## # ## # # ## # # ### # ## ## # # ### # ## ## # # # \00"
@.str.6 = [115 x i8] c" # # # # ## ## # # # # ## ## # # # # # #### # ## # #### #### # # ## # #### # # \00"
@.str.7 = [113 x i8] c" # # # ## ## # # ## ## # ### ## ## # # # # # # # # ### # # ### # # # # # \00"
@.str.8 = [113 x i8] c" # # # # ## ## # # ## ## ### # # # # # ### ## ## ### ## ### ### ## # ## ### ## # # \00"
@.str.9 = [112 x i8] c" # # ### ## ## # # #### # ## # #### # #### # # # # # ### # # ### # # # ### # # # \00"
@.str.10 = [113 x i8] c" # # # #### ## # #### # # ## ## ### #### # # # # ### # ### ### # # ### # # # ### # # \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
store i32 %4, i32* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @test(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = call i32 @test(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.3, i64 0, i64 0))
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = call i32 @test(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.4, i64 0, i64 0))
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %20)
%22 = call i32 @test(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.5, i64 0, i64 0))
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = call i32 @test(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.6, i64 0, i64 0))
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
%29 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.7, i64 0, i64 0))
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %2
%33 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %32)
%34 = call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.8, i64 0, i64 0))
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
store i32 %36, i32* %2
%37 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %36)
%38 = call i32 @test(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.9, i64 0, i64 0))
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
%41 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %40)
%42 = call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%2d: \00"
@.str.1 = [112 x i8] c" # # # ## # ## # ## ### ## ### ## #### # # # ## ## # # ## ## ### # ## ## ### # # # \00"
@.str.2 = [113 x i8] c" # # # ## ## # #### # # ## # ## # ## # # # ### # ### ## ## ### # # ### ### # # # \00"
@.str.3 = [114 x i8] c" # # # # # ### # # # # # # # # # # ## # ## # ## # ## # # #### ### ## # # \00"
@.str.4 = [111 x i8] c" # # ## ## ## ## # # # # ### # ## ## # # # ## ## # ### ## ## # # #### ## # # # \00"
@.str.5 = [115 x i8] c" # # ### ## # ## ## ### ## # ## # # ## # # ### # ## ## # # ### # ## ## # # # \00"
@.str.6 = [115 x i8] c" # # # # ## ## # # # # ## ## # # # # # #### # ## # #### #### # # ## # #### # # \00"
@.str.7 = [113 x i8] c" # # # ## ## # # ## ## # ### ## ## # # # # # # # # ### # # ### # # # # # \00"
@.str.8 = [113 x i8] c" # # # # ## ## # # ## ## ### # # # # # ### ## ## ### ## ### ### ## # ## ### ## # # \00"
@.str.9 = [112 x i8] c" # # ### ## ## # # #### # ## # #### # #### # # # # # ### # # ### # # # ### # # # \00"
@.str.10 = [113 x i8] c" # # # #### ## # #### # # ## ## ### #### # # # # ### # ### ### # # ### # # # ### # # \00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @test(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 2)
%4 = tail call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 3)
%6 = tail call i32 @test(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%8 = tail call i32 @test(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%10 = tail call i32 @test(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 6)
%12 = tail call i32 @test(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 7)
%14 = tail call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%16 = tail call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.8, i64 0, i64 0))
%17 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 9)
%18 = tail call i32 @test(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.9, i64 0, i64 0))
%19 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 10)
%20 = tail call i32 @test(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}