#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 display_usage(const char *progname) {
  printf("USAGE: %s [options]\n", progname);
  printf("Options:\n");
  printf(
      "\t-i, --infile=<file>\tInput file (cellular automaton in XML format)\n");
  printf("\t-o, --outfile=<file>\tOutput file (video in mkv "
         "container/automaton in XML)\n");
  printf("\t-c, --characters\tWrite final state of cellular automaton in XML "
         "format instead of video\n");
  printf("\t-C, --cpu\t\tForce CPU (non-CUDA) implementation\n");
  printf("\t-q, --quantity=<cell>\tDrop quantity of given cell to stdout each "
         "step\n");
  printf("\t-t, --timings\t\tDo timings\n");
  printf(
      "\t-s, --steps=<number>\tNumber of simulation steps (defaults to 100)\n");
  printf("\t-w, --watermark=<text>\tWatermark printed as a subtitle on each "
         "video frame\n");
  printf("\t-v, --verbose\t\tBe verbose (show fancy progressbar)\n");
  printf("\t-h, -?, --help\t\tShow handy user manual you're reading\n");
  printf("\nCellular Copyright (C) 2011-2012 Andrew Kravchuk\nThis is free "
         "software; see the source for copying conditions.  There is "
         "NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A "
         "PARTICULAR PURPOSE.\n");
}


x86 assembly (clang, -O0):
<display_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc1(%rip),%rdi
call   1030 <puts@plt>
lea    0xffc(%rip),%rdi
call   1030 <puts@plt>
lea    0x100b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1042(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
call   1030 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d5(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"USAGE: %s [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [68 x i8] c"\09-i, --infile=<file>\09Input file (cellular automaton in XML format)\0A\00"
@.str.3 = [77 x i8] c"\09-o, --outfile=<file>\09Output file (video in mkv container/automaton in XML)\0A\00"
@.str.4 = [90 x i8] c"\09-c, --characters\09Write final state of cellular automaton in XML format instead of video\0A\00"
@.str.5 = [49 x i8] c"\09-C, --cpu\09\09Force CPU (non-CUDA) implementation\0A\00"
@.str.6 = [72 x i8] c"\09-q, --quantity=<cell>\09Drop quantity of given cell to stdout each step\0A\00"
@.str.7 = [28 x i8] c"\09-t, --timings\09\09Do timings\0A\00"
@.str.8 = [68 x i8] c"\09-s, --steps=<number>\09Number of simulation steps (defaults to 100)\0A\00"
@.str.9 = [77 x i8] c"\09-w, --watermark=<text>\09Watermark printed as a subtitle on each video frame\0A\00"
@.str.10 = [53 x i8] c"\09-v, --verbose\09\09Be verbose (show fancy progressbar)\0A\00"
@.str.11 = [56 x i8] c"\09-h, -?, --help\09\09Show handy user manual you're reading\0A\00"
@.str.12 = [202 x i8] c"\0ACellular Copyright (C) 2011-2012 Andrew Kravchuk\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\0A\00"
define void @display_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([202 x i8], [202 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"USAGE: %s [options]\0A\00"
@str = [9 x i8] c"Options:\00"
@str.13 = [67 x i8] c"\09-i, --infile=<file>\09Input file (cellular automaton in XML format)\00"
@str.14 = [76 x i8] c"\09-o, --outfile=<file>\09Output file (video in mkv container/automaton in XML)\00"
@str.15 = [89 x i8] c"\09-c, --characters\09Write final state of cellular automaton in XML format instead of video\00"
@str.16 = [48 x i8] c"\09-C, --cpu\09\09Force CPU (non-CUDA) implementation\00"
@str.17 = [71 x i8] c"\09-q, --quantity=<cell>\09Drop quantity of given cell to stdout each step\00"
@str.18 = [27 x i8] c"\09-t, --timings\09\09Do timings\00"
@str.19 = [67 x i8] c"\09-s, --steps=<number>\09Number of simulation steps (defaults to 100)\00"
@str.20 = [76 x i8] c"\09-w, --watermark=<text>\09Watermark printed as a subtitle on each video frame\00"
@str.21 = [52 x i8] c"\09-v, --verbose\09\09Be verbose (show fancy progressbar)\00"
@str.22 = [55 x i8] c"\09-h, -?, --help\09\09Show handy user manual you're reading\00"
@str.23 = [201 x i8] c"\0ACellular Copyright (C) 2011-2012 Andrew Kravchuk\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\00"
define void @display_usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([201 x i8], [201 x i8]* @str.23, i64 0, i64 0))
ret void
}