#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 */
scalar_t__ test__ashldi3(int, int, int);
int main() {
  if (test__ashldi3(0x0123456789ABCDEFLL, 0, 0x123456789ABCDEFLL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 1, 0x2468ACF13579BDELL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 2, 0x48D159E26AF37BCLL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 3, 0x91A2B3C4D5E6F78LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 4, 0x123456789ABCDEF0LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 28, 0x789ABCDEF0000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 29, 0xF13579BDE0000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 30, 0xE26AF37BC0000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 31, 0xC4D5E6F780000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 32, 0x89ABCDEF00000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 33, 0x13579BDE00000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 34, 0x26AF37BC00000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 35, 0x4D5E6F7800000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 36, 0x9ABCDEF000000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 60, 0xF000000000000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 61, 0xE000000000000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 62, 0xC000000000000000LL))
    return 1;
  if (test__ashldi3(0x0123456789ABCDEFLL, 63, 0x8000000000000000LL))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x89abcdef,%edx
xor    %esi,%esi
mov    %edx,%edi
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1143 <main+0x33>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x1,%esi
mov    $0x13579bde,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     116d <main+0x5d>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x2,%esi
mov    $0x26af37bc,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1197 <main+0x87>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x3,%esi
mov    $0x4d5e6f78,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     11c1 <main+0xb1>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x4,%esi
mov    $0x9abcdef0,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     11eb <main+0xdb>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x1c,%esi
mov    $0xf0000000,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1215 <main+0x105>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x1d,%esi
mov    $0xe0000000,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     123f <main+0x12f>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x1e,%esi
mov    $0xc0000000,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1269 <main+0x159>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x1f,%esi
mov    $0x80000000,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1293 <main+0x183>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x20,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     12ba <main+0x1aa>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x21,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     12e1 <main+0x1d1>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x22,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1308 <main+0x1f8>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x23,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     132f <main+0x21f>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x24,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     1356 <main+0x246>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x3c,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     137d <main+0x26d>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x3d,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     13a4 <main+0x294>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x3e,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     13cb <main+0x2bb>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
mov    $0x89abcdef,%edi
mov    $0x3f,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
cmp    $0x0,%rax
je     13f2 <main+0x2e2>
movl   $0x1,-0x4(%rbp)
jmp    13f9 <main+0x2e9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x89abcdef,%edi
xor    %esi,%esi
mov    $0x89abcdef,%edx
call   1030 <test__ashldi3@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x1,%ebx
mov    $0x89abcdef,%edi
mov    $0x1,%esi
mov    $0x13579bde,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x2,%esi
mov    $0x26af37bc,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x3,%esi
mov    $0x4d5e6f78,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x4,%esi
mov    $0x9abcdef0,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x1c,%esi
mov    $0xf0000000,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x1d,%esi
mov    $0xe0000000,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x1e,%esi
mov    $0xc0000000,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x1f,%esi
mov    $0x80000000,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x20,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x21,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x22,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x23,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x24,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x3c,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x3d,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x3e,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
test   %rax,%rax
jne    12f2 <main+0x1e2>
mov    $0x89abcdef,%edi
mov    $0x3f,%esi
xor    %edx,%edx
call   1030 <test__ashldi3@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @test__ashldi3(i32 -1985229329, i32 0, i32 -1985229329)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %74
5: ; preds = %0
%6 = call i64 @test__ashldi3(i32 -1985229329, i32 1, i32 324508638)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %74
9: ; preds = %5
%10 = call i64 @test__ashldi3(i32 -1985229329, i32 2, i32 649017276)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %74
13: ; preds = %9
%14 = call i64 @test__ashldi3(i32 -1985229329, i32 3, i32 1298034552)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %74
17: ; preds = %13
%18 = call i64 @test__ashldi3(i32 -1985229329, i32 4, i32 -1698898192)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, i32* %1
br label %74
21: ; preds = %17
%22 = call i64 @test__ashldi3(i32 -1985229329, i32 28, i32 -268435456)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %1
br label %74
25: ; preds = %21
%26 = call i64 @test__ashldi3(i32 -1985229329, i32 29, i32 -536870912)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, i32* %1
br label %74
29: ; preds = %25
%30 = call i64 @test__ashldi3(i32 -1985229329, i32 30, i32 -1073741824)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 1, i32* %1
br label %74
33: ; preds = %29
%34 = call i64 @test__ashldi3(i32 -1985229329, i32 31, i32 -2147483648)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, i32* %1
br label %74
37: ; preds = %33
%38 = call i64 @test__ashldi3(i32 -1985229329, i32 32, i32 0)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, i32* %1
br label %74
41: ; preds = %37
%42 = call i64 @test__ashldi3(i32 -1985229329, i32 33, i32 0)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41
store i32 1, i32* %1
br label %74
45: ; preds = %41
%46 = call i64 @test__ashldi3(i32 -1985229329, i32 34, i32 0)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 1, i32* %1
br label %74
49: ; preds = %45
%50 = call i64 @test__ashldi3(i32 -1985229329, i32 35, i32 0)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 1, i32* %1
br label %74
53: ; preds = %49
%54 = call i64 @test__ashldi3(i32 -1985229329, i32 36, i32 0)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 1, i32* %1
br label %74
57: ; preds = %53
%58 = call i64 @test__ashldi3(i32 -1985229329, i32 60, i32 0)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 1, i32* %1
br label %74
61: ; preds = %57
%62 = call i64 @test__ashldi3(i32 -1985229329, i32 61, i32 0)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %61
store i32 1, i32* %1
br label %74
65: ; preds = %61
%66 = call i64 @test__ashldi3(i32 -1985229329, i32 62, i32 0)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %65
store i32 1, i32* %1
br label %74
69: ; preds = %65
%70 = call i64 @test__ashldi3(i32 -1985229329, i32 63, i32 0)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %69
store i32 1, i32* %1
br label %74
73: ; preds = %69
store i32 0, i32* %1
br label %74
74: ; preds = %73, %72, %68, %64, %60, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %8, %4
%75 = load i32, i32* %1
ret i32 %75
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @test__ashldi3(i32 -1985229329, i32 0, i32 -1985229329)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %55
3: ; preds = %0
%4 = tail call i64 @test__ashldi3(i32 -1985229329, i32 1, i32 324508638)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %55
6: ; preds = %3
%7 = tail call i64 @test__ashldi3(i32 -1985229329, i32 2, i32 649017276)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %55
9: ; preds = %6
%10 = tail call i64 @test__ashldi3(i32 -1985229329, i32 3, i32 1298034552)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %55
12: ; preds = %9
%13 = tail call i64 @test__ashldi3(i32 -1985229329, i32 4, i32 -1698898192)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %55
15: ; preds = %12
%16 = tail call i64 @test__ashldi3(i32 -1985229329, i32 28, i32 -268435456)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %55
18: ; preds = %15
%19 = tail call i64 @test__ashldi3(i32 -1985229329, i32 29, i32 -536870912)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %55
21: ; preds = %18
%22 = tail call i64 @test__ashldi3(i32 -1985229329, i32 30, i32 -1073741824)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %55
24: ; preds = %21
%25 = tail call i64 @test__ashldi3(i32 -1985229329, i32 31, i32 -2147483648)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %55
27: ; preds = %24
%28 = tail call i64 @test__ashldi3(i32 -1985229329, i32 32, i32 0)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %55
30: ; preds = %27
%31 = tail call i64 @test__ashldi3(i32 -1985229329, i32 33, i32 0)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %55
33: ; preds = %30
%34 = tail call i64 @test__ashldi3(i32 -1985229329, i32 34, i32 0)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %55
36: ; preds = %33
%37 = tail call i64 @test__ashldi3(i32 -1985229329, i32 35, i32 0)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %55
39: ; preds = %36
%40 = tail call i64 @test__ashldi3(i32 -1985229329, i32 36, i32 0)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %55
42: ; preds = %39
%43 = tail call i64 @test__ashldi3(i32 -1985229329, i32 60, i32 0)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %55
45: ; preds = %42
%46 = tail call i64 @test__ashldi3(i32 -1985229329, i32 61, i32 0)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = tail call i64 @test__ashldi3(i32 -1985229329, i32 62, i32 0)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = tail call i64 @test__ashldi3(i32 -1985229329, i32 63, i32 0)
%53 = icmp ne i64 %52, 0
%54 = zext i1 %53 to i32
br label %55
55: ; preds = %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %0
%56 = phi i32 [ 1, %0 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ 1, %12 ], [ 1, %15 ], [ 1, %18 ], [ 1, %21 ], [ 1, %24 ], [ 1, %27 ], [ 1, %30 ], [ 1, %33 ], [ 1, %36 ], [ 1, %39 ], [ 1, %42 ], [ 1, %45 ], [ 1, %48 ], [ %54, %51 ]
ret i32 %56
}