#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 *);
void print_menu(void) {
  printf("========= S3C6400/6410 Demo Application ==========\n");
  printf("=                                                =\n");
  printf("=  1.   H.264 display                            =\n");
  printf("=  2.   MPEG4 display                            =\n");
  printf("=  3.   H.263 display                            =\n");
  printf("=  4.   VC-1  display                            =\n");
  printf("=  5.   4-windows display                        =\n");
  printf("=  6.   Display using local path                 =\n");
  printf("=  7.   Display using double buffering           =\n");
  printf("=  8.   Camera preview & MFC encoding            =\n");
  printf("=  9.   MFC decoding & Camera preview            =\n");
  printf("=  10.  Camera preview & MFC encoding/decoding   =\n");
  printf("=  11.  Camera input and JPEG encoding           =\n");
  printf("=  12.  JPEG decoding and display                =\n");
  printf("=  13.  Exit                                     =\n");
  printf("=                                                =\n");
  printf("==================================================\n");
  printf("Select number --> ");
}


x86 assembly (clang, -O0):
<print_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1075(%rip),%rdi
call   1030 <printf@plt>
lea    0x109d(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ed(%rip),%rdi
call   1030 <printf@plt>
lea    0x1115(%rip),%rdi
call   1030 <printf@plt>
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
lea    0x1131(%rip),%rdi
call   1030 <printf@plt>
lea    0x1159(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_menu>:
push   %rbx
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
lea    0x1014(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1062(%rip),%rdi
call   1030 <puts@plt>
lea    0x1089(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d7(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1129(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0d(%rip),%rdi
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"========= S3C6400/6410 Demo Application ==========\0A\00"
@.str.1 = [52 x i8] c"= =\0A\00"
@.str.2 = [52 x i8] c"= 1. H.264 display =\0A\00"
@.str.3 = [52 x i8] c"= 2. MPEG4 display =\0A\00"
@.str.4 = [52 x i8] c"= 3. H.263 display =\0A\00"
@.str.5 = [52 x i8] c"= 4. VC-1 display =\0A\00"
@.str.6 = [52 x i8] c"= 5. 4-windows display =\0A\00"
@.str.7 = [52 x i8] c"= 6. Display using local path =\0A\00"
@.str.8 = [52 x i8] c"= 7. Display using double buffering =\0A\00"
@.str.9 = [52 x i8] c"= 8. Camera preview & MFC encoding =\0A\00"
@.str.10 = [52 x i8] c"= 9. MFC decoding & Camera preview =\0A\00"
@.str.11 = [52 x i8] c"= 10. Camera preview & MFC encoding/decoding =\0A\00"
@.str.12 = [52 x i8] c"= 11. Camera input and JPEG encoding =\0A\00"
@.str.13 = [52 x i8] c"= 12. JPEG decoding and display =\0A\00"
@.str.14 = [52 x i8] c"= 13. Exit =\0A\00"
@.str.15 = [52 x i8] c"==================================================\0A\00"
@.str.16 = [19 x i8] c"Select number --> \00"
define void @print_menu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.16 = [19 x i8] c"Select number --> \00"
@str = [51 x i8] c"========= S3C6400/6410 Demo Application ==========\00"
@str.18 = [51 x i8] c"= 1. H.264 display =\00"
@str.19 = [51 x i8] c"= 2. MPEG4 display =\00"
@str.20 = [51 x i8] c"= 3. H.263 display =\00"
@str.21 = [51 x i8] c"= 4. VC-1 display =\00"
@str.22 = [51 x i8] c"= 5. 4-windows display =\00"
@str.23 = [51 x i8] c"= 6. Display using local path =\00"
@str.24 = [51 x i8] c"= 7. Display using double buffering =\00"
@str.25 = [51 x i8] c"= 8. Camera preview & MFC encoding =\00"
@str.26 = [51 x i8] c"= 9. MFC decoding & Camera preview =\00"
@str.27 = [51 x i8] c"= 10. Camera preview & MFC encoding/decoding =\00"
@str.28 = [51 x i8] c"= 11. Camera input and JPEG encoding =\00"
@str.29 = [51 x i8] c"= 12. JPEG decoding and display =\00"
@str.30 = [51 x i8] c"= 13. Exit =\00"
@str.31 = [51 x i8] c"= =\00"
@str.32 = [51 x i8] c"==================================================\00"
define void @print_menu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.31, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
ret void
}