#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
void print_help(void) {
  printf(
      "-- This is 'docars' an interactive client for cars sharing server --\n");
  printf("-- Allowed command:\n");
  printf("\t%%R <start>:<arrival> - To send to server a new request\n");
  printf("\t<start>:<arrival>:<place> - To send to server a new offer\n");
  printf("\t%%EXIT - To disconnect from the server and close the client\n");
  printf("\t%%HELP - To show this help\n");
  fflush(stdout);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb0(%rip),%rdi
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1050 <fflush@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"-- This is 'docars' an interactive client for cars sharing server --\0A\00"
@.str.1 = [21 x i8] c"-- Allowed command:\0A\00"
@.str.2 = [58 x i8] c"\09%%R <start>:<arrival> - To send to server a new request\0A\00"
@.str.3 = [60 x i8] c"\09<start>:<arrival>:<place> - To send to server a new offer\0A\00"
@.str.4 = [62 x i8] c"\09%%EXIT - To disconnect from the server and close the client\0A\00"
@.str.5 = [29 x i8] c"\09%%HELP - To show this help\0A\00"
@stdout = global i32 0
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 @fflush(i32 %7)
ret void
}

LLVM IR (-O2):
@.str.2 = [58 x i8] c"\09%%R <start>:<arrival> - To send to server a new request\0A\00"
@.str.4 = [62 x i8] c"\09%%EXIT - To disconnect from the server and close the client\0A\00"
@.str.5 = [29 x i8] c"\09%%HELP - To show this help\0A\00"
@stdout = global i32 0
@str = [69 x i8] c"-- This is 'docars' an interactive client for cars sharing server --\00"
@str.6 = [20 x i8] c"-- Allowed command:\00"
@str.7 = [59 x i8] c"\09<start>:<arrival>:<place> - To send to server a new offer\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.7, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 @fflush(i32 %7)
ret void
}