#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 make_ti(int, int);
scalar_t__ test__ctzti2(int, int);
int main() {
  if (test__ctzti2(0x00000001, 0))
    return 1;
  if (test__ctzti2(0x00000002, 1))
    return 1;
  if (test__ctzti2(0x00000003, 0))
    return 1;
  if (test__ctzti2(0x00000004, 2))
    return 1;
  if (test__ctzti2(0x00000005, 0))
    return 1;
  if (test__ctzti2(0x0000000A, 1))
    return 1;
  if (test__ctzti2(0x10000000, 28))
    return 1;
  if (test__ctzti2(0x20000000, 29))
    return 1;
  if (test__ctzti2(0x60000000, 29))
    return 1;
  if (test__ctzti2(0x80000000uLL, 31))
    return 1;
  if (test__ctzti2(0x0000050000000000uLL, 40))
    return 1;
  if (test__ctzti2(0x0200080000000000uLL, 43))
    return 1;
  if (test__ctzti2(0x7200000000000000uLL, 57))
    return 1;
  if (test__ctzti2(0x8000000000000000uLL, 63))
    return 1;
  if (test__ctzti2(make_ti(0x00000000A0000000LL, 0x0000000000000000LL), 93))
    return 1;
  if (test__ctzti2(make_ti(0xF000000000000000LL, 0x0000000000000000LL), 124))
    return 1;
  if (test__ctzti2(make_ti(0x8000000000000000LL, 0x0000000000000000LL), 127))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1151 <main+0x31>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1176 <main+0x56>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1198 <main+0x78>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x4,%edi
mov    $0x2,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     11bd <main+0x9d>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     11df <main+0xbf>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0xa,%edi
mov    $0x1,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1204 <main+0xe4>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x10000000,%edi
mov    $0x1c,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1229 <main+0x109>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x20000000,%edi
mov    $0x1d,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     124e <main+0x12e>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x60000000,%edi
mov    $0x1d,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1273 <main+0x153>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0x80000000,%edi
mov    $0x1f,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1298 <main+0x178>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %edi,%edi
mov    $0x28,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     12ba <main+0x19a>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %edi,%edi
mov    $0x2b,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     12dc <main+0x1bc>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %edi,%edi
mov    $0x39,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     12fe <main+0x1de>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %edi,%edi
mov    $0x3f,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1320 <main+0x200>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
mov    $0xa0000000,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x5d,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     134e <main+0x22e>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x7c,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     1379 <main+0x259>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x7f,%esi
call   1030 <test__ctzti2@plt>
cmp    $0x0,%rax
je     13a4 <main+0x284>
movl   $0x1,-0x4(%rbp)
jmp    13ab <main+0x28b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1,%ebx
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x1,%ebx
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x4,%edi
mov    $0x2,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x1,%ebx
mov    $0xa,%edi
mov    $0x1,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x10000000,%edi
mov    $0x1c,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x20000000,%edi
mov    $0x1d,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x60000000,%edi
mov    $0x1d,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0x80000000,%edi
mov    $0x1f,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
mov    $0x28,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
mov    $0x2b,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
mov    $0x39,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
mov    $0x3f,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
mov    $0xa0000000,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x5d,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x7c,%esi
call   1030 <test__ctzti2@plt>
test   %rax,%rax
jne    12b3 <main+0x193>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%edi
mov    $0x7f,%esi
call   1030 <test__ctzti2@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__ctzti2(i32 1, i32 0)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %73
5: ; preds = %0
%6 = call i64 @test__ctzti2(i32 2, i32 1)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %73
9: ; preds = %5
%10 = call i64 @test__ctzti2(i32 3, i32 0)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %73
13: ; preds = %9
%14 = call i64 @test__ctzti2(i32 4, i32 2)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %73
17: ; preds = %13
%18 = call i64 @test__ctzti2(i32 5, i32 0)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, i32* %1
br label %73
21: ; preds = %17
%22 = call i64 @test__ctzti2(i32 10, i32 1)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %1
br label %73
25: ; preds = %21
%26 = call i64 @test__ctzti2(i32 268435456, i32 28)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, i32* %1
br label %73
29: ; preds = %25
%30 = call i64 @test__ctzti2(i32 536870912, i32 29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 1, i32* %1
br label %73
33: ; preds = %29
%34 = call i64 @test__ctzti2(i32 1610612736, i32 29)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, i32* %1
br label %73
37: ; preds = %33
%38 = call i64 @test__ctzti2(i32 -2147483648, i32 31)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, i32* %1
br label %73
41: ; preds = %37
%42 = call i64 @test__ctzti2(i32 0, i32 40)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41
store i32 1, i32* %1
br label %73
45: ; preds = %41
%46 = call i64 @test__ctzti2(i32 0, i32 43)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 1, i32* %1
br label %73
49: ; preds = %45
%50 = call i64 @test__ctzti2(i32 0, i32 57)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 1, i32* %1
br label %73
53: ; preds = %49
%54 = call i64 @test__ctzti2(i32 0, i32 63)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 1, i32* %1
br label %73
57: ; preds = %53
%58 = call i32 @make_ti(i32 -1610612736, i32 0)
%59 = call i64 @test__ctzti2(i32 %58, i32 93)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 1, i32* %1
br label %73
62: ; preds = %57
%63 = call i32 @make_ti(i32 0, i32 0)
%64 = call i64 @test__ctzti2(i32 %63, i32 124)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 1, i32* %1
br label %73
67: ; preds = %62
%68 = call i32 @make_ti(i32 0, i32 0)
%69 = call i64 @test__ctzti2(i32 %68, i32 127)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 1, i32* %1
br label %73
72: ; preds = %67
store i32 0, i32* %1
br label %73
73: ; preds = %72, %71, %66, %61, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %8, %4
%74 = load i32, i32* %1
ret i32 %74
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @test__ctzti2(i32 1, i32 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %55
3: ; preds = %0
%4 = tail call i64 @test__ctzti2(i32 2, i32 1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %55
6: ; preds = %3
%7 = tail call i64 @test__ctzti2(i32 3, i32 0)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %55
9: ; preds = %6
%10 = tail call i64 @test__ctzti2(i32 4, i32 2)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %55
12: ; preds = %9
%13 = tail call i64 @test__ctzti2(i32 5, i32 0)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %55
15: ; preds = %12
%16 = tail call i64 @test__ctzti2(i32 10, i32 1)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %55
18: ; preds = %15
%19 = tail call i64 @test__ctzti2(i32 268435456, i32 28)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %55
21: ; preds = %18
%22 = tail call i64 @test__ctzti2(i32 536870912, i32 29)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %55
24: ; preds = %21
%25 = tail call i64 @test__ctzti2(i32 1610612736, i32 29)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %55
27: ; preds = %24
%28 = tail call i64 @test__ctzti2(i32 -2147483648, i32 31)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %55
30: ; preds = %27
%31 = tail call i64 @test__ctzti2(i32 0, i32 40)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %55
33: ; preds = %30
%34 = tail call i64 @test__ctzti2(i32 0, i32 43)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %55
36: ; preds = %33
%37 = tail call i64 @test__ctzti2(i32 0, i32 57)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %55
39: ; preds = %36
%40 = tail call i64 @test__ctzti2(i32 0, i32 63)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %55
42: ; preds = %39
%43 = tail call i32 @make_ti(i32 -1610612736, i32 0)
%44 = tail call i64 @test__ctzti2(i32 %43, i32 93)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %55
46: ; preds = %42
%47 = tail call i32 @make_ti(i32 0, i32 0)
%48 = tail call i64 @test__ctzti2(i32 %47, i32 124)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %46
%51 = tail call i32 @make_ti(i32 0, i32 0)
%52 = tail call i64 @test__ctzti2(i32 %51, i32 127)
%53 = icmp ne i64 %52, 0
%54 = zext i1 %53 to i32
br label %55
55: ; preds = %50, %46, %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, %46 ], [ %54, %50 ]
ret i32 %56
}