#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 PrintEdgeCounts(unsigned short int edgeCountOfVertices[]) {
  int i;
  printf("Edge Counts: ");
  for (i = 0; i < 2400; i++) {
    printf("%d ", edgeCountOfVertices[i]);
    if ((i + 1) % 10 == 0)
      printf("| ");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<PrintEdgeCounts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x960,-0xc(%rbp)
jge    1190 <PrintEdgeCounts+0x80>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movzwl (%rax,%rcx,2),%esi
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117d <PrintEdgeCounts+0x6d>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1182 <PrintEdgeCounts+0x72>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1131 <PrintEdgeCounts+0x21>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintEdgeCounts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%bp
lea    0xec7(%rip),%r14
xor    %r13d,%r13d
jmp    115c <PrintEdgeCounts+0x3c>
nopl   0x0(%rax)
add    $0x1,%ebp
cmp    $0x960,%r13
je     119e <PrintEdgeCounts+0x7e>
mov    %r13,%rbx
movzwl %bp,%eax
imul   $0xcccd,%eax,%eax
shr    $0x13,%eax
lea    (%rax,%rax,4),%r15d
movzwl (%r12,%r13,2),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r13
lea    (%r15,%r15,1),%eax
add    $0xffffffff,%eax
cmp    %bx,%ax
jne    1150 <PrintEdgeCounts+0x30>
lea    0xe7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1150 <PrintEdgeCounts+0x30>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
@.str = [14 x i8] c"Edge Counts: \00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [3 x i8] c"| \00"
define void @PrintEdgeCounts(i16* nocapture %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %1, %15
%4 = phi i64 [ 0, %1 ], [ %9, %15 ]
%5 = getelementptr inbounds i16, i16* %0, i64 %4
%6 = load i16, i16* %5
%7 = zext i16 %6 to i32
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = add nuw nsw i64 %4, 1
%10 = trunc i64 %9 to i16
%11 = urem i16 %10, 10
%12 = icmp eq i16 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %3, %13
%16 = icmp eq i64 %9, 2400
br i1 %16, label %17, label %3
17: ; preds = %15
%18 = tail call i32 @putchar(i32 10)
ret void
}