#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 /*<<< orphan*/ is_identical(char const *, char const *, int, int);
int /*<<< orphan*/ printf(char *, char const *, char const *);
void get_brief_results(const char *file1, const char *file2,
                       int is_case_insensitive, int ignore_whitespace) {
  if (!is_identical(file1, file2, is_case_insensitive, ignore_whitespace)) {
    printf("%s and %s differ.\n", file1, file2);
  } else {
    printf("%s and %s are identical.\n", file1, file2);
  }
  return;
}


x86 assembly (clang, -O0):
<get_brief_results>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1040 <is_identical@plt>
cmp    $0x0,%eax
jne    116b <get_brief_results+0x4b>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
jmp    117f <get_brief_results+0x5f>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_brief_results>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <is_identical@plt>
test   %eax,%eax
lea    0xec8(%rip),%rax
lea    0xed4(%rip),%rdi
cmove  %rax,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"%s and %s differ.\0A\00"
@.str.1 = [26 x i8] c"%s and %s are identical.\0A\00"
define void @get_brief_results(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = call i32 @is_identical(i8* %9, i8* %10, i32 %11, i32 %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %4
%16 = load i8*, i8** %5
%17 = load i8*, i8** %6
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %16, i8* %17)
br label %23
19: ; preds = %4
%20 = load i8*, i8** %5
%21 = load i8*, i8** %6
%22 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* %21)
br label %23
23: ; preds = %19, %15
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"%s and %s differ.\0A\00"
@.str.1 = [26 x i8] c"%s and %s are identical.\0A\00"
define void @get_brief_results(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @is_identical(i8* %0, i8* %1, i32 %2, i32 %3)
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0)
%8 = tail call i32 @printf(i8* %7, i8* %0, i8* %1)
ret void
}