#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*/ printHorizontal(int);
int /*<<< orphan*/ printf(char *, ...);
void print210(int *v1) {
  int i;
  for (i = 0; i < 5; i++) {
    printf("%c", ' ');
    printHorizontal(v1[i]);
    printf("\t");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<print210>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    117c <print210+0x5c>
lea    0xebc(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1040 <printHorizontal@plt>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <print210+0x13>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print210>:
push   %rbx
mov    %rdi,%rbx
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    (%rbx),%edi
call   1040 <printHorizontal@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x4(%rbx),%edi
call   1040 <printHorizontal@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x8(%rbx),%edi
call   1040 <printHorizontal@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0xc(%rbx),%edi
call   1040 <printHorizontal@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x10(%rbx),%edi
call   1040 <printHorizontal@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\09\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @print210(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
br label %4
4: ; preds = %16, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 32)
%9 = load i32*, i32** %2
%10 = load i32, i32* %3
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, i32* %9, i64 %11
%13 = load i32, i32* %12
%14 = call i32 @printHorizontal(i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %7
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %4
19: ; preds = %4
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
define void @print210(i32* nocapture %0) {
%2 = tail call i32 @putchar(i32 32)
%3 = load i32, i32* %0
%4 = tail call i32 @printHorizontal(i32 %3)
%5 = tail call i32 @putchar(i32 9)
%6 = tail call i32 @putchar(i32 32)
%7 = getelementptr inbounds i32, i32* %0, i64 1
%8 = load i32, i32* %7
%9 = tail call i32 @printHorizontal(i32 %8)
%10 = tail call i32 @putchar(i32 9)
%11 = tail call i32 @putchar(i32 32)
%12 = getelementptr inbounds i32, i32* %0, i64 2
%13 = load i32, i32* %12
%14 = tail call i32 @printHorizontal(i32 %13)
%15 = tail call i32 @putchar(i32 9)
%16 = tail call i32 @putchar(i32 32)
%17 = getelementptr inbounds i32, i32* %0, i64 3
%18 = load i32, i32* %17
%19 = tail call i32 @printHorizontal(i32 %18)
%20 = tail call i32 @putchar(i32 9)
%21 = tail call i32 @putchar(i32 32)
%22 = getelementptr inbounds i32, i32* %0, i64 4
%23 = load i32, i32* %22
%24 = tail call i32 @printHorizontal(i32 %23)
%25 = tail call i32 @putchar(i32 9)
%26 = tail call i32 @putchar(i32 10)
ret void
}