#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ h_puts(char const *);
int /*<<< orphan*/ stdout;
void h_button_submit(const char *name, const char *value, const char *title) {
  fputs("<input type=\"submit\" name=\"", stdout);
  h_puts(name);
  fputs("\" value=\"", stdout);
  h_puts(title);
  fputs("\">\n", stdout);
}


x86 assembly (clang, -O0):
<h_button_submit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%esi
lea    0xebc(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x8(%rbp),%rdi
call   1030 <h_puts@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
lea    0xeba(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x18(%rbp),%rdi
call   1030 <h_puts@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%esi
lea    0xea6(%rip),%rdi
call   1040 <fputs@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<h_button_submit>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rdi,%rbx
mov    0x2eae(%rip),%r15
mov    (%r15),%esi
lea    0xec4(%rip),%rdi
call   1040 <fputs@plt>
mov    %rbx,%rdi
call   1030 <h_puts@plt>
mov    (%r15),%esi
lea    0xec9(%rip),%rdi
call   1040 <fputs@plt>
mov    %r14,%rdi
call   1030 <h_puts@plt>
mov    (%r15),%esi
lea    0xebc(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fputs@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"<input type=\22submit\22 name=\22\00"
@stdout = global i32 0
@.str.1 = [10 x i8] c"\22 value=\22\00"
@.str.2 = [4 x i8] c"\22>\0A\00"
define void @h_button_submit(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i32, i32* @stdout
%8 = call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i8*, i8** %4
%10 = call i32 @h_puts(i8* %9)
%11 = load i32, i32* @stdout
%12 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i8*, i8** %6
%14 = call i32 @h_puts(i8* %13)
%15 = load i32, i32* @stdout
%16 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %15)
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"<input type=\22submit\22 name=\22\00"
@stdout = global i32 0
@.str.1 = [10 x i8] c"\22 value=\22\00"
@.str.2 = [4 x i8] c"\22>\0A\00"
define void @h_button_submit(i8* %0, i8* nocapture readnone %1, i8* %2) {
%4 = load i32, i32* @stdout
%5 = tail call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @h_puts(i8* %0)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = tail call i32 @h_puts(i8* %2)
%10 = load i32, i32* @stdout
%11 = tail call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %10)
ret void
}