#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*/ abort();
void f18(int s) {
  if ((s & ((-0x4000 << ((sizeof(int) - sizeof(short)) * 8)) | 1)) !=
      ((-0x4000 << ((sizeof(int) - sizeof(short)) * 8)) | 1)) {
    if (s == 0 || s == 0x1cbf || s == 0x1cc0 || s == 0x1fff || s == 0x2000 ||
        s == 0x20 || s == 0x3cbf || s == 0x3cc0 || s == 0x3f ||
        s == (-0x4000 << ((sizeof(int) - sizeof(short)) * 8)) - 1 ||
        s == (-0x7000 << ((sizeof(int) - sizeof(short)) * 8)) - 1 ||
        s == (-0x5fcf << ((sizeof(int) - sizeof(short)) * 8)) - 1 ||
        s == (-0x4041 << ((sizeof(int) - sizeof(short)) * 8)) ||
        s == (-0x4000 << ((sizeof(int) - sizeof(short)) * 8)) ||
        s == (-0x1000 << ((sizeof(int) - sizeof(short)) * 8)) ||
        s == (-0x7000 << ((sizeof(int) - sizeof(short)) * 8)) || s == 1 ||
        s == -15550 || s == -15552 ||
        s == (0x7000 << ((sizeof(int) - sizeof(short)) * 8)) - 1 ||
        s == (0x7000 << ((sizeof(int) - sizeof(short)) * 8)) ||
        s == (1 << ((sizeof(int) * 8 - 1) - 2)) ||
        s == (1 << ((sizeof(int) * 8 - 1) - 2)) - 1 || s == -0x7fffffff - 1 ||
        s == 2 || s == 24 || s == -32 ||
        s == (3 << ((sizeof(int) * 8 - 1) - 2)) + 2 || s == 5 || s == -64 ||
        s == -0x7fffffff + 4 || s == -8192 || s == -8250 || s == -8256 ||
        s == 0x7fffffff || s == -0x7fffffff + 7)
      return;
  } else {
    if (s == (-0x1000 << ((sizeof(int) - sizeof(short)) * 8)) - 1 ||
        s == (-0x4000 << ((sizeof(int) - sizeof(short)) * 8)) + 1 || s == -1 ||
        s == -15 || s == -5 || s == -63 || s == -65 || s == -8189 ||
        s == -8191 || s == -8193 || s == -8255 || s == -8257)
      return;
  }
  abort();
}


x86 assembly (clang, -O0):
<f18>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xc0000001,%eax
cmp    $0xc0000001,%eax
je     12f1 <f18+0x1e1>
cmpl   $0x0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x1cbf,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x1cc0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x1fff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x2000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x20,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x3cbf,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x3cc0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x3f,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xbfffffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x8fffffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xa030ffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xbfbf0000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xc0000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xf0000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x90000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x1,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffc342,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffc340,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x6fffffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x70000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x20000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x1fffffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x80000000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x2,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x18,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffffe0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x60000002,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x5,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffffc0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x80000005,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffe000,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffdfc6,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0xffffdfc0,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x7fffffff,-0x4(%rbp)
je     12e7 <f18+0x1d7>
cmpl   $0x80000008,-0x4(%rbp)
jne    12ec <f18+0x1dc>
jmp    138f <f18+0x27f>
jmp    1388 <f18+0x278>
cmpl   $0xefffffff,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xc0000001,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffffff,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xfffffff1,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xfffffffb,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffffc1,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffffbf,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffe003,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffe001,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffdfff,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffdfc1,-0x4(%rbp)
je     137e <f18+0x26e>
cmpl   $0xffffdfbf,-0x4(%rbp)
jne    1383 <f18+0x273>
jmp    138f <f18+0x27f>
jmp    1388 <f18+0x278>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f18>:
mov    %edi,%eax
not    %eax
test   $0xc0000001,%eax
jne    115a <f18+0x4a>
cmp    $0xffffffbe,%edi
jg     11d8 <f18+0xc8>
cmp    $0xffffdfc0,%edi
jle    1202 <f18+0xf2>
lea    0x2001(%rdi),%eax
cmp    $0x4,%eax
ja     1149 <f18+0x39>
mov    $0x15,%ecx
bt     %eax,%ecx
jb     12e9 <f18+0x1d9>
cmp    $0xffffdfc1,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
test   %edi,%edi
js     119f <f18+0x8f>
cmp    $0x1ffe,%edi
jle    122b <f18+0x11b>
cmp    $0x60000001,%edi
jg     127c <f18+0x16c>
lea    -0x1fff(%rdi),%eax
cmp    $0x2,%eax
jb     12e9 <f18+0x1d9>
lea    -0x3cbf(%rdi),%eax
cmp    $0x2,%eax
jb     12e9 <f18+0x1d9>
add    $0xe0000001,%edi
jmp    124c <f18+0x13c>
cmp    $0xefffffff,%edi
jg     125a <f18+0x14a>
cmp    $0xa030fffe,%edi
jg     1299 <f18+0x189>
lea    -0x80000000(%rdi),%eax
cmp    $0x8,%eax
ja     11d0 <f18+0xc0>
mov    $0x121,%ecx
bt     %eax,%ecx
jb     12e9 <f18+0x1d9>
add    $0x70000001,%edi
jmp    124c <f18+0x13c>
lea    0x3f(%rdi),%eax
cmp    $0x3e,%eax
ja     11f4 <f18+0xe4>
movabs $0x4401000000000001,%rcx
bt     %rax,%rcx
jb     12e9 <f18+0x1d9>
cmp    $0xffffffbf,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0xc0000001,%edi
je     12e9 <f18+0x1d9>
cmp    $0xefffffff,%edi
je     12e9 <f18+0x1d9>
cmp    $0xffffdfbf,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0x3f,%edi
ja     1246 <f18+0x136>
mov    %edi,%eax
movabs $0x8000000101000027,%rcx
bt     %rax,%rcx
jb     12e9 <f18+0x1d9>
add    $0xffffe341,%edi
cmp    $0x2,%edi
jb     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0xffffdfc5,%edi
jg     12b6 <f18+0x1a6>
cmp    $0xffffc341,%edi
jg     12cd <f18+0x1bd>
cmp    $0xf0000000,%edi
je     12e9 <f18+0x1d9>
cmp    $0xffffc340,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
lea    -0x6fffffff(%rdi),%eax
cmp    $0x2,%eax
jb     12e9 <f18+0x1d9>
cmp    $0x60000002,%edi
je     12e9 <f18+0x1d9>
cmp    $0x7fffffff,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
lea    0x40000001(%rdi),%eax
cmp    $0x2,%eax
jb     12e9 <f18+0x1d9>
cmp    $0xa030ffff,%edi
je     12e9 <f18+0x1d9>
cmp    $0xbfbf0000,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0xffffffbf,%edi
jg     12df <f18+0x1cf>
cmp    $0xffffdfc6,%edi
je     12e9 <f18+0x1d9>
cmp    $0xffffe000,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0xffffc342,%edi
je     12e9 <f18+0x1d9>
cmp    $0xffffdfc0,%edi
je     12e9 <f18+0x1d9>
jmp    12ea <f18+0x1da>
cmp    $0xffffffc0,%edi
je     12e9 <f18+0x1d9>
cmp    $0xffffffe0,%edi
jne    12ea <f18+0x1da>
ret
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @f18(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, -1073741823
%5 = icmp ne i32 %4, -1073741823
br i1 %5, label %6, label %116
6: ; preds = %1
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, 0
br i1 %8, label %114, label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 7359
br i1 %11, label %114, label %12
12: ; preds = %9
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 7360
br i1 %14, label %114, label %15
15: ; preds = %12
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 8191
br i1 %17, label %114, label %18
18: ; preds = %15
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 8192
br i1 %20, label %114, label %21
21: ; preds = %18
%22 = load i32, i32* %2
%23 = icmp eq i32 %22, 32
br i1 %23, label %114, label %24
24: ; preds = %21
%25 = load i32, i32* %2
%26 = icmp eq i32 %25, 15551
br i1 %26, label %114, label %27
27: ; preds = %24
%28 = load i32, i32* %2
%29 = icmp eq i32 %28, 15552
br i1 %29, label %114, label %30
30: ; preds = %27
%31 = load i32, i32* %2
%32 = icmp eq i32 %31, 63
br i1 %32, label %114, label %33
33: ; preds = %30
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, -1073741825
br i1 %35, label %114, label %36
36: ; preds = %33
%37 = load i32, i32* %2
%38 = icmp eq i32 %37, -1879048193
br i1 %38, label %114, label %39
39: ; preds = %36
%40 = load i32, i32* %2
%41 = icmp eq i32 %40, -1607401473
br i1 %41, label %114, label %42
42: ; preds = %39
%43 = load i32, i32* %2
%44 = icmp eq i32 %43, -1078001664
br i1 %44, label %114, label %45
45: ; preds = %42
%46 = load i32, i32* %2
%47 = icmp eq i32 %46, -1073741824
br i1 %47, label %114, label %48
48: ; preds = %45
%49 = load i32, i32* %2
%50 = icmp eq i32 %49, -268435456
br i1 %50, label %114, label %51
51: ; preds = %48
%52 = load i32, i32* %2
%53 = icmp eq i32 %52, -1879048192
br i1 %53, label %114, label %54
54: ; preds = %51
%55 = load i32, i32* %2
%56 = icmp eq i32 %55, 1
br i1 %56, label %114, label %57
57: ; preds = %54
%58 = load i32, i32* %2
%59 = icmp eq i32 %58, -15550
br i1 %59, label %114, label %60
60: ; preds = %57
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, -15552
br i1 %62, label %114, label %63
63: ; preds = %60
%64 = load i32, i32* %2
%65 = icmp eq i32 %64, 1879048191
br i1 %65, label %114, label %66
66: ; preds = %63
%67 = load i32, i32* %2
%68 = icmp eq i32 %67, 1879048192
br i1 %68, label %114, label %69
69: ; preds = %66
%70 = load i32, i32* %2
%71 = icmp eq i32 %70, 536870912
br i1 %71, label %114, label %72
72: ; preds = %69
%73 = load i32, i32* %2
%74 = icmp eq i32 %73, 536870911
br i1 %74, label %114, label %75
75: ; preds = %72
%76 = load i32, i32* %2
%77 = icmp eq i32 %76, -2147483648
br i1 %77, label %114, label %78
78: ; preds = %75
%79 = load i32, i32* %2
%80 = icmp eq i32 %79, 2
br i1 %80, label %114, label %81
81: ; preds = %78
%82 = load i32, i32* %2
%83 = icmp eq i32 %82, 24
br i1 %83, label %114, label %84
84: ; preds = %81
%85 = load i32, i32* %2
%86 = icmp eq i32 %85, -32
br i1 %86, label %114, label %87
87: ; preds = %84
%88 = load i32, i32* %2
%89 = icmp eq i32 %88, 1610612738
br i1 %89, label %114, label %90
90: ; preds = %87
%91 = load i32, i32* %2
%92 = icmp eq i32 %91, 5
br i1 %92, label %114, label %93
93: ; preds = %90
%94 = load i32, i32* %2
%95 = icmp eq i32 %94, -64
br i1 %95, label %114, label %96
96: ; preds = %93
%97 = load i32, i32* %2
%98 = icmp eq i32 %97, -2147483643
br i1 %98, label %114, label %99
99: ; preds = %96
%100 = load i32, i32* %2
%101 = icmp eq i32 %100, -8192
br i1 %101, label %114, label %102
102: ; preds = %99
%103 = load i32, i32* %2
%104 = icmp eq i32 %103, -8250
br i1 %104, label %114, label %105
105: ; preds = %102
%106 = load i32, i32* %2
%107 = icmp eq i32 %106, -8256
br i1 %107, label %114, label %108
108: ; preds = %105
%109 = load i32, i32* %2
%110 = icmp eq i32 %109, 2147483647
br i1 %110, label %114, label %111
111: ; preds = %108
%112 = load i32, i32* %2
%113 = icmp eq i32 %112, -2147483640
br i1 %113, label %114, label %115
114: ; preds = %111, %108, %105, %102, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6
br label %156
115: ; preds = %111
br label %154
116: ; preds = %1
%117 = load i32, i32* %2
%118 = icmp eq i32 %117, -268435457
br i1 %118, label %152, label %119
119: ; preds = %116
%120 = load i32, i32* %2
%121 = icmp eq i32 %120, -1073741823
br i1 %121, label %152, label %122
122: ; preds = %119
%123 = load i32, i32* %2
%124 = icmp eq i32 %123, -1
br i1 %124, label %152, label %125
125: ; preds = %122
%126 = load i32, i32* %2
%127 = icmp eq i32 %126, -15
br i1 %127, label %152, label %128
128: ; preds = %125
%129 = load i32, i32* %2
%130 = icmp eq i32 %129, -5
br i1 %130, label %152, label %131
131: ; preds = %128
%132 = load i32, i32* %2
%133 = icmp eq i32 %132, -63
br i1 %133, label %152, label %134
134: ; preds = %131
%135 = load i32, i32* %2
%136 = icmp eq i32 %135, -65
br i1 %136, label %152, label %137
137: ; preds = %134
%138 = load i32, i32* %2
%139 = icmp eq i32 %138, -8189
br i1 %139, label %152, label %140
140: ; preds = %137
%141 = load i32, i32* %2
%142 = icmp eq i32 %141, -8191
br i1 %142, label %152, label %143
143: ; preds = %140
%144 = load i32, i32* %2
%145 = icmp eq i32 %144, -8193
br i1 %145, label %152, label %146
146: ; preds = %143
%147 = load i32, i32* %2
%148 = icmp eq i32 %147, -8255
br i1 %148, label %152, label %149
149: ; preds = %146
%150 = load i32, i32* %2
%151 = icmp eq i32 %150, -8257
br i1 %151, label %152, label %153
152: ; preds = %149, %146, %143, %140, %137, %134, %131, %128, %125, %122, %119, %116
br label %156
153: ; preds = %149
br label %154
154: ; preds = %153, %115
%155 = call i32 (...) @abort()
unreachable
156: ; preds = %152, %114
ret void
}

LLVM IR (-O2):
define void @f18(i32 %0) {
%2 = and i32 %0, -1073741823
%3 = icmp eq i32 %2, -1073741823
br i1 %3, label %5, label %4
4: ; preds = %1
switch i32 %0, label %6 [
i32 -32, label %8
i32 -64, label %8
i32 -8192, label %8
i32 -8250, label %8
i32 -8256, label %8
i32 -15550, label %8
i32 -15552, label %8
i32 -268435456, label %8
i32 -1073741824, label %8
i32 -1073741825, label %8
i32 -1078001664, label %8
i32 -1607401473, label %8
i32 -1879048192, label %8
i32 -1879048193, label %8
i32 -2147483640, label %8
i32 -2147483643, label %8
i32 -2147483648, label %8
i32 2147483647, label %8
i32 1879048192, label %8
i32 1879048191, label %8
i32 1610612738, label %8
i32 536870912, label %8
i32 536870911, label %8
i32 15552, label %8
i32 15551, label %8
i32 8192, label %8
i32 8191, label %8
i32 7360, label %8
i32 7359, label %8
i32 63, label %8
i32 32, label %8
i32 24, label %8
i32 5, label %8
i32 2, label %8
i32 1, label %8
i32 0, label %8
]
5: ; preds = %1
switch i32 %0, label %6 [
i32 -1, label %8
i32 -5, label %8
i32 -15, label %8
i32 -63, label %8
i32 -65, label %8
i32 -8189, label %8
i32 -8191, label %8
i32 -8193, label %8
i32 -8255, label %8
i32 -8257, label %8
i32 -268435457, label %8
i32 -1073741823, label %8
]
6: ; preds = %5, %4
%7 = tail call i32 (...) @abort()
unreachable
8: ; preds = %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4
ret void
}