#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 *, ...);
int tool_usage(const char *programName) {
  printf("Usage :\n");
  printf("      %s [args]\n\n", programName);
  printf("Arguments :\n");
  printf(
      "--help     : get help 					\n--test     : "
      "get rsa test 				  \n--getptf   : get plain "
      "text format \n					\n--genkey   : "
      "generate key						\n===Eg: "
      "./rsa_main --genkey\n 					\n--outct    : "
      "output para->cipher text file name 				"
      "	\n--outcb    : output para->block format test bin name 		"
      "			\n--inptext  : input  para->plain text file name "
      "					\n--inpubkey : input  para->public key "
      "file name 					\n===Eg: ./rsa_main "
      "--outct xxxx  --inptext xxx --inpubkey xxx\n 			"
      "		\n--outpt    : output para->plain text file name	"
      "				\n--inctext  : input  para->cipher text file "
      "name 					\n--inprikey : input  "
      "para->private key file name 					"
      "\n===Eg: ./rsa_main --outpt xxxx  --inctext xxxx --inprikey xxxx\n "
      "					\n--pressuretest: output para->result "
      "file name					\n===Eg: ./rsa_main "
      "--pressuretest resultxxxx--inpubkey xxxx --inprikey xxxx\n");
  return 0;
}


x86 assembly (clang, -O0):
<tool_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tool_usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Usage :\0A\00"
@.str.1 = [18 x i8] c" %s [args]\0A\0A\00"
@.str.2 = [13 x i8] c"Arguments :\0A\00"
@.str.3 = [813 x i8] c"--help : get help \09\09\09\09\09\0A--test : get rsa test \09\09\09\09 \0A--getptf : get plain text format \0A\09\09\09\09\09\0A--genkey : generate key\09\09\09\09\09\09\0A===Eg: ./rsa_main --genkey\0A \09\09\09\09\09\0A--outct : output para->cipher text file name \09\09\09\09\09\0A--outcb : output para->block format test bin name \09\09\09\09\09\0A--inptext : input para->plain text file name \09\09\09\09\09\0A--inpubkey : input para->public key file name \09\09\09\09\09\0A===Eg: ./rsa_main --outct xxxx --inptext xxx --inpubkey xxx\0A \09\09\09\09\09\0A--outpt : output para->plain text file name\09\09\09\09\09\0A--inctext : input para->cipher text file name \09\09\09\09\09\0A--inprikey : input para->private key file name \09\09\09\09\09\0A===Eg: ./rsa_main --outpt xxxx --inctext xxxx --inprikey xxxx\0A \09\09\09\09\09\0A--pressuretest: output para->result file name\09\09\09\09\09\0A===Eg: ./rsa_main --pressuretest resultxxxx--inpubkey xxxx --inprikey xxxx\0A\00"
define i32 @tool_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([813 x i8], [813 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c" %s [args]\0A\0A\00"
@str = [8 x i8] c"Usage :\00"
@str.4 = [12 x i8] c"Arguments :\00"
@str.5 = [812 x i8] c"--help : get help \09\09\09\09\09\0A--test : get rsa test \09\09\09\09 \0A--getptf : get plain text format \0A\09\09\09\09\09\0A--genkey : generate key\09\09\09\09\09\09\0A===Eg: ./rsa_main --genkey\0A \09\09\09\09\09\0A--outct : output para->cipher text file name \09\09\09\09\09\0A--outcb : output para->block format test bin name \09\09\09\09\09\0A--inptext : input para->plain text file name \09\09\09\09\09\0A--inpubkey : input para->public key file name \09\09\09\09\09\0A===Eg: ./rsa_main --outct xxxx --inptext xxx --inpubkey xxx\0A \09\09\09\09\09\0A--outpt : output para->plain text file name\09\09\09\09\09\0A--inctext : input para->cipher text file name \09\09\09\09\09\0A--inprikey : input para->private key file name \09\09\09\09\09\0A===Eg: ./rsa_main --outpt xxxx --inctext xxxx --inprikey xxxx\0A \09\09\09\09\09\0A--pressuretest: output para->result file name\09\09\09\09\09\0A===Eg: ./rsa_main --pressuretest resultxxxx--inpubkey xxxx --inprikey xxxx\00"
define i32 @tool_usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.4, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([812 x i8], [812 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}