#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 */
struct sockaddr_in {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ receive_string(int, char *, struct sockaddr_in *,
                                  unsigned int *);
int /*<<< orphan*/ send_int(int, int, struct sockaddr_in *, unsigned int);
int string_vowel_analyzer(char *);
int receiveStringCalculateVowelSendtoClientResult(struct sockaddr_in *cad,
                                                  int socket,
                                                  unsigned int *cadSize,
                                                  char *string,
                                                  int vowel_numb) {
  receive_string(socket, string, cad, cadSize);
  puts(string);
  vowel_numb = string_vowel_analyzer(string);
  send_int(vowel_numb, socket, cad, *cadSize);
  return vowel_numb;
}


x86 assembly (clang, -O0):
<receiveStringCalculateVowelSendtoClientResult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <receive_string@plt>
mov    -0x20(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x20(%rbp),%rdi
call   1050 <string_vowel_analyzer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
call   1060 <send_int@plt>
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<receiveStringCalculateVowelSendtoClientResult>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%rbx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%r15
mov    %esi,%edi
mov    %rcx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
call   1040 <receive_string@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1050 <string_vowel_analyzer@plt>
mov    %eax,%ebx
mov    (%r14),%ecx
mov    %eax,%edi
mov    %ebp,%esi
mov    %r15,%rdx
call   1060 <send_int@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32 }
define i32 @receiveStringCalculateVowelSendtoClientResult(%struct.sockaddr_in* %0, i32 %1, i32* %2, i8* %3, i32 %4) {
%6 = alloca %struct.sockaddr_in*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i32
store %struct.sockaddr_in* %0, %struct.sockaddr_in** %6
store i32 %1, i32* %7
store i32* %2, i32** %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i32, i32* %7
%12 = load i8*, i8** %9
%13 = load %struct.sockaddr_in*, %struct.sockaddr_in** %6
%14 = load i32*, i32** %8
%15 = call i32 @receive_string(i32 %11, i8* %12, %struct.sockaddr_in* %13, i32* %14)
%16 = load i8*, i8** %9
%17 = call i32 @puts(i8* %16)
%18 = load i8*, i8** %9
%19 = call i32 @string_vowel_analyzer(i8* %18)
store i32 %19, i32* %10
%20 = load i32, i32* %10
%21 = load i32, i32* %7
%22 = load %struct.sockaddr_in*, %struct.sockaddr_in** %6
%23 = load i32*, i32** %8
%24 = load i32, i32* %23
%25 = call i32 @send_int(i32 %20, i32 %21, %struct.sockaddr_in* %22, i32 %24)
%26 = load i32, i32* %10
ret i32 %26
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32 }
define i32 @receiveStringCalculateVowelSendtoClientResult(%struct.sockaddr_in* %0, i32 %1, i32* %2, i8* %3, i32 %4) {
%6 = tail call i32 @receive_string(i32 %1, i8* %3, %struct.sockaddr_in* %0, i32* %2)
%7 = tail call i32 @puts(i8* dereferenceable(1) %3)
%8 = tail call i32 @string_vowel_analyzer(i8* %3)
%9 = load i32, i32* %2
%10 = tail call i32 @send_int(i32 %8, i32 %1, %struct.sockaddr_in* %0, i32 %9)
ret i32 %8
}