#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*/ fprintf(int /*<<< orphan*/, char *, unsigned long,
                           unsigned long);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/, char *, unsigned long *,
                          unsigned long *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
void readNumPatterns(unsigned long *numPhrase, unsigned long *numOfWords) {
  fscanf(stdin, "#numberOfFrases::%9lu, #NumberOfWordsPerPhrase:: %9lu\n",
         numPhrase, numOfWords);
  fprintf(stderr, " numOfFrase = %9lu and numberOfWordsPerPhrase = %9lu",
          *numPhrase, *numOfWords);
}


x86 assembly (clang, -O0):
<readNumPatterns>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xeb8(%rip),%rsi
call   1030 <fscanf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readNumPatterns>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x2eb7(%rip),%rax
mov    (%rax),%edi
lea    0xec6(%rip),%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1030 <fscanf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
mov    (%r14),%rcx
lea    0xedc(%rip),%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [55 x i8] c"#numberOfFrases::%9lu, #NumberOfWordsPerPhrase:: %9lu\0A\00"
@stderr = global i32 0
@.str.1 = [53 x i8] c" numOfFrase = %9lu and numberOfWordsPerPhrase = %9lu\00"
define void @readNumPatterns(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%5 = load i32, i32* @stdin
%6 = load i64*, i64** %3
%7 = load i64*, i64** %4
%8 = call i32 @fscanf(i32 %5, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i64* %6, i64* %7)
%9 = load i32, i32* @stderr
%10 = load i64*, i64** %3
%11 = load i64, i64* %10
%12 = load i64*, i64** %4
%13 = load i64, i64* %12
%14 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), i64 %11, i64 %13)
ret void
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [55 x i8] c"#numberOfFrases::%9lu, #NumberOfWordsPerPhrase:: %9lu\0A\00"
@stderr = global i32 0
@.str.1 = [53 x i8] c" numOfFrase = %9lu and numberOfWordsPerPhrase = %9lu\00"
define void @readNumPatterns(i64* %0, i64* %1) {
%3 = load i32, i32* @stdin
%4 = tail call i32 @fscanf(i32 %3, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i64* %0, i64* %1)
%5 = load i32, i32* @stderr
%6 = load i64, i64* %0
%7 = load i64, i64* %1
%8 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), i64 %6, i64 %7)
ret void
}