#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 web_module_companion(void) {
  printf("Welcome to the Team Eureka Companion");
  printf("</body> \n");
  printf("<script src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script> "
         "\n");
  printf("<script "
         "src=\"https://www.gstatic.com/cast/js/receiver/1.0/"
         "cast_receiver.js\"></script> \n");
  printf("<script src=\"messageTypes.js\"></script> \n");
  printf("<script> \n");
  printf("    $(function() { \n");
  printf("        var receiver = new "
         "cast.receiver.Receiver('TeamEurekaCompanion', "
         "['TeamEurekaCompanion']), \n");
  printf("            channelHandler = new "
         "cast.receiver.ChannelHandler('TeamEurekaCompanion'), \n");
  printf("            $messages = $('.messages'); \n");
  printf(" \n");
  printf("        channelHandler.addChannelFactory( \n");
  printf(
      "            receiver.createChannelFactory('TeamEurekaCompanion')); \n");
  printf(" \n");
  printf("        receiver.start(); \n");
  printf(" \n");
  printf("        "
         "channelHandler.addEventListener(cast.receiver.Channel.EventType."
         "MESSAGE, onMessage.bind(this)); \n");
  printf(" \n");
  printf("        function onMessage(event) { \n");
  printf("            $messages.html(event.message.type); \n");
  printf("        } \n");
  printf("    }); \n");
  printf("</script> \n");
}


x86 assembly (clang, -O0):
<web_module_companion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
lea    0x108f(%rip),%rdi
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x103b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1117(%rip),%rdi
call   1030 <printf@plt>
lea    0x113d(%rip),%rdi
call   1030 <printf@plt>
lea    0x113d(%rip),%rdi
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<web_module_companion>:
push   %rbx
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf94(%rip),%rdi
call   1030 <puts@plt>
lea    0xfec(%rip),%rdi
call   1030 <puts@plt>
lea    0x1037(%rip),%rdi
call   1030 <puts@plt>
lea    0x107d(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0x1064(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1094(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x109b(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x10f0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1109(%rip),%rdi
call   1030 <puts@plt>
lea    0x112e(%rip),%rdi
call   1030 <puts@plt>
lea    0x112d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe40(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"Welcome to the Team Eureka Companion\00"
@.str.1 = [10 x i8] c"</body> \0A\00"
@.str.2 = [69 x i8] c"<script src=\22http://code.jquery.com/jquery-2.0.3.min.js\22></script> \0A\00"
@.str.3 = [88 x i8] c"<script src=\22https://www.gstatic.com/cast/js/receiver/1.0/cast_receiver.js\22></script> \0A\00"
@.str.4 = [42 x i8] c"<script src=\22messageTypes.js\22></script> \0A\00"
@.str.5 = [11 x i8] c"<script> \0A\00"
@.str.6 = [21 x i8] c" $(function() { \0A\00"
@.str.7 = [101 x i8] c" var receiver = new cast.receiver.Receiver('TeamEurekaCompanion', ['TeamEurekaCompanion']), \0A\00"
@.str.8 = [88 x i8] c" channelHandler = new cast.receiver.ChannelHandler('TeamEurekaCompanion'), \0A\00"
@.str.9 = [42 x i8] c" $messages = $('.messages'); \0A\00"
@.str.10 = [3 x i8] c" \0A\00"
@.str.11 = [44 x i8] c" channelHandler.addChannelFactory( \0A\00"
@.str.12 = [69 x i8] c" receiver.createChannelFactory('TeamEurekaCompanion')); \0A\00"
@.str.13 = [28 x i8] c" receiver.start(); \0A\00"
@.str.14 = [106 x i8] c" channelHandler.addEventListener(cast.receiver.Channel.EventType.MESSAGE, onMessage.bind(this)); \0A\00"
@.str.15 = [38 x i8] c" function onMessage(event) { \0A\00"
@.str.16 = [50 x i8] c" $messages.html(event.message.type); \0A\00"
@.str.17 = [12 x i8] c" } \0A\00"
@.str.18 = [10 x i8] c" }); \0A\00"
@.str.19 = [12 x i8] c"</script> \0A\00"
define i32 @web_module_companion() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0))
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
@.str = [37 x i8] c"Welcome to the Team Eureka Companion\00"
@str = [9 x i8] c"</body> \00"
@str.20 = [68 x i8] c"<script src=\22http://code.jquery.com/jquery-2.0.3.min.js\22></script> \00"
@str.21 = [87 x i8] c"<script src=\22https://www.gstatic.com/cast/js/receiver/1.0/cast_receiver.js\22></script> \00"
@str.22 = [41 x i8] c"<script src=\22messageTypes.js\22></script> \00"
@str.23 = [10 x i8] c"<script> \00"
@str.24 = [20 x i8] c" $(function() { \00"
@str.25 = [100 x i8] c" var receiver = new cast.receiver.Receiver('TeamEurekaCompanion', ['TeamEurekaCompanion']), \00"
@str.26 = [87 x i8] c" channelHandler = new cast.receiver.ChannelHandler('TeamEurekaCompanion'), \00"
@str.27 = [41 x i8] c" $messages = $('.messages'); \00"
@str.29 = [43 x i8] c" channelHandler.addChannelFactory( \00"
@str.30 = [68 x i8] c" receiver.createChannelFactory('TeamEurekaCompanion')); \00"
@str.32 = [27 x i8] c" receiver.start(); \00"
@str.34 = [105 x i8] c" channelHandler.addEventListener(cast.receiver.Channel.EventType.MESSAGE, onMessage.bind(this)); \00"
@str.35 = [2 x i8] c" \00"
@str.36 = [37 x i8] c" function onMessage(event) { \00"
@str.37 = [49 x i8] c" $messages.html(event.message.type); \00"
@str.38 = [11 x i8] c" } \00"
@str.39 = [9 x i8] c" }); \00"
@str.40 = [11 x i8] c"</script> \00"
define i32 @web_module_companion() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.20, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.23, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.24, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str.25, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.26, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.27, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.35, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.30, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.35, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.32, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.34, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.35, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.36, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.37, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.38, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.39, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.40, i64 0, i64 0))
ret i32 undef
}