#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*/ abort();
int bar(int);
int foo(int);
int main() {
  if (foo(43) != 172 || foo(1) != 4 || foo(2) != 12)
    abort();
  if (bar(43) != 175 || bar(1) != 7 || bar(2) != 11)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2b,%edi
call   1050 <foo@plt>
cmp    $0xac,%eax
jne    117a <main+0x4a>
mov    $0x1,%edi
call   1050 <foo@plt>
cmp    $0x4,%eax
jne    117a <main+0x4a>
mov    $0x2,%edi
call   1050 <foo@plt>
cmp    $0xc,%eax
je     1181 <main+0x51>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x2b,%edi
call   1040 <bar@plt>
cmp    $0xaf,%eax
jne    11bc <main+0x8c>
mov    $0x1,%edi
call   1040 <bar@plt>
cmp    $0x7,%eax
jne    11bc <main+0x8c>
mov    $0x2,%edi
call   1040 <bar@plt>
cmp    $0xb,%eax
je     11c3 <main+0x93>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2b,%edi
call   1050 <foo@plt>
cmp    $0xac,%eax
jne    1193 <main+0x63>
mov    $0x1,%edi
call   1050 <foo@plt>
cmp    $0x4,%eax
jne    1193 <main+0x63>
mov    $0x2,%edi
call   1050 <foo@plt>
cmp    $0xc,%eax
jne    1193 <main+0x63>
mov    $0x2b,%edi
call   1040 <bar@plt>
cmp    $0xaf,%eax
jne    1193 <main+0x63>
mov    $0x1,%edi
call   1040 <bar@plt>
cmp    $0x7,%eax
jne    1193 <main+0x63>
mov    $0x2,%edi
call   1040 <bar@plt>
cmp    $0xb,%eax
jne    1193 <main+0x63>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @foo(i32 43)
%3 = icmp ne i32 %2, 172
br i1 %3, label %10, label %4
4: ; preds = %0
%5 = call i32 @foo(i32 1)
%6 = icmp ne i32 %5, 4
br i1 %6, label %10, label %7
7: ; preds = %4
%8 = call i32 @foo(i32 2)
%9 = icmp ne i32 %8, 12
br i1 %9, label %10, label %12
10: ; preds = %7, %4, %0
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %7
%13 = call i32 @bar(i32 43)
%14 = icmp ne i32 %13, 175
br i1 %14, label %21, label %15
15: ; preds = %12
%16 = call i32 @bar(i32 1)
%17 = icmp ne i32 %16, 7
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = call i32 @bar(i32 2)
%20 = icmp ne i32 %19, 11
br i1 %20, label %21, label %23
21: ; preds = %18, %15, %12
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %18
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @foo(i32 43)
%2 = icmp eq i32 %1, 172
br i1 %2, label %3, label %9
3: ; preds = %0
%4 = tail call i32 @foo(i32 1)
%5 = icmp eq i32 %4, 4
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = tail call i32 @foo(i32 2)
%8 = icmp eq i32 %7, 12
br i1 %8, label %11, label %9
9: ; preds = %6, %3, %0
%10 = tail call i32 (...) @abort()
unreachable
11: ; preds = %6
%12 = tail call i32 @bar(i32 43)
%13 = icmp eq i32 %12, 175
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = tail call i32 @bar(i32 1)
%16 = icmp eq i32 %15, 7
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = tail call i32 @bar(i32 2)
%19 = icmp eq i32 %18, 11
br i1 %19, label %22, label %20
20: ; preds = %17, %14, %11
%21 = tail call i32 (...) @abort()
unreachable
22: ; preds = %17
ret i32 0
}