#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 */
char *calloc(scalar_t__, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
char *Requete_Message(char *message) {
  char *Requete;
  char req_mess[1503] = "";
  strcat(req_mess, "4,");
  strcat(req_mess, message);
  Requete = calloc((strlen(req_mess) + 1), sizeof(char));
  strcpy(Requete, req_mess);
  return Requete;
}


x86 assembly (clang, -O0):
<Requete_Message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5f0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x5f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x5df,%edx
call   1050 <memset@plt>
lea    -0x5f0(%rbp),%rdi
lea    0xe80(%rip),%rsi
call   1070 <strcat@plt>
lea    -0x5f0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x5f0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   1060 <calloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x5f0(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x5f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Requete_Message>:
push   %r15
push   %r14
push   %rbx
sub    $0x5e0,%rsp
mov    %rdi,%r14
mov    %rsp,%r15
mov    $0x5df,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe88(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcat@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1070 <strcat@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
mov    $0x1,%esi
call   1060 <calloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x5e0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"4,\00"
define i8* @Requete_Message(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca [1503 x i8]
store i8* %0, i8** %2
%5 = bitcast [1503 x i8]* %4 to i8*
%6 = getelementptr inbounds [1503 x i8], [1503 x i8]* %4, i64 0, i64 0
%7 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [1503 x i8], [1503 x i8]* %4, i64 0, i64 0
%9 = load i8*, i8** %2
%10 = call i32 @strcat(i8* %8, i8* %9)
%11 = getelementptr inbounds [1503 x i8], [1503 x i8]* %4, i64 0, i64 0
%12 = call i64 @strlen(i8* %11)
%13 = add nsw i64 %12, 1
%14 = call i8* @calloc(i64 %13, i32 1)
store i8* %14, i8** %3
%15 = load i8*, i8** %3
%16 = getelementptr inbounds [1503 x i8], [1503 x i8]* %4, i64 0, i64 0
%17 = call i32 @strcpy(i8* %15, i8* %16)
%18 = load i8*, i8** %3
ret i8* %18
}

LLVM IR (-O2):
@.str = [3 x i8] c"4,\00"
define i8* @Requete_Message(i8* %0) {
%2 = alloca [1503 x i8]
%3 = getelementptr inbounds [1503 x i8], [1503 x i8]* %2, i64 0, i64 0
%4 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @strcat(i8* %3, i8* %0)
%6 = call i64 @strlen(i8* %3)
%7 = add nsw i64 %6, 1
%8 = call i8* @calloc(i64 %7, i32 1)
%9 = call i32 @strcpy(i8* %8, i8* %3)
ret i8* %8
}