#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 *);
int /*<<< orphan*/ stderr;
void common_parameters_print_usage(void) {
  fprintf(
      stderr,
      "-tetris_implementation [simplified | rlc]     type of Tetris "
      "implementation\n"
      "-width n                                      board width (default 10)\n"
      "-height n                                     board height (default "
      "20)\n"
      "-allow_lines_after_overflow                   allow to remove lines "
      "when the piece overflows (defaut: disabled)\n");
  fprintf(
      stderr,
      "-pieces file_name                             file describing the "
      "pieces (default pieces4.dat)\n"
      "-reward [none | lines | 1 | at_least_1_line | tetris_are_better]  "
      "reward function: number of lines removed, 1 for each move, (1,4,9,15)\n"
      "                                              or 1 each time one or "
      "more lines are made (default: lines)\n"
      "-seed n                                       seed of the random number "
      "generator (default: time(NULL))\n");
}


x86 assembly (clang, -O0):
<common_parameters_print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0x1013(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<common_parameters_print_usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101d(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [332 x i8] c"-tetris_implementation [simplified | rlc] type of Tetris implementation\0A-width n board width (default 10)\0A-height n board height (default 20)\0A-allow_lines_after_overflow allow to remove lines when the piece overflows (defaut: disabled)\0A\00"
@.str.1 = [441 x i8] c"-pieces file_name file describing the pieces (default pieces4.dat)\0A-reward [none | lines | 1 | at_least_1_line | tetris_are_better] reward function: number of lines removed, 1 for each move, (1,4,9,15)\0A or 1 each time one or more lines are made (default: lines)\0A-seed n seed of the random number generator (default: time(NULL))\0A\00"
define void @common_parameters_print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([332 x i8], [332 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([441 x i8], [441 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [332 x i8] c"-tetris_implementation [simplified | rlc] type of Tetris implementation\0A-width n board width (default 10)\0A-height n board height (default 20)\0A-allow_lines_after_overflow allow to remove lines when the piece overflows (defaut: disabled)\0A\00"
@.str.1 = [441 x i8] c"-pieces file_name file describing the pieces (default pieces4.dat)\0A-reward [none | lines | 1 | at_least_1_line | tetris_are_better] reward function: number of lines removed, 1 for each move, (1,4,9,15)\0A or 1 each time one or more lines are made (default: lines)\0A-seed n seed of the random number generator (default: time(NULL))\0A\00"
define void @common_parameters_print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([332 x i8], [332 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([441 x i8], [441 x i8]* @.str.1, i64 0, i64 0))
ret void
}