#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 *, ...);
extern short Bar13(short s1, short s2, unsigned short us1, long l1, long l2,
                   unsigned long ul1, short s3, short s4, unsigned short us2,
                   long l3, long l4, unsigned long ul2) {
  printf(" Hello from Bar13: \n");
  printf(" s1 = %d, s2 = %d, us1 = %d\n ", s1, s2, us1);
  printf(" s3 = %d, s4 = %d, us2 = %d\n ", s3, s4, us2);
  printf(" l1 = %ld, l2 = %ld, ul1 = %ld\n ", l1, l2, ul1);
  printf(" l3 = %ld, l4 = %ld, ul2 = %ld\n ", l3, l4, ul2);
  return 1;
}


x86 assembly (clang, -O0):
<Bar13>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dx,%ax
mov    %si,%dx
mov    %di,%si
mov    0x38(%rbp),%rdi
mov    0x30(%rbp),%rdi
mov    0x28(%rbp),%rdi
mov    0x20(%rbp),%di
mov    0x18(%rbp),%di
mov    0x10(%rbp),%di
mov    %si,-0x2(%rbp)
mov    %dx,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    %rcx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movswl -0x2(%rbp),%esi
movswl -0x4(%rbp),%edx
movzwl -0x6(%rbp),%ecx
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movswl 0x10(%rbp),%esi
movswl 0x18(%rbp),%edx
movzwl 0x20(%rbp),%ecx
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x28(%rbp),%rsi
mov    0x30(%rbp),%rdx
mov    0x38(%rbp),%rcx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%ax
cwtl
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bar13>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,(%rsp)
mov    %edx,%r14d
mov    %esi,%r15d
mov    %edi,%r12d
movswl 0x50(%rsp),%r13d
movswl 0x58(%rsp),%ebx
movzwl 0x60(%rsp),%ebp
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9f(%rip),%rdi
mov    %r13d,%esi
mov    %ebx,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
mov    (%rsp),%rsi
mov    0x8(%rsp),%rdx
mov    0x10(%rsp),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xead(%rip),%rdi
mov    0x68(%rsp),%rsi
mov    0x70(%rsp),%rdx
mov    0x78(%rsp),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%ax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c" Hello from Bar13: \0A\00"
@.str.1 = [30 x i8] c" s1 = %d, s2 = %d, us1 = %d\0A \00"
@.str.2 = [30 x i8] c" s3 = %d, s4 = %d, us2 = %d\0A \00"
@.str.3 = [33 x i8] c" l1 = %ld, l2 = %ld, ul1 = %ld\0A \00"
@.str.4 = [33 x i8] c" l3 = %ld, l4 = %ld, ul2 = %ld\0A \00"
define signext i16 @Bar13(i16 signext %0, i16 signext %1, i16 zeroext %2, i64 %3, i64 %4, i64 %5, i16 signext %6, i16 signext %7, i16 zeroext %8, i64 %9, i64 %10, i64 %11) {
%13 = alloca i16
%14 = alloca i16
%15 = alloca i16
%16 = alloca i64
%17 = alloca i64
%18 = alloca i64
%19 = alloca i16
%20 = alloca i16
%21 = alloca i16
%22 = alloca i64
%23 = alloca i64
%24 = alloca i64
store i16 %0, i16* %13
store i16 %1, i16* %14
store i16 %2, i16* %15
store i64 %3, i64* %16
store i64 %4, i64* %17
store i64 %5, i64* %18
store i16 %6, i16* %19
store i16 %7, i16* %20
store i16 %8, i16* %21
store i64 %9, i64* %22
store i64 %10, i64* %23
store i64 %11, i64* %24
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%26 = load i16, i16* %13
%27 = sext i16 %26 to i32
%28 = load i16, i16* %14
%29 = sext i16 %28 to i32
%30 = load i16, i16* %15
%31 = zext i16 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %27, i32 %29, i32 %31)
%33 = load i16, i16* %19
%34 = sext i16 %33 to i32
%35 = load i16, i16* %20
%36 = sext i16 %35 to i32
%37 = load i16, i16* %21
%38 = zext i16 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %34, i32 %36, i32 %38)
%40 = load i64, i64* %16
%41 = load i64, i64* %17
%42 = load i64, i64* %18
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i64 %40, i64 %41, i64 %42)
%44 = load i64, i64* %22
%45 = load i64, i64* %23
%46 = load i64, i64* %24
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 %44, i64 %45, i64 %46)
ret i16 1
}

LLVM IR (-O2):
@.str.1 = [30 x i8] c" s1 = %d, s2 = %d, us1 = %d\0A \00"
@.str.2 = [30 x i8] c" s3 = %d, s4 = %d, us2 = %d\0A \00"
@.str.3 = [33 x i8] c" l1 = %ld, l2 = %ld, ul1 = %ld\0A \00"
@.str.4 = [33 x i8] c" l3 = %ld, l4 = %ld, ul2 = %ld\0A \00"
@str = [20 x i8] c" Hello from Bar13: \00"
define signext i16 @Bar13(i16 signext %0, i16 signext %1, i16 zeroext %2, i64 %3, i64 %4, i64 %5, i16 signext %6, i16 signext %7, i16 zeroext %8, i64 %9, i64 %10, i64 %11) {
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%14 = sext i16 %0 to i32
%15 = sext i16 %1 to i32
%16 = zext i16 %2 to i32
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %15, i32 %16)
%18 = sext i16 %6 to i32
%19 = sext i16 %7 to i32
%20 = zext i16 %8 to i32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %18, i32 %19, i32 %20)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i64 %3, i64 %4, i64 %5)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 %9, i64 %10, i64 %11)
ret i16 1
}