#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*/ printf(char *);
int main(int argc, char *argv[]) {
  int status;
  status = 0;
  printf("Content-type: text/html\n\n");
  printf("<HTML><TITLE>OSDP Protocol Decoder</TITLE><BODY>\n");
  printf("OSDP Protocol Decoder<BR>\n");
  printf("<FORM ACTION=\"/cgi-bin/osdp-packet-decode\" METHOD=GET>\n");
  printf("<INPUT TYPE=TEXT NAME=\"pdu\" size=64 maxlength=4000>\n");
  printf("<INPUT TYPE=SUBMIT VALUE=\"Decode\"></FORM>\n");
  printf("</BODY></HTML>\n");
  return (status);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Content-type: text/html\0A\0A\00"
@.str.1 = [50 x i8] c"<HTML><TITLE>OSDP Protocol Decoder</TITLE><BODY>\0A\00"
@.str.2 = [27 x i8] c"OSDP Protocol Decoder<BR>\0A\00"
@.str.3 = [56 x i8] c"<FORM ACTION=\22/cgi-bin/osdp-packet-decode\22 METHOD=GET>\0A\00"
@.str.4 = [53 x i8] c"<INPUT TYPE=TEXT NAME=\22pdu\22 size=64 maxlength=4000>\0A\00"
@.str.5 = [43 x i8] c"<INPUT TYPE=SUBMIT VALUE=\22Decode\22></FORM>\0A\00"
@.str.6 = [16 x i8] c"</BODY></HTML>\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%14 = load i32, i32* %6
ret i32 %14
}

LLVM IR (-O2):
@str = [25 x i8] c"Content-type: text/html\0A\00"
@str.7 = [49 x i8] c"<HTML><TITLE>OSDP Protocol Decoder</TITLE><BODY>\00"
@str.8 = [26 x i8] c"OSDP Protocol Decoder<BR>\00"
@str.9 = [55 x i8] c"<FORM ACTION=\22/cgi-bin/osdp-packet-decode\22 METHOD=GET>\00"
@str.10 = [52 x i8] c"<INPUT TYPE=TEXT NAME=\22pdu\22 size=64 maxlength=4000>\00"
@str.11 = [42 x i8] c"<INPUT TYPE=SUBMIT VALUE=\22Decode\22></FORM>\00"
@str.12 = [15 x i8] c"</BODY></HTML>\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.7, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.10, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.11, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.12, i64 0, i64 0))
ret i32 0
}