#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 *, ...);
scalar_t__ strcmp(char *, char *);
void manprint(char *msg) {
  if (strcmp(msg, ""))
    printf("\n ERROR: %s", msg);
  printf("\n\n");
  printf("\t codeTemplate is an application to create or fill startup content "
         "for \n\tprogramming code files.");
  printf("\n\n Usage:");
  printf("\n\n");
  printf("\t startCode [options] filename dest_path");
  printf("\n\t\t This command places the custom startup file (with filename) ");
  printf("\n\t\t in the specified directory. Extension is appended "
         "automatically.");
  printf("\n\n\t [options]");
  printf("\n\t\t -cc : C programming .c (code) file");
  printf("\n\t\t -ch : C programming .h (header) file");
  printf("\n\t\t -m  : Makefile");
  printf("\n\t\t -h  : Help or manual page display");
  printf("\n\n\t filename");
  printf(
      "\n\t\t If file already exists at the location (specified by destdir),");
  printf(
      "\n\t\t content is inserted at the beginning of the file otherwise a ");
  printf("\n\t\t new file with the content is created. Note: Extension is "
         "automatically applied.");
  printf("\n\n\t destdir");
  printf("\n\t\t Directory in which resultant file should be placed. This "
         "directory can be");
  printf("\n\t\t relative to current working directory (.) or an absolute path "
         "(starting with '/' or '~')");
  printf("\n");
  return;
}


x86 assembly (clang, -O0):
<manprint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1158 <manprint+0x38>
mov    -0x8(%rbp),%rsi
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<manprint>:
push   %rbx
mov    %rdi,%rbx
lea    0x1210(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1166 <manprint+0x26>
lea    0xea4(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x11ed(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf25(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf5c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf5c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf75(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf90(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf95(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfad(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfac(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfe1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1015(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x105b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1059(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1099(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [12 x i8] c"\0A ERROR: %s\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
@.str.3 = [97 x i8] c"\09 codeTemplate is an application to create or fill startup content for \0A\09programming code files.\00"
@.str.4 = [10 x i8] c"\0A\0A Usage:\00"
@.str.5 = [41 x i8] c"\09 startCode [options] filename dest_path\00"
@.str.6 = [65 x i8] c"\0A\09\09 This command places the custom startup file (with filename) \00"
@.str.7 = [69 x i8] c"\0A\09\09 in the specified directory. Extension is appended automatically.\00"
@.str.8 = [14 x i8] c"\0A\0A\09 [options]\00"
@.str.9 = [39 x i8] c"\0A\09\09 -cc : C programming .c (code) file\00"
@.str.10 = [41 x i8] c"\0A\09\09 -ch : C programming .h (header) file\00"
@.str.11 = [19 x i8] c"\0A\09\09 -m : Makefile\00"
@.str.12 = [38 x i8] c"\0A\09\09 -h : Help or manual page display\00"
@.str.13 = [13 x i8] c"\0A\0A\09 filename\00"
@.str.14 = [67 x i8] c"\0A\09\09 If file already exists at the location (specified by destdir),\00"
@.str.15 = [66 x i8] c"\0A\09\09 content is inserted at the beginning of the file otherwise a \00"
@.str.16 = [84 x i8] c"\0A\09\09 new file with the content is created. Note: Extension is automatically applied.\00"
@.str.17 = [12 x i8] c"\0A\0A\09 destdir\00"
@.str.18 = [78 x i8] c"\0A\09\09 Directory in which resultant file should be placed. This directory can be\00"
@.str.19 = [93 x i8] c"\0A\09\09 relative to current working directory (.) or an absolute path (starting with '/' or '~')\00"
@.str.20 = [2 x i8] c"\0A\00"
define void @manprint(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %6, %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.18, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.19, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [12 x i8] c"\0A ERROR: %s\00"
@.str.3 = [97 x i8] c"\09 codeTemplate is an application to create or fill startup content for \0A\09programming code files.\00"
@.str.4 = [10 x i8] c"\0A\0A Usage:\00"
@.str.5 = [41 x i8] c"\09 startCode [options] filename dest_path\00"
@.str.6 = [65 x i8] c"\0A\09\09 This command places the custom startup file (with filename) \00"
@.str.7 = [69 x i8] c"\0A\09\09 in the specified directory. Extension is appended automatically.\00"
@.str.8 = [14 x i8] c"\0A\0A\09 [options]\00"
@.str.9 = [39 x i8] c"\0A\09\09 -cc : C programming .c (code) file\00"
@.str.10 = [41 x i8] c"\0A\09\09 -ch : C programming .h (header) file\00"
@.str.11 = [19 x i8] c"\0A\09\09 -m : Makefile\00"
@.str.12 = [38 x i8] c"\0A\09\09 -h : Help or manual page display\00"
@.str.13 = [13 x i8] c"\0A\0A\09 filename\00"
@.str.14 = [67 x i8] c"\0A\09\09 If file already exists at the location (specified by destdir),\00"
@.str.15 = [66 x i8] c"\0A\09\09 content is inserted at the beginning of the file otherwise a \00"
@.str.16 = [84 x i8] c"\0A\09\09 new file with the content is created. Note: Extension is automatically applied.\00"
@.str.17 = [12 x i8] c"\0A\0A\09 destdir\00"
@.str.18 = [78 x i8] c"\0A\09\09 Directory in which resultant file should be placed. This directory can be\00"
@.str.19 = [93 x i8] c"\0A\09\09 relative to current working directory (.) or an absolute path (starting with '/' or '~')\00"
@str.21 = [2 x i8] c"\0A\00"
define void @manprint(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.14, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.15, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.18, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str.19, i64 0, i64 0))
%26 = tail call i32 @putchar(i32 10)
ret void
}