#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 usage(const char *name) {
  printf("Point Spread Function Estimation from a Random Target\n");
  printf("Copyright M.Delbracio, P.Muse, A.Almansa. ");
  printf("Version 1.3 - 26 December 2011\n\n");
  printf("Usage: %s [options] <input file> <output file>\n\n"
         "Only  PGM 16/8 bits images are supported.\n\n",
         name);
  printf("Options:\n");
  printf("  -s <number>  The super-resolution factor, positive integer");
  printf("  (default 4)\n");
  printf("  -k <number>  PSF support size (default 4s + 1)\n");
  printf("  -o <file>    Estimated PSF save to a 8bits PGM image \n");
  printf("  -p <file>    Noise Pattern PGM image \n");
  printf("  -d <file>    Save the input image with detected pattern marked");
  printf("  (24bits PPM)\n");
  printf("  -t <0,1,2>   Least Squares solver:\n");
  printf("                    0 - Least Squares\n");
  printf("                    1 - Least Squares + thresholding (default)\n");
  printf("                    2 - Non-negative least Squares (slowest)\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1063(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xfda(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x100f(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
lea    0x104c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1065(%rip),%rdi
call   1030 <puts@plt>
lea    0x107f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b2(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"Point Spread Function Estimation from a Random Target\0A\00"
@.str.1 = [43 x i8] c"Copyright M.Delbracio, P.Muse, A.Almansa. \00"
@.str.2 = [33 x i8] c"Version 1.3 - 26 December 2011\0A\0A\00"
@.str.3 = [92 x i8] c"Usage: %s [options] <input file> <output file>\0A\0AOnly PGM 16/8 bits images are supported.\0A\0A\00"
@.str.4 = [10 x i8] c"Options:\0A\00"
@.str.5 = [61 x i8] c" -s <number> The super-resolution factor, positive integer\00"
@.str.6 = [15 x i8] c" (default 4)\0A\00"
@.str.7 = [50 x i8] c" -k <number> PSF support size (default 4s + 1)\0A\00"
@.str.8 = [57 x i8] c" -o <file> Estimated PSF save to a 8bits PGM image \0A\00"
@.str.9 = [41 x i8] c" -p <file> Noise Pattern PGM image \0A\00"
@.str.10 = [65 x i8] c" -d <file> Save the input image with detected pattern marked\00"
@.str.11 = [16 x i8] c" (24bits PPM)\0A\00"
@.str.12 = [38 x i8] c" -t <0,1,2> Least Squares solver:\0A\00"
@.str.13 = [39 x i8] c" 0 - Least Squares\0A\00"
@.str.14 = [64 x i8] c" 1 - Least Squares + thresholding (default)\0A\00"
@.str.15 = [62 x i8] c" 2 - Non-negative least Squares (slowest)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [43 x i8] c"Copyright M.Delbracio, P.Muse, A.Almansa. \00"
@.str.3 = [92 x i8] c"Usage: %s [options] <input file> <output file>\0A\0AOnly PGM 16/8 bits images are supported.\0A\0A\00"
@.str.5 = [61 x i8] c" -s <number> The super-resolution factor, positive integer\00"
@.str.10 = [65 x i8] c" -d <file> Save the input image with detected pattern marked\00"
@str = [54 x i8] c"Point Spread Function Estimation from a Random Target\00"
@str.16 = [32 x i8] c"Version 1.3 - 26 December 2011\0A\00"
@str.17 = [9 x i8] c"Options:\00"
@str.18 = [14 x i8] c" (default 4)\00"
@str.19 = [49 x i8] c" -k <number> PSF support size (default 4s + 1)\00"
@str.20 = [56 x i8] c" -o <file> Estimated PSF save to a 8bits PGM image \00"
@str.21 = [40 x i8] c" -p <file> Noise Pattern PGM image \00"
@str.22 = [15 x i8] c" (24bits PPM)\00"
@str.23 = [37 x i8] c" -t <0,1,2> Least Squares solver:\00"
@str.24 = [38 x i8] c" 0 - Least Squares\00"
@str.25 = [63 x i8] c" 1 - Least Squares + thresholding (default)\00"
@str.26 = [61 x i8] c" 2 - Non-negative least Squares (slowest)\00"
define void @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.25, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.26, i64 0, i64 0))
ret void
}