#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*/ putchar(char);
void putNumbers(int *nums) {
  unsigned i = 0;
  for (; i < 10; ++i) {
    printf("%d", nums[i]);
    if (i == 10 - 1) {
      putchar('\n');
    } else {
      putchar('-');
      putchar('>');
    }
  }
}


x86 assembly (clang, -O0):
<putNumbers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jae    1193 <putNumbers+0x73>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x9,-0xc(%rbp)
jne    116c <putNumbers+0x4c>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1180 <putNumbers+0x60>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
jmp    1185 <putNumbers+0x65>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <putNumbers+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putNumbers>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    (%rdi),%esi
lea    0xed0(%rip),%r14
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x4(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x8(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0xc(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x10(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x14(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x18(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x1c(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x20(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x3e,%edi
call   1030 <putchar@plt>
mov    0x24(%rbx),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @putNumbers(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
br label %4
4: ; preds = %22, %1
%5 = load i32, i32* %3
%6 = icmp ult i32 %5, 10
br i1 %6, label %7, label %25
7: ; preds = %4
%8 = load i32*, i32** %2
%9 = load i32, i32* %3
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %8, i64 %10
%12 = load i32, i32* %11
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 9
br i1 %15, label %16, label %18
16: ; preds = %7
%17 = call i32 @putchar(i8 signext 10)
br label %21
18: ; preds = %7
%19 = call i32 @putchar(i8 signext 45)
%20 = call i32 @putchar(i8 signext 62)
br label %21
21: ; preds = %18, %16
br label %22
22: ; preds = %21
%23 = load i32, i32* %3
%24 = add i32 %23, 1
store i32 %24, i32* %3
br label %4
25: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @putNumbers(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @putchar(i8 signext 45)
%5 = tail call i32 @putchar(i8 signext 62)
%6 = getelementptr inbounds i32, i32* %0, i64 1
%7 = load i32, i32* %6
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = tail call i32 @putchar(i8 signext 45)
%10 = tail call i32 @putchar(i8 signext 62)
%11 = getelementptr inbounds i32, i32* %0, i64 2
%12 = load i32, i32* %11
%13 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = tail call i32 @putchar(i8 signext 45)
%15 = tail call i32 @putchar(i8 signext 62)
%16 = getelementptr inbounds i32, i32* %0, i64 3
%17 = load i32, i32* %16
%18 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = tail call i32 @putchar(i8 signext 45)
%20 = tail call i32 @putchar(i8 signext 62)
%21 = getelementptr inbounds i32, i32* %0, i64 4
%22 = load i32, i32* %21
%23 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %22)
%24 = tail call i32 @putchar(i8 signext 45)
%25 = tail call i32 @putchar(i8 signext 62)
%26 = getelementptr inbounds i32, i32* %0, i64 5
%27 = load i32, i32* %26
%28 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = tail call i32 @putchar(i8 signext 45)
%30 = tail call i32 @putchar(i8 signext 62)
%31 = getelementptr inbounds i32, i32* %0, i64 6
%32 = load i32, i32* %31
%33 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %32)
%34 = tail call i32 @putchar(i8 signext 45)
%35 = tail call i32 @putchar(i8 signext 62)
%36 = getelementptr inbounds i32, i32* %0, i64 7
%37 = load i32, i32* %36
%38 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %37)
%39 = tail call i32 @putchar(i8 signext 45)
%40 = tail call i32 @putchar(i8 signext 62)
%41 = getelementptr inbounds i32, i32* %0, i64 8
%42 = load i32, i32* %41
%43 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %42)
%44 = tail call i32 @putchar(i8 signext 45)
%45 = tail call i32 @putchar(i8 signext 62)
%46 = getelementptr inbounds i32, i32* %0, i64 9
%47 = load i32, i32* %46
%48 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %47)
%49 = tail call i32 @putchar(i8 signext 10)
ret void
}