#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 tolower(int);
scalar_t__ vowel(int);
int not_usually_after_T(int c0) {
  int c;
  c = tolower(c0);
  return (!(vowel(c) || c == 'h' || c == 'r' || c == 's' || c == 'w'));
}


x86 assembly (clang, -O0):
<not_usually_after_T>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <tolower@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <vowel@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    1187 <not_usually_after_T+0x67>
mov    $0x1,%al
cmpl   $0x68,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     1187 <not_usually_after_T+0x67>
mov    $0x1,%al
cmpl   $0x72,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     1187 <not_usually_after_T+0x67>
mov    $0x1,%al
cmpl   $0x73,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     1187 <not_usually_after_T+0x67>
cmpl   $0x77,-0x8(%rbp)
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<not_usually_after_T>:
push   %rbx
call   1030 <tolower@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1040 <vowel@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
je     113b <not_usually_after_T+0x1b>
pop    %rbx
ret
lea    -0x68(%rbx),%ecx
cmp    $0xb,%ecx
ja     114d <not_usually_after_T+0x2d>
mov    $0xc01,%edx
bt     %ecx,%edx
jb     1139 <not_usually_after_T+0x19>
xor    %eax,%eax
cmp    $0x77,%ebx
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @not_usually_after_T(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @tolower(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = call i64 @vowel(i32 %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %21, label %9
9: ; preds = %1
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 104
br i1 %11, label %21, label %12
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 114
br i1 %14, label %21, label %15
15: ; preds = %12
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 115
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 119
br label %21
21: ; preds = %18, %15, %12, %9, %1
%22 = phi i1 [ true, %15 ], [ true, %12 ], [ true, %9 ], [ true, %1 ], [ %20, %18 ]
%23 = xor i1 %22, true
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @not_usually_after_T(i32 %0) {
%2 = tail call i32 @tolower(i32 %0)
%3 = tail call i64 @vowel(i32 %2)
%4 = freeze i64 %3
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
switch i32 %2, label %7 [
i32 115, label %10
i32 114, label %10
i32 104, label %10
]
7: ; preds = %6
%8 = icmp ne i32 %2, 119
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %6, %6, %6, %1, %7
%11 = phi i32 [ 0, %6 ], [ %9, %7 ], [ 0, %1 ], [ 0, %6 ], [ 0, %6 ]
ret i32 %11
}