#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 EXIT_SUCCESS;
int /*<<< orphan*/ smtp_send(char *, int, char *, char *, char *, char *,
                             char const **, int);
int main(int argc, char **argv) {
  const char *to[] = {"yanjiujun@gmail.com", "254659936@qq.com"};
  int to_len = 1;
  smtp_send("smtp.163.com", 25, "username@163.com", "password", "mysubject",
            "mycontent", to, to_len);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2cd3(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cd0(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x1,-0x24(%rbp)
lea    -0x20(%rbp),%r10
mov    -0x24(%rbp),%eax
lea    0xed4(%rip),%rdi
mov    $0x19,%esi
lea    0xed5(%rip),%rdx
lea    0xedf(%rip),%rcx
lea    0xee1(%rip),%r8
lea    0xee4(%rip),%r9
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <smtp_send@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movaps 0x2ce5(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rax
lea    0xefc(%rip),%rdi
lea    0xf02(%rip),%rdx
lea    0xf0c(%rip),%rcx
lea    0xf0e(%rip),%r8
lea    0xf11(%rip),%r9
mov    $0x19,%esi
push   $0x1
push   %rax
call   1030 <smtp_send@plt>
add    $0x10,%rsp
mov    0x2e7b(%rip),%rax
mov    (%rax),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"yanjiujun@gmail.com\00"
@.str.1 = [17 x i8] c"254659936@qq.com\00"
@__const.main.to = [2 x i8*] [i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i32 0, i32 0)]
@.str.2 = [13 x i8] c"smtp.163.com\00"
@.str.3 = [17 x i8] c"username@163.com\00"
@.str.4 = [9 x i8] c"password\00"
@.str.5 = [10 x i8] c"mysubject\00"
@.str.6 = [10 x i8] c"mycontent\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i8*]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast [2 x i8*]* %6 to i8*
store i32 1, i32* %7
%9 = getelementptr inbounds [2 x i8*], [2 x i8*]* %6, i64 0, i64 0
%10 = load i32, i32* %7
%11 = call i32 @smtp_send(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %9, i32 %10)
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}

LLVM IR (-O2):
@.str = [20 x i8] c"yanjiujun@gmail.com\00"
@.str.1 = [17 x i8] c"254659936@qq.com\00"
@__const.main.to = [2 x i8*] [i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i32 0, i32 0)]
@.str.2 = [13 x i8] c"smtp.163.com\00"
@.str.3 = [17 x i8] c"username@163.com\00"
@.str.4 = [9 x i8] c"password\00"
@.str.5 = [10 x i8] c"mysubject\00"
@.str.6 = [10 x i8] c"mycontent\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i8*]
%4 = bitcast [2 x i8*]* %3 to i8*
%5 = getelementptr inbounds [2 x i8*], [2 x i8*]* %3, i64 0, i64 0
%6 = call i32 @smtp_send(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %5, i32 1)
%7 = load i32, i32* @EXIT_SUCCESS
ret i32 %7
}