#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*/ printf(char *, int);
int testBccImplied();
int testBcsImplied();
int testBeqImplied();
int testBmiImplied();
int testBneImplied();
int testBplImplied();
int testBvcImplied();
int testBvsImplied();
void testBranches() {
  printf("testBccImplied: %d\r\n", testBccImplied());
  printf("testBcsImplied: %d\r\n", testBcsImplied());
  printf("testBeqImplied: %d\r\n", testBeqImplied());
  printf("testBmiImplied: %d\r\n", testBmiImplied());
  printf("testBneImplied: %d\r\n", testBneImplied());
  printf("testBplImplied: %d\r\n", testBplImplied());
  printf("testBvcImplied: %d\r\n", testBvcImplied());
  printf("testBvsImplied: %d\r\n", testBvsImplied());
}


x86 assembly (clang, -O0):
<testBranches>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1080 <testBccImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   10a0 <testBcsImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   10b0 <testBeqImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1040 <testBmiImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1030 <testBneImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1090 <testBplImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1070 <testBvcImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1050 <testBvsImplied@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testBranches>:
push   %rax
xor    %eax,%eax
call   1080 <testBccImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   10a0 <testBcsImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   10b0 <testBeqImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1040 <testBmiImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1030 <testBneImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1090 <testBplImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <testBvcImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <testBvsImplied@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1060 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"testBccImplied: %d\0D\0A\00"
@.str.1 = [21 x i8] c"testBcsImplied: %d\0D\0A\00"
@.str.2 = [21 x i8] c"testBeqImplied: %d\0D\0A\00"
@.str.3 = [21 x i8] c"testBmiImplied: %d\0D\0A\00"
@.str.4 = [21 x i8] c"testBneImplied: %d\0D\0A\00"
@.str.5 = [21 x i8] c"testBplImplied: %d\0D\0A\00"
@.str.6 = [21 x i8] c"testBvcImplied: %d\0D\0A\00"
@.str.7 = [21 x i8] c"testBvsImplied: %d\0D\0A\00"
define void @testBranches() {
%1 = call i32 (...) @testBccImplied()
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @testBcsImplied()
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @testBeqImplied()
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @testBmiImplied()
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @testBneImplied()
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 (...) @testBplImplied()
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 (...) @testBvcImplied()
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = call i32 (...) @testBvsImplied()
%16 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %15)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"testBccImplied: %d\0D\0A\00"
@.str.1 = [21 x i8] c"testBcsImplied: %d\0D\0A\00"
@.str.2 = [21 x i8] c"testBeqImplied: %d\0D\0A\00"
@.str.3 = [21 x i8] c"testBmiImplied: %d\0D\0A\00"
@.str.4 = [21 x i8] c"testBneImplied: %d\0D\0A\00"
@.str.5 = [21 x i8] c"testBplImplied: %d\0D\0A\00"
@.str.6 = [21 x i8] c"testBvcImplied: %d\0D\0A\00"
@.str.7 = [21 x i8] c"testBvsImplied: %d\0D\0A\00"
define void @testBranches() {
%1 = tail call i32 (...) @testBccImplied()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @testBcsImplied()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @testBeqImplied()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 (...) @testBmiImplied()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 (...) @testBneImplied()
%10 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = tail call i32 (...) @testBplImplied()
%12 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 (...) @testBvcImplied()
%14 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = tail call i32 (...) @testBvsImplied()
%16 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %15)
ret void
}