#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 evbuffer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ evbuffer_add_printf(struct evbuffer *, char *, char *);
void list_support_request(void *arg) {
  struct evbuffer *evb = (struct evbuffer *)arg;
  evbuffer_add_printf(evb, "%s", "<ul><h3>list support request:</h3>");
  evbuffer_add_printf(evb, "%s", "<li><a href=\"/request\">request</a></li>");
  evbuffer_add_printf(evb, "%s", "<li><a href=\"/html\">baidu</a></li>");
  evbuffer_add_printf(evb, "%s", "</ul>");
}


x86 assembly (clang, -O0):
<list_support_request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed1(%rip),%rsi
lea    0xecd(%rip),%rdx
call   1030 <evbuffer_add_printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xeba(%rip),%rsi
lea    0xed9(%rip),%rdx
call   1030 <evbuffer_add_printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xea3(%rip),%rsi
lea    0xeea(%rip),%rdx
call   1030 <evbuffer_add_printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe8c(%rip),%rsi
lea    0xef6(%rip),%rdx
call   1030 <evbuffer_add_printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<list_support_request>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%r14
lea    0xede(%rip),%rdx
mov    %r14,%rsi
call   1030 <evbuffer_add_printf@plt>
lea    0xef2(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <evbuffer_add_printf@plt>
lea    0xf08(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <evbuffer_add_printf@plt>
lea    0xf19(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <evbuffer_add_printf@plt>

LLVM IR (-O0):
%struct.evbuffer = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [35 x i8] c"<ul><h3>list support request:</h3>\00"
@.str.2 = [40 x i8] c"<li><a href=\22/request\22>request</a></li>\00"
@.str.3 = [35 x i8] c"<li><a href=\22/html\22>baidu</a></li>\00"
@.str.4 = [6 x i8] c"</ul>\00"
define void @list_support_request(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.evbuffer*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to %struct.evbuffer*
store %struct.evbuffer* %5, %struct.evbuffer** %3
%6 = load %struct.evbuffer*, %struct.evbuffer** %3
%7 = call i32 @evbuffer_add_printf(%struct.evbuffer* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%8 = load %struct.evbuffer*, %struct.evbuffer** %3
%9 = call i32 @evbuffer_add_printf(%struct.evbuffer* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%10 = load %struct.evbuffer*, %struct.evbuffer** %3
%11 = call i32 @evbuffer_add_printf(%struct.evbuffer* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%12 = load %struct.evbuffer*, %struct.evbuffer** %3
%13 = call i32 @evbuffer_add_printf(%struct.evbuffer* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.evbuffer = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [35 x i8] c"<ul><h3>list support request:</h3>\00"
@.str.2 = [40 x i8] c"<li><a href=\22/request\22>request</a></li>\00"
@.str.3 = [35 x i8] c"<li><a href=\22/html\22>baidu</a></li>\00"
@.str.4 = [6 x i8] c"</ul>\00"
define void @list_support_request(i8* %0) {
%2 = bitcast i8* %0 to %struct.evbuffer*
%3 = tail call i32 @evbuffer_add_printf(%struct.evbuffer* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @evbuffer_add_printf(%struct.evbuffer* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @evbuffer_add_printf(%struct.evbuffer* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @evbuffer_add_printf(%struct.evbuffer* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
ret void
}