#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*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_case_usage(void) {
  test_case_start("test_case_a");
  test_case_end();
  test_case_start("test_case_b");
  test_case_start("test_case_c");
  test_case_end();
  test_case_start("test_case_d");
  test_case_end();
  test_case_end();
}


x86 assembly (clang, -O0):
<test_case_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <test_case_start@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
lea    0xece(%rip),%rdi
call   1030 <test_case_start@plt>
lea    0xece(%rip),%rdi
call   1030 <test_case_start@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
lea    0xec7(%rip),%rdi
call   1030 <test_case_start@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_case_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <test_case_start@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
lea    0xed1(%rip),%rdi
call   1030 <test_case_start@plt>
lea    0xed1(%rip),%rdi
call   1030 <test_case_start@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
lea    0xeca(%rip),%rdi
call   1030 <test_case_start@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <test_case_end@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"test_case_a\00"
@.str.1 = [12 x i8] c"test_case_b\00"
@.str.2 = [12 x i8] c"test_case_c\00"
@.str.3 = [12 x i8] c"test_case_d\00"
define void @test_case_usage() {
%1 = call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @test_case_end()
%3 = call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (...) @test_case_end()
%6 = call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (...) @test_case_end()
%8 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"test_case_a\00"
@.str.1 = [12 x i8] c"test_case_b\00"
@.str.2 = [12 x i8] c"test_case_c\00"
@.str.3 = [12 x i8] c"test_case_d\00"
define void @test_case_usage() {
%1 = tail call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_case_end()
%3 = tail call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (...) @test_case_end()
%6 = tail call i32 @test_case_start(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (...) @test_case_end()
%8 = tail call i32 (...) @test_case_end()
ret void
}