#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, int, int, int, int, int);
int randomInteger(int, int);
void printRandomPhoneNumber(void) {
  printf("%d%d%d-%d%d%d%d\n", randomInteger(2, 9), randomInteger(2, 9),
         randomInteger(0, 9), randomInteger(0, 9), randomInteger(0, 9),
         randomInteger(0, 9), randomInteger(0, 9));
}


x86 assembly (clang, -O0):
<printRandomPhoneNumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0x18(%rbp)
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0x10(%rbp)
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0xc(%rbp)
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,-0x4(%rbp)
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x8(%rbp),%r9d
mov    -0x4(%rbp),%r10d
lea    0xe50(%rip),%rdi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printRandomPhoneNumber>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%r14d
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%r15d
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%r12d
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%r13d
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%ebx
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0x9,%esi
call   1040 <randomInteger@plt>
lea    0xe64(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %r13d,%r8d
mov    %ebx,%r9d
push   %rax
push   %rbp
call   1030 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"%d%d%d-%d%d%d%d\0A\00"
define void @printRandomPhoneNumber() {
%1 = call i32 @randomInteger(i32 2, i32 9)
%2 = call i32 @randomInteger(i32 2, i32 9)
%3 = call i32 @randomInteger(i32 0, i32 9)
%4 = call i32 @randomInteger(i32 0, i32 9)
%5 = call i32 @randomInteger(i32 0, i32 9)
%6 = call i32 @randomInteger(i32 0, i32 9)
%7 = call i32 @randomInteger(i32 0, i32 9)
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"%d%d%d-%d%d%d%d\0A\00"
define void @printRandomPhoneNumber() {
%1 = tail call i32 @randomInteger(i32 2, i32 9)
%2 = tail call i32 @randomInteger(i32 2, i32 9)
%3 = tail call i32 @randomInteger(i32 0, i32 9)
%4 = tail call i32 @randomInteger(i32 0, i32 9)
%5 = tail call i32 @randomInteger(i32 0, i32 9)
%6 = tail call i32 @randomInteger(i32 0, i32 9)
%7 = tail call i32 @randomInteger(i32 0, i32 9)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7)
ret void
}