#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*/ h1(char *);
int /*<<< orphan*/ html_begin(char *);
int /*<<< orphan*/ html_end();
int /*<<< orphan*/ printf(char *, ...);
void NullForm() {
  html_begin("Null Form Submitted");
  h1("Null Form Submitted");
  printf("You have sent an empty form.  Please go back and fill out\r\n");
  printf("the form properly, or email <i>%s</i>\r\n", "web@somewhere.edu");
  printf("if you are having difficulty.\r\n");
  html_end();
}


x86 assembly (clang, -O0):
<NullForm>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1050 <html_begin@plt>
lea    0xea9(%rip),%rdi
call   1060 <h1@plt>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
lea    0xf00(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <html_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<NullForm>:
push   %rbx
lea    0xea8(%rip),%rbx
mov    %rbx,%rdi
call   1060 <html_begin@plt>
mov    %rbx,%rdi
call   1070 <h1@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe99(%rip),%rdi
lea    0xeba(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <html_end@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"Null Form Submitted\00"
@.str.1 = [60 x i8] c"You have sent an empty form. Please go back and fill out\0D\0A\00"
@.str.2 = [40 x i8] c"the form properly, or email <i>%s</i>\0D\0A\00"
@.str.3 = [18 x i8] c"web@somewhere.edu\00"
@.str.4 = [32 x i8] c"if you are having difficulty.\0D\0A\00"
define void @NullForm() {
%1 = call i32 @html_begin(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @h1(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (...) @html_end()
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Null Form Submitted\00"
@.str.2 = [40 x i8] c"the form properly, or email <i>%s</i>\0D\0A\00"
@.str.3 = [18 x i8] c"web@somewhere.edu\00"
@str = [59 x i8] c"You have sent an empty form. Please go back and fill out\0D\00"
@str.5 = [31 x i8] c"if you are having difficulty.\0D\00"
define void @NullForm() {
%1 = tail call i32 @html_begin(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @h1(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.5, i64 0, i64 0))
%6 = tail call i32 (...) @html_end()
ret void
}