#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void doHelp() {
  printf("Usage: filters.exe image.png options\n");
  printf("Options can be:\n");
  printf("	-f filter		where filter is one of the following "
         "filter types:\n");
  printf(
      "						0 	avg3 (default)\n");
  printf("						1 	avg5\n");
  printf("						2 	sharpenWeak\n");
  printf(
      "						3 	sharpenStrong\n");
  printf("						4 	gaussian3\n");
  printf("						5 	gaussian5\n");
  printf(
      "						6 	edgeDetection\n");
  printf("						7 	embossing\n");
  printf("	-p				if set, the program will use "
         "pinned memory\n");
  printf("	-t threads 		where t is an integer number power of "
         "2 and not greater than %u\n",
         32);
  printf("Pinned memory is mandatory in case of asyncronous execution\n");
  printf("Currently supported images formats: .png\n");
  exit(1);
}


x86 assembly (clang, -O0):
<doHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<doHelp>:
push   %rax
lea    0xf17(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
call   1030 <puts@plt>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0xe38(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfbc(%rip),%rdi
call   1030 <puts@plt>
lea    0xfec(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Usage: filters.exe image.png options\0A\00"
@.str.1 = [17 x i8] c"Options can be:\0A\00"
@.str.2 = [64 x i8] c"\09-f filter\09\09where filter is one of the following filter types:\0A\00"
@.str.3 = [25 x i8] c"\09\09\09\09\09\090 \09avg3 (default)\0A\00"
@.str.4 = [15 x i8] c"\09\09\09\09\09\091 \09avg5\0A\00"
@.str.5 = [22 x i8] c"\09\09\09\09\09\092 \09sharpenWeak\0A\00"
@.str.6 = [24 x i8] c"\09\09\09\09\09\093 \09sharpenStrong\0A\00"
@.str.7 = [20 x i8] c"\09\09\09\09\09\094 \09gaussian3\0A\00"
@.str.8 = [20 x i8] c"\09\09\09\09\09\095 \09gaussian5\0A\00"
@.str.9 = [24 x i8] c"\09\09\09\09\09\096 \09edgeDetection\0A\00"
@.str.10 = [20 x i8] c"\09\09\09\09\09\097 \09embossing\0A\00"
@.str.11 = [51 x i8] c"\09-p\09\09\09\09if set, the program will use pinned memory\0A\00"
@.str.12 = [79 x i8] c"\09-t threads \09\09where t is an integer number power of 2 and not greater than %u\0A\00"
@.str.13 = [61 x i8] c"Pinned memory is mandatory in case of asyncronous execution\0A\00"
@.str.14 = [42 x i8] c"Currently supported images formats: .png\0A\00"
define void @doHelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.12, i64 0, i64 0), i32 32)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.12 = [79 x i8] c"\09-t threads \09\09where t is an integer number power of 2 and not greater than %u\0A\00"
@str = [37 x i8] c"Usage: filters.exe image.png options\00"
@str.15 = [16 x i8] c"Options can be:\00"
@str.16 = [63 x i8] c"\09-f filter\09\09where filter is one of the following filter types:\00"
@str.17 = [24 x i8] c"\09\09\09\09\09\090 \09avg3 (default)\00"
@str.18 = [14 x i8] c"\09\09\09\09\09\091 \09avg5\00"
@str.19 = [21 x i8] c"\09\09\09\09\09\092 \09sharpenWeak\00"
@str.20 = [23 x i8] c"\09\09\09\09\09\093 \09sharpenStrong\00"
@str.21 = [19 x i8] c"\09\09\09\09\09\094 \09gaussian3\00"
@str.22 = [19 x i8] c"\09\09\09\09\09\095 \09gaussian5\00"
@str.23 = [23 x i8] c"\09\09\09\09\09\096 \09edgeDetection\00"
@str.24 = [19 x i8] c"\09\09\09\09\09\097 \09embossing\00"
@str.25 = [50 x i8] c"\09-p\09\09\09\09if set, the program will use pinned memory\00"
@str.26 = [60 x i8] c"Pinned memory is mandatory in case of asyncronous execution\00"
@str.27 = [41 x i8] c"Currently supported images formats: .png\00"
define void @doHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.12, i64 0, i64 0), i32 32)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
}