#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 */
typedef int /*<<< orphan*/ xdrproc_t;
struct timeval {
  int tv_sec;
  int tv_usec;
};
typedef enum clnt_stat { ____Placeholder_clnt_stat } clnt_stat;
typedef int /*<<< orphan*/ CLIENT;

/* Variables and functions */
int atoi(char *);
int clnt_call(int /*<<< orphan*/ *, int, int /*<<< orphan*/, char *,
              int /*<<< orphan*/, char *, struct timeval);
int /*<<< orphan*/ *clnt_create(char *, int, int, char *);
int /*<<< orphan*/ clnt_pcreateerror(char *);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
scalar_t__ xdr_double;
scalar_t__ xdr_int;
scalar_t__ xdr_long;
scalar_t__ xdr_wrapstring;
int main(int argn, char *argc[]) {
  int run_mode = 0;
  int test_status = 0;
  int progNum = atoi(argc[2]);
  char proto[8] = "udp";
  CLIENT *clnt = NULL;
  enum clnt_stat cs;
  struct timeval to;
  int intSnd;
  double dblSnd;
  long lngSnd;
  char *strSnd;
  int intRec;
  double dblRec;
  long lngRec;
  char *strRec;
  to.tv_sec = 1;
  to.tv_usec = 100;
  clnt = clnt_create(argc[1], progNum, 1, proto);
  if (run_mode == 1) {
    printf("CLIENT : %p\n", clnt);
    printf("progNum : %d\n", progNum);
    printf("Proto : %s\n", proto);
  }
  if ((CLIENT *)clnt == NULL) {
    clnt_pcreateerror("err");
    printf("1\n");
    return 1;
  }
  intSnd = -65536;
  cs = clnt_call(clnt, 1000, (xdrproc_t)xdr_int, (char *)&intSnd,
                 (xdrproc_t)xdr_int, (char *)&intRec, to);
  if (intSnd != intRec)
    test_status = 1;
  if (run_mode == 1)
    printf("Send (int) : %d, Received : %d\n", intSnd, intRec);
  intSnd = 16777216;
  cs = clnt_call(clnt, 1000, (xdrproc_t)xdr_int, (char *)&intSnd,
                 (xdrproc_t)xdr_int, (char *)&intRec, to);
  if (intSnd != intRec)
    test_status = 1;
  if (run_mode == 1)
    printf("Send (int) : %d, Received : %d\n", intSnd, intRec);
  lngSnd = -430000;
  cs = clnt_call(clnt, 3000, (xdrproc_t)xdr_long, (char *)&lngSnd,
                 (xdrproc_t)xdr_long, (char *)&lngRec, to);
  if (lngSnd != lngRec)
    test_status = 1;
  if (run_mode == 1)
    printf("Send (long) : %ld, Received : %ld\n", lngSnd, lngRec);
  dblSnd = -1735.63000f;
  cs = clnt_call(clnt, 2000, (xdrproc_t)xdr_double, (char *)&dblSnd,
                 (xdrproc_t)xdr_double, (char *)&dblRec, to);
  if (dblSnd != dblRec)
    test_status = 1;
  if (run_mode == 1)
    printf("Send (double) : %lf, Received : %lf\n", dblSnd, dblRec);
  strSnd = "text to send.";
  strRec = malloc(64 * sizeof(char));
  cs = clnt_call(clnt, 4000, (xdrproc_t)xdr_wrapstring, (char *)&strSnd,
                 (xdrproc_t)xdr_wrapstring, (char *)&strRec, to);
  if (strcmp(strSnd, strRec))
    test_status = 1;
  if (run_mode == 1)
    printf("Send (string) : %s, Received : %s\n", strSnd, strRec);
  printf("%d\n", test_status);
  return test_status;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    0xe5a(%rip),%rax
mov    %rax,-0x24(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x1,-0x40(%rbp)
movl   $0x64,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x1c(%rbp),%esi
lea    -0x24(%rbp),%rcx
mov    $0x1,%edx
call   1050 <clnt_create@plt>
mov    %rax,-0x30(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    1224 <main+0xb4>
mov    -0x30(%rbp),%rsi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
jne    1255 <main+0xe5>
lea    0xe01(%rip),%rdi
call   1080 <clnt_pcreateerror@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    14e3 <main+0x373>
movl   $0xffff0000,-0x44(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2d71(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    -0x44(%rbp),%rcx
mov    0x2d61(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x64(%rbp),%r9
mov    -0x40(%rbp),%rax
mov    $0x3e8,%esi
mov    %rax,(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x34(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x64(%rbp),%eax
je     12a9 <main+0x139>
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    12c7 <main+0x157>
mov    -0x44(%rbp),%esi
mov    -0x64(%rbp),%edx
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1000000,-0x44(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2cff(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    -0x44(%rbp),%rcx
mov    0x2cef(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x64(%rbp),%r9
mov    -0x40(%rbp),%rax
mov    $0x3e8,%esi
mov    %rax,(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x34(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x64(%rbp),%eax
je     131b <main+0x1ab>
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    1339 <main+0x1c9>
mov    -0x44(%rbp),%esi
mov    -0x64(%rbp),%edx
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0xfffffffffff97050,-0x58(%rbp)
ff
mov    -0x30(%rbp),%rdi
mov    0x2c94(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    -0x58(%rbp),%rcx
mov    0x2c84(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x78(%rbp),%r9
mov    -0x40(%rbp),%rax
mov    $0xbb8,%esi
mov    %rax,(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x34(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x78(%rbp),%rax
je     1390 <main+0x220>
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    13b0 <main+0x240>
mov    -0x58(%rbp),%rsi
mov    -0x78(%rbp),%rdx
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xc48(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2c28(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    -0x50(%rbp),%rcx
mov    0x2c18(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x70(%rbp),%r9
mov    -0x40(%rbp),%rax
mov    $0x7d0,%esi
mov    %rax,(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x34(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jne    1412 <main+0x2a2>
jp     1412 <main+0x2a2>
jmp    1419 <main+0x2a9>
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    143b <main+0x2cb>
movsd  -0x50(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
lea    0xc4d(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xc64(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    $0x40,%edi
call   1060 <malloc@plt>
mov    %rax,-0x80(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2b69(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    -0x60(%rbp),%rcx
mov    0x2b59(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x80(%rbp),%r9
mov    -0x40(%rbp),%rax
mov    $0xfa0,%esi
mov    %rax,(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x34(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x80(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     14ac <main+0x33c>
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    14cc <main+0x35c>
mov    -0x60(%rbp),%rsi
mov    -0x80(%rbp),%rdx
lea    0xbef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
mov    0x10(%rsi),%rdi
call   10a0 <atoi@plt>
movq   $0x706475,0x40(%rsp)
mov    0x8(%rbx),%rdi
mov    $0x1,%ebp
lea    0x40(%rsp),%rcx
mov    %eax,%esi
mov    $0x1,%edx
call   1060 <clnt_create@plt>
test   %rax,%rax
je     134a <main+0x1ca>
mov    %rax,%rbx
movl   $0xffff0000,0x8(%rsp)
ff
mov    0x2e00(%rip),%r13
mov    0x0(%r13),%edx
movabs $0x6400000001,%r12
mov    %r12,(%rsp)
lea    0x8(%rsp),%rbp
lea    0xc(%rsp),%r14
mov    %rax,%rdi
mov    $0x3e8,%esi
mov    %rbp,%rcx
mov    %edx,%r8d
mov    %r14,%r9
call   1080 <clnt_call@plt>
mov    0x8(%rsp),%eax
cmp    0xc(%rsp),%eax
setne  %r15b
movl   $0x1000000,0x8(%rsp)
01
mov    0x0(%r13),%edx
mov    %r12,(%rsp)
mov    %rbx,%rdi
mov    $0x3e8,%esi
mov    %rbp,%rcx
mov    %edx,%r8d
mov    %r14,%r9
call   1080 <clnt_call@plt>
mov    0x8(%rsp),%eax
cmp    0xc(%rsp),%eax
setne  %bpl
movq   $0xfffffffffff97050,0x20(%rsp)
f9 ff
mov    0x2d88(%rip),%rax
mov    (%rax),%edx
mov    %r12,(%rsp)
lea    0x20(%rsp),%rcx
lea    0x30(%rsp),%r9
mov    %rbx,%rdi
mov    $0xbb8,%esi
mov    %edx,%r8d
call   1080 <clnt_call@plt>
mov    0x20(%rsp),%rax
cmp    0x30(%rsp),%rax
setne  %r14b
movabs $0xc09b1e8520000000,%rax
1e 9b c0
mov    %rax,0x28(%rsp)
mov    0x2d54(%rip),%rax
mov    (%rax),%edx
mov    %r12,(%rsp)
lea    0x28(%rsp),%rcx
lea    0x38(%rsp),%r9
mov    %rbx,%rdi
mov    $0x7d0,%esi
mov    %edx,%r8d
call   1080 <clnt_call@plt>
movsd  0x28(%rsp),%xmm0
ucomisd 0x38(%rsp),%xmm0
setp   %al
setne  %r13b
or     %al,%r13b
lea    0xd2b(%rip),%rax
mov    %rax,0x18(%rsp)
mov    $0x40,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    0x2cd4(%rip),%rax
mov    (%rax),%edx
mov    %r12,(%rsp)
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r9
mov    %rbx,%rdi
mov    $0xfa0,%esi
mov    %edx,%r8d
call   1080 <clnt_call@plt>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
setne  %al
or     %r14b,%al
or     %bpl,%al
or     %r15b,%al
or     %r13b,%al
movzbl %al,%ebp
lea    0xcd3(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1362 <main+0x1e2>
lea    0xcaf(%rip),%rdi
call   1090 <clnt_pcreateerror@plt>
lea    0xcb9(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@__const.main.proto = [8 x i8] c"udp\00\00\00\00\00"
@.str = [13 x i8] c"CLIENT : %p\0A\00"
@.str.1 = [14 x i8] c"progNum : %d\0A\00"
@.str.2 = [12 x i8] c"Proto : %s\0A\00"
@.str.3 = [4 x i8] c"err\00"
@.str.4 = [3 x i8] c"1\0A\00"
@xdr_int = global i64 0
@.str.5 = [32 x i8] c"Send (int) : %d, Received : %d\0A\00"
@xdr_long = global i64 0
@.str.6 = [35 x i8] c"Send (long) : %ld, Received : %ld\0A\00"
@xdr_double = global i64 0
@.str.7 = [37 x i8] c"Send (double) : %lf, Received : %lf\0A\00"
@.str.8 = [14 x i8] c"text to send.\00"
@xdr_wrapstring = global i64 0
@.str.9 = [35 x i8] c"Send (string) : %s, Received : %s\0A\00"
@.str.10 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [8 x i8]
%10 = alloca i32*
%11 = alloca i32
%12 = alloca %struct.timeval
%13 = alloca i32
%14 = alloca double
%15 = alloca i64
%16 = alloca i8*
%17 = alloca i32
%18 = alloca double
%19 = alloca i64
%20 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @atoi(i8* %23)
store i32 %24, i32* %8
%25 = bitcast [8 x i8]* %9 to i8*
store i32* null, i32** %10
%26 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 0
store i32 1, i32* %26
%27 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 1
store i32 100, i32* %27
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = load i32, i32* %8
%32 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%33 = call i32* @clnt_create(i8* %30, i32 %31, i32 1, i8* %32)
store i32* %33, i32** %10
%34 = load i32, i32* %6
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %43
36: ; preds = %2
%37 = load i32*, i32** %10
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32* %37)
%39 = load i32, i32* %8
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %41)
br label %43
43: ; preds = %36, %2
%44 = load i32*, i32** %10
%45 = icmp eq i32* %44, null
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = call i32 @clnt_pcreateerror(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
br label %165
49: ; preds = %43
store i32 -65536, i32* %13
%50 = load i32*, i32** %10
%51 = load i64, i64* @xdr_int
%52 = trunc i64 %51 to i32
%53 = bitcast i32* %13 to i8*
%54 = load i64, i64* @xdr_int
%55 = trunc i64 %54 to i32
%56 = bitcast i32* %17 to i8*
%57 = bitcast %struct.timeval* %12 to i64*
%58 = load i64, i64* %57
%59 = call i32 @clnt_call(i32* %50, i32 1000, i32 %52, i8* %53, i32 %55, i8* %56, i64 %58)
store i32 %59, i32* %11
%60 = load i32, i32* %13
%61 = load i32, i32* %17
%62 = icmp ne i32 %60, %61
br i1 %62, label %63, label %64
63: ; preds = %49
store i32 1, i32* %7
br label %64
64: ; preds = %63, %49
%65 = load i32, i32* %6
%66 = icmp eq i32 %65, 1
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = load i32, i32* %13
%69 = load i32, i32* %17
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %68, i32 %69)
br label %71
71: ; preds = %67, %64
store i32 16777216, i32* %13
%72 = load i32*, i32** %10
%73 = load i64, i64* @xdr_int
%74 = trunc i64 %73 to i32
%75 = bitcast i32* %13 to i8*
%76 = load i64, i64* @xdr_int
%77 = trunc i64 %76 to i32
%78 = bitcast i32* %17 to i8*
%79 = bitcast %struct.timeval* %12 to i64*
%80 = load i64, i64* %79
%81 = call i32 @clnt_call(i32* %72, i32 1000, i32 %74, i8* %75, i32 %77, i8* %78, i64 %80)
store i32 %81, i32* %11
%82 = load i32, i32* %13
%83 = load i32, i32* %17
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %71
store i32 1, i32* %7
br label %86
86: ; preds = %85, %71
%87 = load i32, i32* %6
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %93
89: ; preds = %86
%90 = load i32, i32* %13
%91 = load i32, i32* %17
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %90, i32 %91)
br label %93
93: ; preds = %89, %86
store i64 -430000, i64* %15
%94 = load i32*, i32** %10
%95 = load i64, i64* @xdr_long
%96 = trunc i64 %95 to i32
%97 = bitcast i64* %15 to i8*
%98 = load i64, i64* @xdr_long
%99 = trunc i64 %98 to i32
%100 = bitcast i64* %19 to i8*
%101 = bitcast %struct.timeval* %12 to i64*
%102 = load i64, i64* %101
%103 = call i32 @clnt_call(i32* %94, i32 3000, i32 %96, i8* %97, i32 %99, i8* %100, i64 %102)
store i32 %103, i32* %11
%104 = load i64, i64* %15
%105 = load i64, i64* %19
%106 = icmp ne i64 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %93
store i32 1, i32* %7
br label %108
108: ; preds = %107, %93
%109 = load i32, i32* %6
%110 = icmp eq i32 %109, 1
br i1 %110, label %111, label %115
111: ; preds = %108
%112 = load i64, i64* %15
%113 = load i64, i64* %19
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i64 %112, i64 %113)
br label %115
115: ; preds = %111, %108
store double 0xC09B1E8520000000, double* %14
%116 = load i32*, i32** %10
%117 = load i64, i64* @xdr_double
%118 = trunc i64 %117 to i32
%119 = bitcast double* %14 to i8*
%120 = load i64, i64* @xdr_double
%121 = trunc i64 %120 to i32
%122 = bitcast double* %18 to i8*
%123 = bitcast %struct.timeval* %12 to i64*
%124 = load i64, i64* %123
%125 = call i32 @clnt_call(i32* %116, i32 2000, i32 %118, i8* %119, i32 %121, i8* %122, i64 %124)
store i32 %125, i32* %11
%126 = load double, double* %14
%127 = load double, double* %18
%128 = fcmp une double %126, %127
br i1 %128, label %129, label %130
129: ; preds = %115
store i32 1, i32* %7
br label %130
130: ; preds = %129, %115
%131 = load i32, i32* %6
%132 = icmp eq i32 %131, 1
br i1 %132, label %133, label %137
133: ; preds = %130
%134 = load double, double* %14
%135 = load double, double* %18
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), double %134, double %135)
br label %137
137: ; preds = %133, %130
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8** %16
%138 = call i8* @malloc(i32 64)
store i8* %138, i8** %20
%139 = load i32*, i32** %10
%140 = load i64, i64* @xdr_wrapstring
%141 = trunc i64 %140 to i32
%142 = bitcast i8** %16 to i8*
%143 = load i64, i64* @xdr_wrapstring
%144 = trunc i64 %143 to i32
%145 = bitcast i8** %20 to i8*
%146 = bitcast %struct.timeval* %12 to i64*
%147 = load i64, i64* %146
%148 = call i32 @clnt_call(i32* %139, i32 4000, i32 %141, i8* %142, i32 %144, i8* %145, i64 %147)
store i32 %148, i32* %11
%149 = load i8*, i8** %16
%150 = load i8*, i8** %20
%151 = call i64 @strcmp(i8* %149, i8* %150)
%152 = icmp ne i64 %151, 0
br i1 %152, label %153, label %154
153: ; preds = %137
store i32 1, i32* %7
br label %154
154: ; preds = %153, %137
%155 = load i32, i32* %6
%156 = icmp eq i32 %155, 1
br i1 %156, label %157, label %161
157: ; preds = %154
%158 = load i8*, i8** %16
%159 = load i8*, i8** %20
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i8* %158, i8* %159)
br label %161
161: ; preds = %157, %154
%162 = load i32, i32* %7
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %162)
%164 = load i32, i32* %7
store i32 %164, i32* %3
br label %165
165: ; preds = %161, %46
%166 = load i32, i32* %3
ret i32 %166
}

LLVM IR (-O2):
@.str.3 = [4 x i8] c"err\00"
@xdr_int = global i64 0
@xdr_long = global i64 0
@xdr_double = global i64 0
@.str.8 = [14 x i8] c"text to send.\00"
@xdr_wrapstring = global i64 0
@.str.10 = [4 x i8] c"%d\0A\00"
@str = [2 x i8] c"1\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i64
%4 = alloca i32
%5 = alloca double
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32
%9 = alloca double
%10 = alloca i64
%11 = alloca i8*
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call i32 @atoi(i8* %13)
%15 = bitcast i64* %3 to i8*
store i64 7365749, i64* %3
%16 = bitcast i32* %4 to i8*
%17 = bitcast double* %5 to i8*
%18 = bitcast i64* %6 to i8*
%19 = bitcast i8** %7 to i8*
%20 = bitcast i32* %8 to i8*
%21 = bitcast double* %9 to i8*
%22 = bitcast i64* %10 to i8*
%23 = bitcast i8** %11 to i8*
%24 = getelementptr inbounds i8*, i8** %1, i64 1
%25 = load i8*, i8** %24
%26 = call i32* @clnt_create(i8* %25, i32 %14, i32 1, i8* %15)
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = call i32 @clnt_pcreateerror(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %70
31: ; preds = %2
store i32 -65536, i32* %4
%32 = load i64, i64* @xdr_int
%33 = trunc i64 %32 to i32
%34 = call i32 @clnt_call(i32* %26, i32 1000, i32 %33, i8* %16, i32 %33, i8* %20, i64 429496729601)
%35 = load i32, i32* %4
%36 = load i32, i32* %8
%37 = icmp ne i32 %35, %36
store i32 16777216, i32* %4
%38 = load i64, i64* @xdr_int
%39 = trunc i64 %38 to i32
%40 = call i32 @clnt_call(i32* %26, i32 1000, i32 %39, i8* %16, i32 %39, i8* %20, i64 429496729601)
%41 = load i32, i32* %4
%42 = load i32, i32* %8
%43 = icmp ne i32 %41, %42
store i64 -430000, i64* %6
%44 = load i64, i64* @xdr_long
%45 = trunc i64 %44 to i32
%46 = call i32 @clnt_call(i32* %26, i32 3000, i32 %45, i8* %18, i32 %45, i8* %22, i64 429496729601)
%47 = load i64, i64* %6
%48 = load i64, i64* %10
%49 = icmp ne i64 %47, %48
store double 0xC09B1E8520000000, double* %5
%50 = load i64, i64* @xdr_double
%51 = trunc i64 %50 to i32
%52 = call i32 @clnt_call(i32* %26, i32 2000, i32 %51, i8* %17, i32 %51, i8* %21, i64 429496729601)
%53 = load double, double* %5
%54 = load double, double* %9
%55 = fcmp une double %53, %54
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8** %7
%56 = call dereferenceable_or_null(64) i8* @malloc(i32 64)
store i8* %56, i8** %11
%57 = load i64, i64* @xdr_wrapstring
%58 = trunc i64 %57 to i32
%59 = call i32 @clnt_call(i32* %26, i32 4000, i32 %58, i8* %19, i32 %58, i8* %23, i64 429496729601)
%60 = load i8*, i8** %7
%61 = load i8*, i8** %11
%62 = call i64 @strcmp(i8* %60, i8* %61)
%63 = icmp ne i64 %62, 0
%64 = select i1 %63, i1 true, i1 %55
%65 = select i1 %64, i1 true, i1 %49
%66 = select i1 %65, i1 true, i1 %43
%67 = select i1 %66, i1 true, i1 %37
%68 = zext i1 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %31, %28
%71 = phi i32 [ 1, %28 ], [ %68, %31 ]
ret i32 %71
}