#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() {
  unsigned short _us(void);
  short _ss(void);
  unsigned char _uc(void);
  signed char _sc(void);
  unsigned short (*fpus)(void) = _us;
  short (*fpss)(void) = _ss;
  unsigned char (*fpuc)(void) = _uc;
  signed char (*fpsc)(void) = _sc;
  printf("%08X %08X\n", _us() + 1, fpus() + 1);
  printf("%08X %08X\n", _ss() + 1, fpss() + 1);
  printf("%08X %08X\n", _uc() + 1, fpuc() + 1);
  printf("%08X %08X\n", _sc() + 1, fpsc() + 1);
  printf("\n");
  printf("%08X %08X\n", fpus() + 1, _us() + 1);
  printf("%08X %08X\n", fpss() + 1, _ss() + 1);
  printf("%08X %08X\n", fpuc() + 1, _uc() + 1);
  printf("%08X %08X\n", fpsc() + 1, _sc() + 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2e6f(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e7c(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e91(%rip),%rax
mov    %rax,-0x28(%rbp)
call   1050 <_us@plt>
movzwl %ax,%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
call   *-0x10(%rbp)
mov    -0x48(%rbp),%esi
movzwl %ax,%edx
add    $0x1,%edx
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   1040 <_ss@plt>
cwtl
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
call   *-0x18(%rbp)
mov    -0x44(%rbp),%esi
movswl %ax,%edx
add    $0x1,%edx
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   1048 <_uc@plt>
movzbl %al,%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
call   *-0x20(%rbp)
mov    -0x40(%rbp),%esi
movzbl %al,%edx
add    $0x1,%edx
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   1060 <_sc@plt>
movsbl %al,%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
call   *-0x28(%rbp)
mov    -0x3c(%rbp),%esi
movsbl %al,%edx
add    $0x1,%edx
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   *-0x10(%rbp)
movzwl %ax,%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
call   1050 <_us@plt>
mov    -0x38(%rbp),%esi
movzwl %ax,%edx
add    $0x1,%edx
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   *-0x18(%rbp)
cwtl
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
call   1040 <_ss@plt>
mov    -0x34(%rbp),%esi
movswl %ax,%edx
add    $0x1,%edx
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   *-0x20(%rbp)
movzbl %al,%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
call   1048 <_uc@plt>
mov    -0x30(%rbp),%esi
movzbl %al,%edx
add    $0x1,%edx
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
call   *-0x28(%rbp)
movsbl %al,%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
call   1060 <_sc@plt>
mov    -0x2c(%rbp),%esi
movsbl %al,%edx
add    $0x1,%edx
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
call   1070 <_us@plt>
movzwl %ax,%ebp
add    $0x1,%ebp
call   1070 <_us@plt>
movzwl %ax,%edx
add    $0x1,%edx
lea    0xe80(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1030 <_ss@plt>
movswl %ax,%ebp
add    $0x1,%ebp
call   1030 <_ss@plt>
movswl %ax,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1060 <_uc@plt>
movzbl %al,%ebp
add    $0x1,%ebp
call   1060 <_uc@plt>
movzbl %al,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1080 <_sc@plt>
movsbl %al,%ebp
add    $0x1,%ebp
call   1080 <_sc@plt>
movsbl %al,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
call   1070 <_us@plt>
movzwl %ax,%ebp
add    $0x1,%ebp
call   1070 <_us@plt>
movzwl %ax,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1030 <_ss@plt>
movswl %ax,%ebp
add    $0x1,%ebp
call   1030 <_ss@plt>
movswl %ax,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1060 <_uc@plt>
movzbl %al,%ebp
add    $0x1,%ebp
call   1060 <_uc@plt>
movzbl %al,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
call   1080 <_sc@plt>
movsbl %al,%ebp
add    $0x1,%ebp
call   1080 <_sc@plt>
movsbl %al,%edx
add    $0x1,%edx
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%08X %08X\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i16 ()*
%3 = alloca i16 ()*
%4 = alloca i8 ()*
%5 = alloca i8 ()*
store i32 0, i32* %1
store i16 ()* @_us, i16 ()** %2
store i16 ()* @_ss, i16 ()** %3
store i8 ()* @_uc, i8 ()** %4
store i8 ()* @_sc, i8 ()** %5
%6 = call zeroext i16 @_us()
%7 = zext i16 %6 to i32
%8 = add nsw i32 %7, 1
%9 = load i16 ()*, i16 ()** %2
%10 = call zeroext i16 %9()
%11 = zext i16 %10 to i32
%12 = add nsw i32 %11, 1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %12)
%14 = call signext i16 @_ss()
%15 = sext i16 %14 to i32
%16 = add nsw i32 %15, 1
%17 = load i16 ()*, i16 ()** %3
%18 = call signext i16 %17()
%19 = sext i16 %18 to i32
%20 = add nsw i32 %19, 1
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %20)
%22 = call zeroext i8 @_uc()
%23 = zext i8 %22 to i32
%24 = add nsw i32 %23, 1
%25 = load i8 ()*, i8 ()** %4
%26 = call zeroext i8 %25()
%27 = zext i8 %26 to i32
%28 = add nsw i32 %27, 1
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %28)
%30 = call signext i8 @_sc()
%31 = sext i8 %30 to i32
%32 = add nsw i32 %31, 1
%33 = load i8 ()*, i8 ()** %5
%34 = call signext i8 %33()
%35 = sext i8 %34 to i32
%36 = add nsw i32 %35, 1
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = load i16 ()*, i16 ()** %2
%40 = call zeroext i16 %39()
%41 = zext i16 %40 to i32
%42 = add nsw i32 %41, 1
%43 = call zeroext i16 @_us()
%44 = zext i16 %43 to i32
%45 = add nsw i32 %44, 1
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %42, i32 %45)
%47 = load i16 ()*, i16 ()** %3
%48 = call signext i16 %47()
%49 = sext i16 %48 to i32
%50 = add nsw i32 %49, 1
%51 = call signext i16 @_ss()
%52 = sext i16 %51 to i32
%53 = add nsw i32 %52, 1
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %50, i32 %53)
%55 = load i8 ()*, i8 ()** %4
%56 = call zeroext i8 %55()
%57 = zext i8 %56 to i32
%58 = add nsw i32 %57, 1
%59 = call zeroext i8 @_uc()
%60 = zext i8 %59 to i32
%61 = add nsw i32 %60, 1
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %58, i32 %61)
%63 = load i8 ()*, i8 ()** %5
%64 = call signext i8 %63()
%65 = sext i8 %64 to i32
%66 = add nsw i32 %65, 1
%67 = call signext i8 @_sc()
%68 = sext i8 %67 to i32
%69 = add nsw i32 %68, 1
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %66, i32 %69)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%08X %08X\0A\00"
define i32 @main() {
%1 = tail call zeroext i16 @_us()
%2 = zext i16 %1 to i32
%3 = add nuw nsw i32 %2, 1
%4 = tail call zeroext i16 @_us()
%5 = zext i16 %4 to i32
%6 = add nuw nsw i32 %5, 1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %6)
%8 = tail call signext i16 @_ss()
%9 = sext i16 %8 to i32
%10 = add nsw i32 %9, 1
%11 = tail call signext i16 @_ss()
%12 = sext i16 %11 to i32
%13 = add nsw i32 %12, 1
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %13)
%15 = tail call zeroext i8 @_uc()
%16 = zext i8 %15 to i32
%17 = add nuw nsw i32 %16, 1
%18 = tail call zeroext i8 @_uc()
%19 = zext i8 %18 to i32
%20 = add nuw nsw i32 %19, 1
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %20)
%22 = tail call signext i8 @_sc()
%23 = sext i8 %22 to i32
%24 = add nsw i32 %23, 1
%25 = tail call signext i8 @_sc()
%26 = sext i8 %25 to i32
%27 = add nsw i32 %26, 1
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %27)
%29 = tail call i32 @putchar(i32 10)
%30 = tail call zeroext i16 @_us()
%31 = zext i16 %30 to i32
%32 = add nuw nsw i32 %31, 1
%33 = tail call zeroext i16 @_us()
%34 = zext i16 %33 to i32
%35 = add nuw nsw i32 %34, 1
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %35)
%37 = tail call signext i16 @_ss()
%38 = sext i16 %37 to i32
%39 = add nsw i32 %38, 1
%40 = tail call signext i16 @_ss()
%41 = sext i16 %40 to i32
%42 = add nsw i32 %41, 1
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %39, i32 %42)
%44 = tail call zeroext i8 @_uc()
%45 = zext i8 %44 to i32
%46 = add nuw nsw i32 %45, 1
%47 = tail call zeroext i8 @_uc()
%48 = zext i8 %47 to i32
%49 = add nuw nsw i32 %48, 1
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %46, i32 %49)
%51 = tail call signext i8 @_sc()
%52 = sext i8 %51 to i32
%53 = add nsw i32 %52, 1
%54 = tail call signext i8 @_sc()
%55 = sext i8 %54 to i32
%56 = add nsw i32 %55, 1
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %53, i32 %56)
ret i32 0
}