#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 EOF;
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int, int, int, int);
void normal(FILE *f1, FILE *f2) {
  int car2fich1;
  int car2fich2;
  int ligne = 0;
  do {
    car2fich1 = fgetc(f1);
    car2fich2 = fgetc(f2);
    if (car2fich1 != car2fich2) {
    }
    printf("c1=%i \t c1=%i \t c2=%i \t c2=%c\n", car2fich1, car2fich1,
           car2fich2, car2fich2);
  } while (car2fich1 != EOF || car2fich2 != EOF);
}


x86 assembly (clang, -O0):
<normal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <fgetc@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     1160 <normal+0x40>
jmp    1160 <normal+0x40>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%ecx
mov    $0x1,%al
mov    0x2e63(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x1d(%rbp)
jne    11a2 <normal+0x82>
mov    -0x18(%rbp),%eax
mov    0x2e4e(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
test   $0x1,%al
jne    1137 <normal+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<normal>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
lea    0xec8(%rip),%r15
mov    0x2ea9(%rip),%r13
nop
mov    %r12,%rdi
call   1040 <fgetc@plt>
mov    %eax,%ebx
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    %eax,%ebp
mov    %r15,%rdi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    %eax,%r8d
call   1030 <printf@plt>
mov    0x0(%r13),%eax
cmp    %eax,%ebx
jne    1140 <normal+0x20>
cmp    %eax,%ebp
jne    1140 <normal+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"c1=%i \09 c1=%i \09 c2=%i \09 c2=%c\0A\00"
@EOF = global i32 0
define void @normal(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %7
br label %8
8: ; preds = %31, %2
%9 = load i32*, i32** %3
%10 = call i32 @fgetc(i32* %9)
store i32 %10, i32* %5
%11 = load i32*, i32** %4
%12 = call i32 @fgetc(i32* %11)
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %8
br label %17
17: ; preds = %16, %8
%18 = load i32, i32* %5
%19 = load i32, i32* %5
%20 = load i32, i32* %6
%21 = load i32, i32* %6
%22 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19, i32 %20, i32 %21)
br label %23
23: ; preds = %17
%24 = load i32, i32* %5
%25 = load i32, i32* @EOF
%26 = icmp ne i32 %24, %25
br i1 %26, label %31, label %27
27: ; preds = %23
%28 = load i32, i32* %6
%29 = load i32, i32* @EOF
%30 = icmp ne i32 %28, %29
br label %31
31: ; preds = %27, %23
%32 = phi i1 [ true, %23 ], [ %30, %27 ]
br i1 %32, label %8, label %33
33: ; preds = %31
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"c1=%i \09 c1=%i \09 c2=%i \09 c2=%c\0A\00"
@EOF = global i32 0
define void @normal(i32* nocapture %0, i32* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 @fgetc(i32* %0)
%5 = tail call i32 @fgetc(i32* %1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %4, i32 %5, i32 %5)
%7 = load i32, i32* @EOF
%8 = icmp ne i32 %4, %7
%9 = icmp ne i32 %5, %7
%10 = or i1 %8, %9
br i1 %10, label %3, label %11
11: ; preds = %3
ret void
}