#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 ShrTest1(int, int, int);
int ShrTest10(int, int, int);
int ShrTest11(int, int, int);
int ShrTest12(int, int, int, int);
int ShrTest13(int, int, int, int);
int ShrTest14(int, int, int, int);
int ShrTest15(int, int, int);
int ShrTest16(int, int, int);
int ShrTest2(int, int, int);
int ShrTest3(int);
int ShrTest4(int);
int ShrTest5(int, int);
int ShrTest6(int, int);
int ShrTest7(int);
int ShrTest8(int);
int ShrTest9(int, int, int);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  printf("ShrTest1(-1, 11, 0xFF000000) = %d\n",
         ShrTest1(0xFFFFFFFF, 11, 0xFF000000));
  printf("ShrTest2(-73, 11, 1) = %d\n", ShrTest2(-73, 11, 1));
  printf("ShrTest3(-73) = %d\n", ShrTest3(-73));
  printf("ShrTest4(-73) = %d\n", ShrTest4(-73));
  printf("ShrTest5(7773, 11) = %d\n", ShrTest5(7773, 11));
  printf("ShrTest6(-73, 11) = %d\n", ShrTest6(-73, 11));
  printf("ShrTest7(-737) = %d\n", ShrTest7(-737));
  printf("ShrTest8(73) = %d\n", ShrTest8(73));
  printf("ShrTest9(13, 7773, 11) = %d\n", ShrTest9(13, 7773, 11));
  printf("ShrTest10(13, 7773, 11) = %d\n", ShrTest10(13, 7773, 11));
  printf("ShrTest11(13, 7773, 11) = %d\n", ShrTest11(13, 7773, 11));
  printf("ShrTest12(7773, -73, 11, 3773) = %d\n",
         ShrTest12(7773, -73, 11, 3773));
  printf("ShrTest13(7773, -73, 11, 3773) = %d\n",
         ShrTest13(7773, -73, 11, 3773));
  printf("ShrTest14(7773, -73, 11, 3773) = %d\n",
         ShrTest14(7773, -73, 11, 3773));
  printf("ShrTest15(7773, 13, 11) = %d\n", ShrTest15(7773, 13, 11));
  printf("ShrTest16(-73, 11, 13) = %d\n", ShrTest16(-73, 11, 13));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xffffffff,%edi
mov    $0xb,%esi
mov    $0xff000000,%edx
call   10a0 <ShrTest1@plt>
mov    %eax,%esi
lea    0xdbd(%rip),%rdi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
mov    $0x1,%edx
call   1130 <ShrTest2@plt>
mov    %eax,%esi
lea    0xdbe(%rip),%rdi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
call   10c0 <ShrTest3@plt>
mov    %eax,%esi
lea    0xdc1(%rip),%rdi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
call   1120 <ShrTest4@plt>
mov    %eax,%esi
lea    0xdbd(%rip),%rdi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xb,%esi
call   10b0 <ShrTest5@plt>
mov    %eax,%esi
lea    0xdb4(%rip),%rdi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
call   1040 <ShrTest6@plt>
mov    %eax,%esi
lea    0xdb0(%rip),%rdi
call   1090 <printf@plt>
mov    $0xfffffd1f,%edi
call   10e0 <ShrTest7@plt>
mov    %eax,%esi
lea    0xdb0(%rip),%rdi
call   1090 <printf@plt>
mov    $0x49,%edi
call   1030 <ShrTest8@plt>
mov    %eax,%esi
lea    0xdad(%rip),%rdi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   10d0 <ShrTest9@plt>
mov    %eax,%esi
lea    0xd9e(%rip),%rdi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   1070 <ShrTest10@plt>
mov    %eax,%esi
lea    0xd99(%rip),%rdi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   1110 <ShrTest11@plt>
mov    %eax,%esi
lea    0xd95(%rip),%rdi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   1080 <ShrTest12@plt>
mov    %eax,%esi
lea    0xd8c(%rip),%rdi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   10f0 <ShrTest13@plt>
mov    %eax,%esi
lea    0xd8a(%rip),%rdi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   1050 <ShrTest14@plt>
mov    %eax,%esi
lea    0xd88(%rip),%rdi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xd,%esi
mov    $0xb,%edx
call   1100 <ShrTest15@plt>
mov    %eax,%esi
lea    0xd8b(%rip),%rdi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
mov    $0xd,%edx
call   1060 <ShrTest16@plt>
mov    %eax,%esi
lea    0xd87(%rip),%rdi
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
mov    $0xb,%esi
mov    $0xff000000,%edx
call   10a0 <ShrTest1@plt>
lea    0xdd4(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
mov    $0x1,%edx
call   1130 <ShrTest2@plt>
lea    0xdd5(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
call   10c0 <ShrTest3@plt>
lea    0xdd8(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
call   1120 <ShrTest4@plt>
lea    0xdd4(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xb,%esi
call   10b0 <ShrTest5@plt>
lea    0xdcb(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
call   1040 <ShrTest6@plt>
lea    0xdc7(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xfffffd1f,%edi
call   10e0 <ShrTest7@plt>
lea    0xdc7(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x49,%edi
call   1030 <ShrTest8@plt>
lea    0xdc4(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   10d0 <ShrTest9@plt>
lea    0xdb5(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   1070 <ShrTest10@plt>
lea    0xdb0(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xd,%edi
mov    $0x1e5d,%esi
mov    $0xb,%edx
call   1110 <ShrTest11@plt>
lea    0xdac(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   1080 <ShrTest12@plt>
lea    0xda3(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   10f0 <ShrTest13@plt>
lea    0xda1(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xffffffb7,%esi
mov    $0xb,%edx
mov    $0xebd,%ecx
call   1050 <ShrTest14@plt>
lea    0xd9f(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0x1e5d,%edi
mov    $0xd,%esi
mov    $0xb,%edx
call   1100 <ShrTest15@plt>
lea    0xda2(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
mov    $0xffffffb7,%edi
mov    $0xb,%esi
mov    $0xd,%edx
call   1060 <ShrTest16@plt>
lea    0xd9e(%rip),%rdi
mov    %eax,%esi
call   1090 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"ShrTest1(-1, 11, 0xFF000000) = %d\0A\00"
@.str.1 = [27 x i8] c"ShrTest2(-73, 11, 1) = %d\0A\00"
@.str.2 = [20 x i8] c"ShrTest3(-73) = %d\0A\00"
@.str.3 = [20 x i8] c"ShrTest4(-73) = %d\0A\00"
@.str.4 = [25 x i8] c"ShrTest5(7773, 11) = %d\0A\00"
@.str.5 = [24 x i8] c"ShrTest6(-73, 11) = %d\0A\00"
@.str.6 = [21 x i8] c"ShrTest7(-737) = %d\0A\00"
@.str.7 = [19 x i8] c"ShrTest8(73) = %d\0A\00"
@.str.8 = [29 x i8] c"ShrTest9(13, 7773, 11) = %d\0A\00"
@.str.9 = [30 x i8] c"ShrTest10(13, 7773, 11) = %d\0A\00"
@.str.10 = [30 x i8] c"ShrTest11(13, 7773, 11) = %d\0A\00"
@.str.11 = [37 x i8] c"ShrTest12(7773, -73, 11, 3773) = %d\0A\00"
@.str.12 = [37 x i8] c"ShrTest13(7773, -73, 11, 3773) = %d\0A\00"
@.str.13 = [37 x i8] c"ShrTest14(7773, -73, 11, 3773) = %d\0A\00"
@.str.14 = [30 x i8] c"ShrTest15(7773, 13, 11) = %d\0A\00"
@.str.15 = [29 x i8] c"ShrTest16(-73, 11, 13) = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @ShrTest1(i32 -1, i32 11, i32 -16777216)
%7 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @ShrTest2(i32 -73, i32 11, i32 1)
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = call i32 @ShrTest3(i32 -73)
%11 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = call i32 @ShrTest4(i32 -73)
%13 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = call i32 @ShrTest5(i32 7773, i32 11)
%15 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %14)
%16 = call i32 @ShrTest6(i32 -73, i32 11)
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %16)
%18 = call i32 @ShrTest7(i32 -737)
%19 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %18)
%20 = call i32 @ShrTest8(i32 73)
%21 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %20)
%22 = call i32 @ShrTest9(i32 13, i32 7773, i32 11)
%23 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %22)
%24 = call i32 @ShrTest10(i32 13, i32 7773, i32 11)
%25 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i32 %24)
%26 = call i32 @ShrTest11(i32 13, i32 7773, i32 11)
%27 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %26)
%28 = call i32 @ShrTest12(i32 7773, i32 -73, i32 11, i32 3773)
%29 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), i32 %28)
%30 = call i32 @ShrTest13(i32 7773, i32 -73, i32 11, i32 3773)
%31 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 %30)
%32 = call i32 @ShrTest14(i32 7773, i32 -73, i32 11, i32 3773)
%33 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i32 %32)
%34 = call i32 @ShrTest15(i32 7773, i32 13, i32 11)
%35 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %34)
%36 = call i32 @ShrTest16(i32 -73, i32 11, i32 13)
%37 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i32 %36)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"ShrTest1(-1, 11, 0xFF000000) = %d\0A\00"
@.str.1 = [27 x i8] c"ShrTest2(-73, 11, 1) = %d\0A\00"
@.str.2 = [20 x i8] c"ShrTest3(-73) = %d\0A\00"
@.str.3 = [20 x i8] c"ShrTest4(-73) = %d\0A\00"
@.str.4 = [25 x i8] c"ShrTest5(7773, 11) = %d\0A\00"
@.str.5 = [24 x i8] c"ShrTest6(-73, 11) = %d\0A\00"
@.str.6 = [21 x i8] c"ShrTest7(-737) = %d\0A\00"
@.str.7 = [19 x i8] c"ShrTest8(73) = %d\0A\00"
@.str.8 = [29 x i8] c"ShrTest9(13, 7773, 11) = %d\0A\00"
@.str.9 = [30 x i8] c"ShrTest10(13, 7773, 11) = %d\0A\00"
@.str.10 = [30 x i8] c"ShrTest11(13, 7773, 11) = %d\0A\00"
@.str.11 = [37 x i8] c"ShrTest12(7773, -73, 11, 3773) = %d\0A\00"
@.str.12 = [37 x i8] c"ShrTest13(7773, -73, 11, 3773) = %d\0A\00"
@.str.13 = [37 x i8] c"ShrTest14(7773, -73, 11, 3773) = %d\0A\00"
@.str.14 = [30 x i8] c"ShrTest15(7773, 13, 11) = %d\0A\00"
@.str.15 = [29 x i8] c"ShrTest16(-73, 11, 13) = %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @ShrTest1(i32 -1, i32 11, i32 -16777216)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @ShrTest2(i32 -73, i32 11, i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = tail call i32 @ShrTest3(i32 -73)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = tail call i32 @ShrTest4(i32 -73)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = tail call i32 @ShrTest5(i32 7773, i32 11)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = tail call i32 @ShrTest6(i32 -73, i32 11)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = tail call i32 @ShrTest7(i32 -737)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%17 = tail call i32 @ShrTest8(i32 73)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %17)
%19 = tail call i32 @ShrTest9(i32 13, i32 7773, i32 11)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %19)
%21 = tail call i32 @ShrTest10(i32 13, i32 7773, i32 11)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i32 %21)
%23 = tail call i32 @ShrTest11(i32 13, i32 7773, i32 11)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %23)
%25 = tail call i32 @ShrTest12(i32 7773, i32 -73, i32 11, i32 3773)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), i32 %25)
%27 = tail call i32 @ShrTest13(i32 7773, i32 -73, i32 11, i32 3773)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 %27)
%29 = tail call i32 @ShrTest14(i32 7773, i32 -73, i32 11, i32 3773)
%30 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i32 %29)
%31 = tail call i32 @ShrTest15(i32 7773, i32 13, i32 11)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %31)
%33 = tail call i32 @ShrTest16(i32 -73, i32 11, i32 13)
%34 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i32 %33)
ret i32 0
}