#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() {
  printf(
      "Usage: ppm [options]...\n"
      "Apply filters to ppm images\n"
      "\n"
      "Mandatory arguments to long options are mandatory for short options "
      "too.\n"
      "  -i --input=FILE              Use FILE as input stream. Otherwise ppm "
      "uses stdin.\n"
      "  -o --output=FILE             Outputs resulted image to FILE. "
      "Otherwise prints to stdout.\n"
      "  -f --filter=F1,F2=1;7        Sets the filter to use on the input "
      "image. Where F1 represent \n"
      "                                 one of the filters listed bellow, F2=1 "
      "represent another with 1\n"
      "                                 as an argument. Filters must be "
      "separated by commas. Arguments, \n"
      "                                 if more than one must be separated by "
      "semicolons.\n"
      "  -c --custom=S,M=1;1;1...[,D] Runs a custom user defined convolution "
      "matrix where S is the matrix\n"
      "                                 size (must be an odd number) and M "
      "defines the matrix values\n"
      "                                 separated by semicolons. Optionally "
      "can be defined a divider to be\n"
      "                                 applied to the sum.\n"
      "\n"
      "\n"
      "The available filters are:\n"
      "  INVERT       Inverts the image\n"
      "  RGB=R[;G;B]  Color adjustment needs 1 or 3 integers ranging from -255 "
      "to 255 as parameter\n"
      "  GREYSCALE    Converts a colored image to greyscale\n"
      "  ROTATE=angle Rotates the image, acceptable angles are 90, 180, 270 "
      "and 360\n"
      "  FLIP         Inverts the image upside down\n"
      "  MIRROR       Inverts the image sideways\n"
      "  BLUR[=S]     Blurs the image using a S size pixel matrix as sample\n"
      "  BORDER       Border detection\n"
      "  SHARP        Sharpens the image\n"
      "\n");
}


x86 assembly (clang, -O0):
<display_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [1526 x i8] c"Usage: ppm [options]...\0AApply filters to ppm images\0A\0AMandatory arguments to long options are mandatory for short options too.\0A -i --input=FILE Use FILE as input stream. Otherwise ppm uses stdin.\0A -o --output=FILE Outputs resulted image to FILE. Otherwise prints to stdout.\0A -f --filter=F1,F2=1;7 Sets the filter to use on the input image. Where F1 represent \0A one of the filters listed bellow, F2=1 represent another with 1\0A as an argument. Filters must be separated by commas. Arguments, \0A if more than one must be separated by semicolons.\0A -c --custom=S,M=1;1;1...[,D] Runs a custom user defined convolution matrix where S is the matrix\0A size (must be an odd number) and M defines the matrix values\0A separated by semicolons. Optionally can be defined a divider to be\0A applied to the sum.\0A\0A\0AThe available filters are:\0A INVERT Inverts the image\0A RGB=R[;G;B] Color adjustment needs 1 or 3 integers ranging from -255 to 255 as parameter\0A GREYSCALE Converts a colored image to greyscale\0A ROTATE=angle Rotates the image, acceptable angles are 90, 180, 270 and 360\0A FLIP Inverts the image upside down\0A MIRROR Inverts the image sideways\0A BLUR[=S] Blurs the image using a S size pixel matrix as sample\0A BORDER Border detection\0A SHARP Sharpens the image\0A\0A\00"
define void @display_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([1526 x i8], [1526 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [1525 x i8] c"Usage: ppm [options]...\0AApply filters to ppm images\0A\0AMandatory arguments to long options are mandatory for short options too.\0A -i --input=FILE Use FILE as input stream. Otherwise ppm uses stdin.\0A -o --output=FILE Outputs resulted image to FILE. Otherwise prints to stdout.\0A -f --filter=F1,F2=1;7 Sets the filter to use on the input image. Where F1 represent \0A one of the filters listed bellow, F2=1 represent another with 1\0A as an argument. Filters must be separated by commas. Arguments, \0A if more than one must be separated by semicolons.\0A -c --custom=S,M=1;1;1...[,D] Runs a custom user defined convolution matrix where S is the matrix\0A size (must be an odd number) and M defines the matrix values\0A separated by semicolons. Optionally can be defined a divider to be\0A applied to the sum.\0A\0A\0AThe available filters are:\0A INVERT Inverts the image\0A RGB=R[;G;B] Color adjustment needs 1 or 3 integers ranging from -255 to 255 as parameter\0A GREYSCALE Converts a colored image to greyscale\0A ROTATE=angle Rotates the image, acceptable angles are 90, 180, 270 and 360\0A FLIP Inverts the image upside down\0A MIRROR Inverts the image sideways\0A BLUR[=S] Blurs the image using a S size pixel matrix as sample\0A BORDER Border detection\0A SHARP Sharpens the image\0A\00"
define void @display_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1525 x i8], [1525 x i8]* @str, i64 0, i64 0))
ret void
}