#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 */
char *disemvowel(char *);
scalar_t__ getline(char **, int *, int /*<<< orphan*/);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  char *line;
  int size;
  size = 100;
  line = (char *)malloc(size + 1);
  while (getline(&line, &size, stdin) > 0) {
    printf("%s\n", disemvowel(line));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x64,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    0x2e75(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1060 <getline@plt>
cmp    $0x0,%rax
jle    11a9 <main+0x69>
mov    -0x18(%rbp),%rdi
call   1030 <disemvowel@plt>
mov    %rax,%rsi
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
jmp    116c <main+0x2c>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x64,0xc(%rsp)
mov    $0x65,%edi
call   1050 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    0x2e7f(%rip),%r12
mov    (%r12),%edx
lea    0x10(%rsp),%rdi
lea    0xc(%rsp),%rsi
call   1060 <getline@plt>
test   %rax,%rax
jle    11c9 <main+0x89>
lea    0xe78(%rip),%r14
lea    0x10(%rsp),%r15
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x10(%rsp),%rdi
call   1030 <disemvowel@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    (%r12),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <getline@plt>
test   %rax,%rax
jg     11a0 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 100, i32* %7
%8 = load i32, i32* %7
%9 = add nsw i32 %8, 1
%10 = call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %6
br label %12
12: ; preds = %16, %2
%13 = load i32, i32* @stdin
%14 = call i64 @getline(i8** %6, i32* %7, i32 %13)
%15 = icmp sgt i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load i8*, i8** %6
%18 = call i8* @disemvowel(i8* %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %18)
br label %12
20: ; preds = %12
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = bitcast i8** %3 to i8*
%6 = bitcast i32* %4 to i8*
store i32 100, i32* %4
%7 = tail call i64 @malloc(i32 101)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
%9 = load i32, i32* @stdin
%10 = call i64 @getline(i8** %3, i32* %4, i32 %9)
%11 = icmp sgt i64 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %2, %12
%13 = load i8*, i8** %3
%14 = call i8* @disemvowel(i8* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @stdin
%17 = call i64 @getline(i8** %3, i32* %4, i32 %16)
%18 = icmp sgt i64 %17, 0
br i1 %18, label %12, label %19
19: ; preds = %12, %2
ret i32 0
}