#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int copy_non_vowels(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ strlen(char *);
void disemvowelFile(FILE *inputFile, FILE *outputFile) {
  char inputbuffer[1024];
  char outputbuffer[1024];
  int inputSize;
  int outputSize;
  while (!feof(inputFile)) {
    inputSize = fread(inputbuffer, 1, 1024, inputFile);
    inputbuffer[inputSize] = '\0';
    outputSize =
        copy_non_vowels(strlen(inputbuffer), inputbuffer, outputbuffer);
    fwrite(outputbuffer, 1, outputSize, outputFile);
  }
  fclose(inputFile);
  fclose(outputFile);
}


x86 assembly (clang, -O0):
<disemvowelFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1191 <disemvowelFile+0x31>
jmp    1207 <disemvowelFile+0xa7>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x1,%esi
mov    $0x400,%edx
call   1030 <fread@plt>
mov    %eax,-0x814(%rbp)
movslq -0x814(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%edi
lea    -0x410(%rbp),%rsi
lea    -0x810(%rbp),%rdx
call   1070 <copy_non_vowels@plt>
mov    %eax,-0x818(%rbp)
lea    -0x810(%rbp),%rdi
mov    -0x818(%rbp),%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   1080 <fwrite@plt>
jmp    1173 <disemvowelFile+0x13>
mov    -0x8(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x820,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<disemvowelFile>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x808,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
call   1060 <feof@plt>
test   %eax,%eax
jne    11de <disemvowelFile+0x7e>
mov    %rsp,%r15
lea    0x400(%rsp),%r12
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x400,%edx
mov    %rbx,%rcx
call   1030 <fread@plt>
cltq
movb   $0x0,(%rsp,%rax,1)
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %eax,%edi
mov    %r15,%rsi
mov    %r12,%rdx
call   1070 <copy_non_vowels@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1080 <fwrite@plt>
mov    %rbx,%rdi
call   1060 <feof@plt>
test   %eax,%eax
je     1190 <disemvowelFile+0x30>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
add    $0x808,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @disemvowelFile(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1024 x i8]
%6 = alloca [1024 x i8]
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
br label %9
9: ; preds = %14, %2
%10 = load i32*, i32** %3
%11 = call i32 @feof(i32* %10)
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
br i1 %13, label %14, label %30
14: ; preds = %9
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%16 = load i32*, i32** %3
%17 = call i32 @fread(i8* %15, i32 1, i32 1024, i32* %16)
store i32 %17, i32* %7
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %19
store i8 0, i8* %20
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%22 = call i32 @strlen(i8* %21)
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%25 = call i32 @copy_non_vowels(i32 %22, i8* %23, i8* %24)
store i32 %25, i32* %8
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%27 = load i32, i32* %8
%28 = load i32*, i32** %4
%29 = call i32 @fwrite(i8* %26, i32 1, i32 %27, i32* %28)
br label %9
30: ; preds = %9
%31 = load i32*, i32** %3
%32 = call i32 @fclose(i32* %31)
%33 = load i32*, i32** %4
%34 = call i32 @fclose(i32* %33)
ret void
}

LLVM IR (-O2):
define void @disemvowelFile(i32* nocapture %0, i32* nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%7 = call i32 @feof(i32* %0)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %2, %9
%10 = call i32 @fread(i8* %5, i32 1, i32 1024, i32* %0)
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %11
store i8 0, i8* %12
%13 = call i32 @strlen(i8* %5)
%14 = call i32 @copy_non_vowels(i32 %13, i8* %5, i8* %6)
%15 = call i32 @fwrite(i8* %6, i32 1, i32 %14, i32* %1)
%16 = call i32 @feof(i32* %0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %9, label %18
18: ; preds = %9, %2
%19 = call i32 @fclose(i32* %0)
%20 = call i32 @fclose(i32* %1)
ret void
}