#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__ isConsonant(char const *);
scalar_t__ isVowel(char const *);
int m_gt_0(const char *z) {
  while (isVowel(z)) {
    z++;
  }
  if (*z == 0)
    return 0;
  while (isConsonant(z)) {
    z++;
  }
  return *z != 0;
}


x86 assembly (clang, -O0):
<m_gt_0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <isVowel@plt>
cmp    $0x0,%rax
je     1150 <m_gt_0+0x30>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    112c <m_gt_0+0xc>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    116c <m_gt_0+0x4c>
movl   $0x0,-0x4(%rbp)
jmp    11aa <m_gt_0+0x8a>
jmp    1171 <m_gt_0+0x51>
mov    -0x10(%rbp),%rdi
call   1030 <isConsonant@plt>
cmp    $0x0,%rax
je     1195 <m_gt_0+0x75>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1171 <m_gt_0+0x51>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_gt_0>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %rbx,%rdi
call   1040 <isVowel@plt>
test   %rax,%rax
jne    1130 <m_gt_0+0x10>
cmpb   $0x0,(%rbx)
je     116c <m_gt_0+0x4c>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <isConsonant@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1150 <m_gt_0+0x30>
xor    %eax,%eax
cmpb   $0x0,-0x1(%rbx)
setne  %al
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @m_gt_0(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
br label %4
4: ; preds = %8, %1
%5 = load i8*, i8** %3
%6 = call i64 @isVowel(i8* %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %3
br label %4
11: ; preds = %4
%12 = load i8*, i8** %3
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 0, i32* %2
br label %31
17: ; preds = %11
br label %18
18: ; preds = %22, %17
%19 = load i8*, i8** %3
%20 = call i64 @isConsonant(i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i8*, i8** %3
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %3
br label %18
25: ; preds = %18
%26 = load i8*, i8** %3
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i32
store i32 %30, i32* %2
br label %31
31: ; preds = %25, %16
%32 = load i32, i32* %2
ret i32 %32
}

LLVM IR (-O2):
define i32 @m_gt_0(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = tail call i64 @isVowel(i8* %3)
%5 = icmp eq i64 %4, 0
%6 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %5, label %7, label %2
7: ; preds = %2
%8 = load i8, i8* %3
%9 = icmp eq i8 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %7, %10
%11 = phi i8* [ %14, %10 ], [ %3, %7 ]
%12 = tail call i64 @isConsonant(i8* %11)
%13 = icmp eq i64 %12, 0
%14 = getelementptr inbounds i8, i8* %11, i64 1
br i1 %13, label %15, label %10
15: ; preds = %10
%16 = load i8, i8* %11
%17 = icmp ne i8 %16, 0
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %7, %15
%20 = phi i32 [ %18, %15 ], [ 0, %7 ]
ret i32 %20
}