#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*/ rdp_filestream_close();
int /*<<< orphan*/ rdp_filestream_open(char *, char *);
int /*<<< orphan*/ rdp_sender(char *, char *, char *, char *);
int /*<<< orphan*/ rdp_sender_connect();
int /*<<< orphan*/ rdp_sender_disconnect();
int /*<<< orphan*/ rdp_sender_send();
int /*<<< orphan*/ rdp_sender_stats();
void rdps_test() {
  rdp_filestream_open("send/test.dat", "r");
  rdp_sender("192.168.1.100", "9002", "10.10.1.100", "9001");
  rdp_sender_connect();
  rdp_sender_send();
  rdp_sender_disconnect();
  rdp_filestream_close();
  rdp_sender_stats();
}


x86 assembly (clang, -O0):
<rdps_test>:
push   %rbp
mov    %rsp,%rbp
lea    0xe85(%rip),%rdi
lea    0xe8c(%rip),%rsi
call   1070 <rdp_filestream_open@plt>
lea    0xe82(%rip),%rdi
lea    0xe89(%rip),%rsi
lea    0xe87(%rip),%rdx
lea    0xe8c(%rip),%rcx
call   1040 <rdp_sender@plt>
mov    $0x0,%al
call   1080 <rdp_sender_connect@plt>
mov    $0x0,%al
call   1060 <rdp_sender_send@plt>
mov    $0x0,%al
call   1090 <rdp_sender_disconnect@plt>
mov    $0x0,%al
call   1030 <rdp_filestream_close@plt>
mov    $0x0,%al
call   1050 <rdp_sender_stats@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdps_test>:
push   %rax
lea    0xe88(%rip),%rdi
lea    0xe8f(%rip),%rsi
call   1070 <rdp_filestream_open@plt>
lea    0xe85(%rip),%rdi
lea    0xe8c(%rip),%rsi
lea    0xe8a(%rip),%rdx
lea    0xe8f(%rip),%rcx
call   1040 <rdp_sender@plt>
xor    %eax,%eax
call   1080 <rdp_sender_connect@plt>
xor    %eax,%eax
call   1060 <rdp_sender_send@plt>
xor    %eax,%eax
call   1090 <rdp_sender_disconnect@plt>
xor    %eax,%eax
call   1030 <rdp_filestream_close@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <rdp_sender_stats@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"send/test.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"192.168.1.100\00"
@.str.3 = [5 x i8] c"9002\00"
@.str.4 = [12 x i8] c"10.10.1.100\00"
@.str.5 = [5 x i8] c"9001\00"
define void @rdps_test() {
%1 = call i32 @rdp_filestream_open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @rdp_sender(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 (...) @rdp_sender_connect()
%4 = call i32 (...) @rdp_sender_send()
%5 = call i32 (...) @rdp_sender_disconnect()
%6 = call i32 (...) @rdp_filestream_close()
%7 = call i32 (...) @rdp_sender_stats()
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"send/test.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"192.168.1.100\00"
@.str.3 = [5 x i8] c"9002\00"
@.str.4 = [12 x i8] c"10.10.1.100\00"
@.str.5 = [5 x i8] c"9001\00"
define void @rdps_test() {
%1 = tail call i32 @rdp_filestream_open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @rdp_sender(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 (...) @rdp_sender_connect()
%4 = tail call i32 (...) @rdp_sender_send()
%5 = tail call i32 (...) @rdp_sender_disconnect()
%6 = tail call i32 (...) @rdp_filestream_close()
%7 = tail call i32 (...) @rdp_sender_stats()
ret void
}