#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__ strcmp(int /*<<< orphan*/, char *);
int timeout_v_abi();
int timeout_v_api();
int timeout_v_rel();
int /*<<< orphan*/ timeout_vendor();
int timeout_version();
int check_misc(void) {
  if (0x20160226 != timeout_version())
    return 1;
  if (0x20160226 != timeout_v_rel())
    return 1;
  if (0x20160226 != timeout_v_api())
    return 1;
  if (0x20160224 != timeout_v_abi())
    return 1;
  if (strcmp(timeout_vendor(), "william@25thandClement.com"))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<check_misc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <timeout_version@plt>
mov    %eax,%ecx
mov    $0x20160226,%eax
cmp    %ecx,%eax
je     118a <check_misc+0x2a>
movl   $0x1,-0x4(%rbp)
jmp    1222 <check_misc+0xc2>
mov    $0x0,%al
call   1080 <timeout_v_rel@plt>
mov    %eax,%ecx
mov    $0x20160226,%eax
cmp    %ecx,%eax
je     11ac <check_misc+0x4c>
movl   $0x1,-0x4(%rbp)
jmp    1222 <check_misc+0xc2>
mov    $0x0,%al
call   1070 <timeout_v_api@plt>
mov    %eax,%ecx
mov    $0x20160226,%eax
cmp    %ecx,%eax
je     11ce <check_misc+0x6e>
movl   $0x1,-0x4(%rbp)
jmp    1222 <check_misc+0xc2>
mov    $0x0,%al
call   1030 <timeout_v_abi@plt>
mov    %eax,%ecx
mov    $0x20160224,%eax
cmp    %ecx,%eax
je     11f0 <check_misc+0x90>
movl   $0x1,-0x4(%rbp)
jmp    1222 <check_misc+0xc2>
mov    $0x0,%al
call   1040 <timeout_vendor@plt>
mov    %eax,%edi
lea    0xe00(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     121b <check_misc+0xbb>
movl   $0x1,-0x4(%rbp)
jmp    1222 <check_misc+0xc2>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_misc>:
push   %rbx
xor    %eax,%eax
call   1060 <timeout_version@plt>
mov    $0x1,%ebx
cmp    $0x20160226,%eax
jne    11bb <check_misc+0x5b>
xor    %eax,%eax
call   1080 <timeout_v_rel@plt>
cmp    $0x20160226,%eax
jne    11bb <check_misc+0x5b>
xor    %eax,%eax
call   1070 <timeout_v_api@plt>
cmp    $0x20160226,%eax
jne    11bb <check_misc+0x5b>
xor    %eax,%eax
call   1030 <timeout_v_abi@plt>
cmp    $0x20160224,%eax
jne    11bb <check_misc+0x5b>
xor    %eax,%eax
call   1040 <timeout_vendor@plt>
lea    0xe54(%rip),%rsi
mov    %eax,%edi
call   1050 <strcmp@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"william@25thandClement.com\00"
define i32 @check_misc() {
%1 = alloca i32
%2 = call i32 (...) @timeout_version()
%3 = icmp ne i32 538313254, %2
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %23
5: ; preds = %0
%6 = call i32 (...) @timeout_v_rel()
%7 = icmp ne i32 538313254, %6
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %23
9: ; preds = %5
%10 = call i32 (...) @timeout_v_api()
%11 = icmp ne i32 538313254, %10
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %23
13: ; preds = %9
%14 = call i32 (...) @timeout_v_abi()
%15 = icmp ne i32 538313252, %14
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %23
17: ; preds = %13
%18 = call i32 (...) @timeout_vendor()
%19 = call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, i32* %1
br label %23
22: ; preds = %17
store i32 0, i32* %1
br label %23
23: ; preds = %22, %21, %16, %12, %8, %4
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
@.str = [27 x i8] c"william@25thandClement.com\00"
define i32 @check_misc() {
%1 = tail call i32 (...) @timeout_version()
%2 = icmp eq i32 %1, 538313254
br i1 %2, label %3, label %17
3: ; preds = %0
%4 = tail call i32 (...) @timeout_v_rel()
%5 = icmp eq i32 %4, 538313254
br i1 %5, label %6, label %17
6: ; preds = %3
%7 = tail call i32 (...) @timeout_v_api()
%8 = icmp eq i32 %7, 538313254
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = tail call i32 (...) @timeout_v_abi()
%11 = icmp eq i32 %10, 538313252
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = tail call i32 (...) @timeout_vendor()
%14 = tail call i64 @strcmp(i32 %13, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%15 = icmp ne i64 %14, 0
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %12, %9, %6, %3, %0
%18 = phi i32 [ 1, %0 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ %16, %12 ]
ret i32 %18
}