#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 */
typedef scalar_t__ end;

/* Variables and functions */
int _failed_test_case(int, int);
char *_get_color_lassert(int);
int _not_null_failed_test_case(int, int);
int /*<<< orphan*/ _start_test_lassert(int, int);
int _succeeded_test_case(int, int);
int /*<<< orphan*/ _test_AnimationList_lassert(char *, int *, char *,
                                               int /*<<< orphan*/,
                                               int /*<<< orphan*/, int *,
                                               int *);
int /*<<< orphan*/ printf(char *, char *, ...);
double time_used();
scalar_t__ using_time_asked();
void _call_test_AnimationList_lassert(void) {
  char s[512] = {0};
  char log[512];
  double start, end;
  int id = -1, i = 1, old = 0;
  printf("%s------------------------------"
         "------------------------------\n"
         "BEGIN OF SECTION %s %s\n",
         _get_color_lassert(4), "AnimationList", _get_color_lassert(0));
  _succeeded_test_case(0, 1);
  _not_null_failed_test_case(0, 1);
  _start_test_lassert(0, 0);
  _failed_test_case(0, 1);
  if (using_time_asked())
    start = time_used();
  while (i) {
    i = 0;
    _test_AnimationList_lassert(s, &id, log, 0, 0, &i, &old);
    old = i;
  }
  if (using_time_asked())
    end = time_used();
  if (id == 1)
    _failed_test_case(1, 0);
  else if (!id)
    _succeeded_test_case(1, 0);
  else if (id == 2)
    _not_null_failed_test_case(1, 0);
  _start_test_lassert(1, 1);
  printf("\n%sEND OF SECTION %s %s\n", _get_color_lassert(4), "AnimationList",
         _get_color_lassert(0));
  if (using_time_asked())
    printf("%sExecuting section took : %fs%s\n", _get_color_lassert(6),
           (double)((end) - (start)) / 1000, _get_color_lassert(0));
  if (_failed_test_case(0, 0))
    printf("%sFailed : %d test_case(s)%s\n", _get_color_lassert(1),
           _failed_test_case(0, 0), _get_color_lassert(0));
  if (_succeeded_test_case(0, 0))
    printf("%sSucceeded : %d test_case(s)%s\n", _get_color_lassert(2),
           _succeeded_test_case(0, 0), _get_color_lassert(0));
  if (_not_null_failed_test_case(0, 0))
    printf("%sStopped due to NULL pointer : %d test_case(s)%s\n",
           _get_color_lassert(3), _not_null_failed_test_case(0, 0),
           _get_color_lassert(0));
  if (!_succeeded_test_case(0, 0) && !_failed_test_case(0, 0))
    printf("%sEMPTY TEST SECTION%s\n", _get_color_lassert(6),
           _get_color_lassert(0));
  printf("%s------------------------------"
         "------------------------------%s\n\n",
         _get_color_lassert(4), _get_color_lassert(0));
}


x86 assembly (clang, -O0):
<_call_test_AnimationList_lassert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x490,%rsp
lea    -0x200(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1060 <memset@plt>
movl   $0xffffffff,-0x414(%rbp)
ff ff ff
movl   $0x1,-0x418(%rbp)
movl   $0x0,-0x41c(%rbp)
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x428(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x428(%rbp),%rsi
mov    %rax,%rcx
lea    0xe03(%rip),%rdi
lea    0xe53(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   10b0 <_succeeded_test_case@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   10a0 <_not_null_failed_test_case@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1080 <_start_test_lassert@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1090 <_failed_test_case@plt>
mov    $0x0,%al
call   1050 <using_time_asked@plt>
cmp    $0x0,%rax
je     1260 <_call_test_AnimationList_lassert+0xc0>
mov    $0x0,%al
call   1030 <time_used@plt>
movsd  %xmm0,-0x408(%rbp)
ff
jmp    1265 <_call_test_AnimationList_lassert+0xc5>
cmpl   $0x0,-0x418(%rbp)
je     12bf <_call_test_AnimationList_lassert+0x11f>
movl   $0x0,-0x418(%rbp)
lea    -0x200(%rbp),%rdi
lea    -0x400(%rbp),%rdx
lea    -0x414(%rbp),%rsi
xor    %r8d,%r8d
lea    -0x418(%rbp),%r9
lea    -0x41c(%rbp),%rax
mov    %r8d,%ecx
mov    %rax,(%rsp)
call   10c0 <_test_AnimationList_lassert@plt>
mov    -0x418(%rbp),%eax
mov    %eax,-0x41c(%rbp)
jmp    1265 <_call_test_AnimationList_lassert+0xc5>
mov    $0x0,%al
call   1050 <using_time_asked@plt>
cmp    $0x0,%rax
je     12df <_call_test_AnimationList_lassert+0x13f>
mov    $0x0,%al
call   1030 <time_used@plt>
movsd  %xmm0,-0x410(%rbp)
ff
cmpl   $0x1,-0x414(%rbp)
jne    12fd <_call_test_AnimationList_lassert+0x15d>
mov    $0x1,%edi
xor    %esi,%esi
call   1090 <_failed_test_case@plt>
jmp    133e <_call_test_AnimationList_lassert+0x19e>
cmpl   $0x0,-0x414(%rbp)
jne    131b <_call_test_AnimationList_lassert+0x17b>
mov    $0x1,%edi
xor    %esi,%esi
call   10b0 <_succeeded_test_case@plt>
jmp    1339 <_call_test_AnimationList_lassert+0x199>
cmpl   $0x2,-0x414(%rbp)
jne    1334 <_call_test_AnimationList_lassert+0x194>
mov    $0x1,%edi
xor    %esi,%esi
call   10a0 <_not_null_failed_test_case@plt>
jmp    1339 <_call_test_AnimationList_lassert+0x199>
jmp    133e <_call_test_AnimationList_lassert+0x19e>
mov    $0x1,%esi
mov    %esi,%edi
call   1080 <_start_test_lassert@plt>
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x430(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x430(%rbp),%rsi
mov    %rax,%rcx
lea    0xcfa(%rip),%rdi
lea    0xce5(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <using_time_asked@plt>
cmp    $0x0,%rax
je     13ee <_call_test_AnimationList_lassert+0x24e>
mov    $0x6,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x440(%rbp)
movsd  -0x410(%rbp),%xmm0
ff
subsd  -0x408(%rbp),%xmm0
ff
movsd  0xc45(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x438(%rbp)
ff
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x440(%rbp),%rsi
movsd  -0x438(%rbp),%xmm0
ff
mov    %rax,%rdx
lea    0xc9f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1090 <_failed_test_case@plt>
cmp    $0x0,%eax
je     1445 <_call_test_AnimationList_lassert+0x2a5>
mov    $0x1,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x450(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1090 <_failed_test_case@plt>
mov    %eax,-0x444(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x450(%rbp),%rsi
mov    -0x444(%rbp),%edx
mov    %rax,%rcx
lea    0xc6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %esi,%esi
mov    %esi,%edi
call   10b0 <_succeeded_test_case@plt>
cmp    $0x0,%eax
je     149c <_call_test_AnimationList_lassert+0x2fc>
mov    $0x2,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x460(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   10b0 <_succeeded_test_case@plt>
mov    %eax,-0x454(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x460(%rbp),%rsi
mov    -0x454(%rbp),%edx
mov    %rax,%rcx
lea    0xc31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %esi,%esi
mov    %esi,%edi
call   10a0 <_not_null_failed_test_case@plt>
cmp    $0x0,%eax
je     14f3 <_call_test_AnimationList_lassert+0x353>
mov    $0x3,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x470(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   10a0 <_not_null_failed_test_case@plt>
mov    %eax,-0x464(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x470(%rbp),%rsi
mov    -0x464(%rbp),%edx
mov    %rax,%rcx
lea    0xbfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %esi,%esi
mov    %esi,%edi
call   10b0 <_succeeded_test_case@plt>
cmp    $0x0,%eax
jne    1547 <_call_test_AnimationList_lassert+0x3a7>
xor    %esi,%esi
mov    %esi,%edi
call   1090 <_failed_test_case@plt>
cmp    $0x0,%eax
jne    1547 <_call_test_AnimationList_lassert+0x3a7>
mov    $0x6,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x478(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x478(%rbp),%rsi
mov    %rax,%rdx
lea    0xbda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,-0x480(%rbp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
mov    -0x480(%rbp),%rsi
mov    %rax,%rdx
lea    0xbc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x490,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_call_test_AnimationList_lassert>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x430,%rsp
lea    0x30(%rsp),%rdi
mov    $0x200,%edx
xor    %esi,%esi
call   1060 <memset@plt>
movl   $0xffffffff,0x1c(%rsp)
ff
movl   $0x0,0x14(%rsp)
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xe1d(%rip),%rdi
lea    0xe6d(%rip),%rdx
mov    %rbx,%rsi
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   10b0 <_succeeded_test_case@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   10a0 <_not_null_failed_test_case@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1080 <_start_test_lassert@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1090 <_failed_test_case@plt>
xor    %eax,%eax
call   1050 <using_time_asked@plt>
test   %rax,%rax
je     1247 <_call_test_AnimationList_lassert+0xa7>
xor    %eax,%eax
call   1030 <time_used@plt>
movsd  %xmm0,0x28(%rsp)
jmp    1247 <_call_test_AnimationList_lassert+0xa7>
lea    0x14(%rsp),%rbp
lea    0x30(%rsp),%r14
lea    0x1c(%rsp),%r15
lea    0x230(%rsp),%r12
lea    0x18(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movl   $0x0,0x18(%rsp)
mov    %rbp,(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    %rbx,%r9
call   10c0 <_test_AnimationList_lassert@plt>
mov    0x18(%rsp),%eax
mov    %eax,0x14(%rsp)
test   %eax,%eax
jne    1270 <_call_test_AnimationList_lassert+0xd0>
xor    %eax,%eax
call   1050 <using_time_asked@plt>
test   %rax,%rax
je     12b9 <_call_test_AnimationList_lassert+0x119>
xor    %eax,%eax
call   1030 <time_used@plt>
movsd  %xmm0,0x20(%rsp)
jmp    12b9 <_call_test_AnimationList_lassert+0x119>
mov    0x1c(%rsp),%eax
test   %eax,%eax
je     12d9 <_call_test_AnimationList_lassert+0x139>
cmp    $0x2,%eax
je     12e7 <_call_test_AnimationList_lassert+0x147>
cmp    $0x1,%eax
jne    12f3 <_call_test_AnimationList_lassert+0x153>
mov    $0x1,%edi
xor    %esi,%esi
call   1090 <_failed_test_case@plt>
jmp    12f3 <_call_test_AnimationList_lassert+0x153>
mov    $0x1,%edi
xor    %esi,%esi
call   10b0 <_succeeded_test_case@plt>
jmp    12f3 <_call_test_AnimationList_lassert+0x153>
mov    $0x1,%edi
xor    %esi,%esi
call   10a0 <_not_null_failed_test_case@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1080 <_start_test_lassert@plt>
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xd50(%rip),%rdi
lea    0xd3b(%rip),%rdx
mov    %rbx,%rsi
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <using_time_asked@plt>
test   %rax,%rax
je     1385 <_call_test_AnimationList_lassert+0x1e5>
mov    $0x6,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
movsd  0x20(%rsp),%xmm0
subsd  0x28(%rsp),%xmm0
divsd  0xca2(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xd14(%rip),%rdi
mov    %rbx,%rsi
movsd  0x20(%rsp),%xmm0
mov    %rax,%rdx
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1090 <_failed_test_case@plt>
test   %eax,%eax
je     13c7 <_call_test_AnimationList_lassert+0x227>
mov    $0x1,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
xor    %esi,%esi
call   1090 <_failed_test_case@plt>
mov    %eax,%ebp
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xcf0(%rip),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10b0 <_succeeded_test_case@plt>
test   %eax,%eax
je     1409 <_call_test_AnimationList_lassert+0x269>
mov    $0x2,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
xor    %esi,%esi
call   10b0 <_succeeded_test_case@plt>
mov    %eax,%ebp
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xccc(%rip),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10a0 <_not_null_failed_test_case@plt>
test   %eax,%eax
je     144b <_call_test_AnimationList_lassert+0x2ab>
mov    $0x3,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
xor    %esi,%esi
call   10a0 <_not_null_failed_test_case@plt>
mov    %eax,%ebp
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xcab(%rip),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10b0 <_succeeded_test_case@plt>
test   %eax,%eax
jne    148d <_call_test_AnimationList_lassert+0x2ed>
xor    %edi,%edi
xor    %esi,%esi
call   1090 <_failed_test_case@plt>
test   %eax,%eax
jne    148d <_call_test_AnimationList_lassert+0x2ed>
mov    $0x6,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xc9a(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x4,%edi
call   1070 <_get_color_lassert@plt>
mov    %rax,%rbx
xor    %edi,%edi
call   1070 <_get_color_lassert@plt>
lea    0xc8a(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x430,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [87 x i8] c"%s------------------------------------------------------------\0ABEGIN OF SECTION %s %s\0A\00"
@.str.1 = [14 x i8] c"AnimationList\00"
@.str.2 = [25 x i8] c"\0A%sEND OF SECTION %s %s\0A\00"
@.str.3 = [34 x i8] c"%sExecuting section took : %fs%s\0A\00"
@.str.4 = [30 x i8] c"%sFailed : %d test_case(s)%s\0A\00"
@.str.5 = [33 x i8] c"%sSucceeded : %d test_case(s)%s\0A\00"
@.str.6 = [51 x i8] c"%sStopped due to NULL pointer : %d test_case(s)%s\0A\00"
@.str.7 = [24 x i8] c"%sEMPTY TEST SECTION%s\0A\00"
@.str.8 = [67 x i8] c"%s------------------------------------------------------------%s\0A\0A\00"
define void @_call_test_AnimationList_lassert() {
%1 = alloca [512 x i8]
%2 = alloca [512 x i8]
%3 = alloca double
%4 = alloca double
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [512 x i8]* %1 to i8*
store i32 -1, i32* %5
store i32 1, i32* %6
store i32 0, i32* %7
%9 = call i8* @_get_color_lassert(i32 4)
%10 = call i8* @_get_color_lassert(i32 0)
%11 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%12 = call i32 @_succeeded_test_case(i32 0, i32 1)
%13 = call i32 @_not_null_failed_test_case(i32 0, i32 1)
%14 = call i32 @_start_test_lassert(i32 0, i32 0)
%15 = call i32 @_failed_test_case(i32 0, i32 1)
%16 = call i64 (...) @using_time_asked()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = call double (...) @time_used()
store double %19, double* %3
br label %20
20: ; preds = %18, %0
br label %21
21: ; preds = %24, %20
%22 = load i32, i32* %6
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %21
store i32 0, i32* %6
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%26 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%27 = call i32 @_test_AnimationList_lassert(i8* %25, i32* %5, i8* %26, i32 0, i32 0, i32* %6, i32* %7)
%28 = load i32, i32* %6
store i32 %28, i32* %7
br label %21
29: ; preds = %21
%30 = call i64 (...) @using_time_asked()
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call double (...) @time_used()
store double %33, double* %4
br label %34
34: ; preds = %32, %29
%35 = load i32, i32* %5
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @_failed_test_case(i32 1, i32 0)
br label %51
39: ; preds = %34
%40 = load i32, i32* %5
%41 = icmp ne i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = call i32 @_succeeded_test_case(i32 1, i32 0)
br label %50
44: ; preds = %39
%45 = load i32, i32* %5
%46 = icmp eq i32 %45, 2
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @_not_null_failed_test_case(i32 1, i32 0)
br label %49
49: ; preds = %47, %44
br label %50
50: ; preds = %49, %42
br label %51
51: ; preds = %50, %37
%52 = call i32 @_start_test_lassert(i32 1, i32 1)
%53 = call i8* @_get_color_lassert(i32 4)
%54 = call i8* @_get_color_lassert(i32 0)
%55 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %54)
%56 = call i64 (...) @using_time_asked()
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %66
58: ; preds = %51
%59 = call i8* @_get_color_lassert(i32 6)
%60 = load double, double* %4
%61 = load double, double* %3
%62 = fsub double %60, %61
%63 = fdiv double %62, 1.000000e+03
%64 = call i8* @_get_color_lassert(i32 0)
%65 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %59, double %63, i8* %64)
br label %66
66: ; preds = %58, %51
%67 = call i32 @_failed_test_case(i32 0, i32 0)
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = call i8* @_get_color_lassert(i32 1)
%71 = call i32 @_failed_test_case(i32 0, i32 0)
%72 = call i8* @_get_color_lassert(i32 0)
%73 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* %70, i32 %71, i8* %72)
br label %74
74: ; preds = %69, %66
%75 = call i32 @_succeeded_test_case(i32 0, i32 0)
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %74
%78 = call i8* @_get_color_lassert(i32 2)
%79 = call i32 @_succeeded_test_case(i32 0, i32 0)
%80 = call i8* @_get_color_lassert(i32 0)
%81 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %78, i32 %79, i8* %80)
br label %82
82: ; preds = %77, %74
%83 = call i32 @_not_null_failed_test_case(i32 0, i32 0)
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %82
%86 = call i8* @_get_color_lassert(i32 3)
%87 = call i32 @_not_null_failed_test_case(i32 0, i32 0)
%88 = call i8* @_get_color_lassert(i32 0)
%89 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i8* %86, i32 %87, i8* %88)
br label %90
90: ; preds = %85, %82
%91 = call i32 @_succeeded_test_case(i32 0, i32 0)
%92 = icmp ne i32 %91, 0
br i1 %92, label %100, label %93
93: ; preds = %90
%94 = call i32 @_failed_test_case(i32 0, i32 0)
%95 = icmp ne i32 %94, 0
br i1 %95, label %100, label %96
96: ; preds = %93
%97 = call i8* @_get_color_lassert(i32 6)
%98 = call i8* @_get_color_lassert(i32 0)
%99 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %97, i8* %98)
br label %100
100: ; preds = %96, %93, %90
%101 = call i8* @_get_color_lassert(i32 4)
%102 = call i8* @_get_color_lassert(i32 0)
%103 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.8, i64 0, i64 0), i8* %101, i8* %102)
ret void
}

LLVM IR (-O2):
@.str = [87 x i8] c"%s------------------------------------------------------------\0ABEGIN OF SECTION %s %s\0A\00"
@.str.1 = [14 x i8] c"AnimationList\00"
@.str.2 = [25 x i8] c"\0A%sEND OF SECTION %s %s\0A\00"
@.str.3 = [34 x i8] c"%sExecuting section took : %fs%s\0A\00"
@.str.4 = [30 x i8] c"%sFailed : %d test_case(s)%s\0A\00"
@.str.5 = [33 x i8] c"%sSucceeded : %d test_case(s)%s\0A\00"
@.str.6 = [51 x i8] c"%sStopped due to NULL pointer : %d test_case(s)%s\0A\00"
@.str.7 = [24 x i8] c"%sEMPTY TEST SECTION%s\0A\00"
@.str.8 = [67 x i8] c"%s------------------------------------------------------------%s\0A\0A\00"
define void @_call_test_AnimationList_lassert() {
%1 = alloca [512 x i8]
%2 = alloca [512 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%8 = bitcast i32* %3 to i8*
store i32 -1, i32* %3
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%11 = tail call i8* @_get_color_lassert(i32 4)
%12 = tail call i8* @_get_color_lassert(i32 0)
%13 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0), i8* %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = tail call i32 @_succeeded_test_case(i32 0, i32 1)
%15 = tail call i32 @_not_null_failed_test_case(i32 0, i32 1)
%16 = tail call i32 @_start_test_lassert(i32 0, i32 0)
%17 = tail call i32 @_failed_test_case(i32 0, i32 1)
%18 = tail call i64 (...) @using_time_asked()
%19 = icmp eq i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %0
%21 = tail call double (...) @time_used()
br label %22
22: ; preds = %0, %20
%23 = phi double [ %21, %20 ], [ undef, %0 ]
br label %24
24: ; preds = %22, %24
store i32 0, i32* %4
%25 = call i32 @_test_AnimationList_lassert(i8* %6, i32* %3, i8* %7, i32 0, i32 0, i32* %4, i32* %5)
%26 = load i32, i32* %4
store i32 %26, i32* %5
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %24
28: ; preds = %24
%29 = call i64 (...) @using_time_asked()
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = call double (...) @time_used()
br label %33
33: ; preds = %31, %28
%34 = phi double [ %32, %31 ], [ undef, %28 ]
%35 = load i32, i32* %3
switch i32 %35, label %42 [
i32 1, label %36
i32 0, label %38
i32 2, label %40
]
36: ; preds = %33
%37 = call i32 @_failed_test_case(i32 1, i32 0)
br label %42
38: ; preds = %33
%39 = call i32 @_succeeded_test_case(i32 1, i32 0)
br label %42
40: ; preds = %33
%41 = call i32 @_not_null_failed_test_case(i32 1, i32 0)
br label %42
42: ; preds = %33, %38, %40, %36
%43 = call i32 @_start_test_lassert(i32 1, i32 1)
%44 = call i8* @_get_color_lassert(i32 4)
%45 = call i8* @_get_color_lassert(i32 0)
%46 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %44, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %45)
%47 = call i64 (...) @using_time_asked()
%48 = icmp eq i64 %47, 0
br i1 %48, label %55, label %49
49: ; preds = %42
%50 = call i8* @_get_color_lassert(i32 6)
%51 = fsub double %34, %23
%52 = fdiv double %51, 1.000000e+03
%53 = call i8* @_get_color_lassert(i32 0)
%54 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %50, double %52, i8* %53)
br label %55
55: ; preds = %49, %42
%56 = call i32 @_failed_test_case(i32 0, i32 0)
%57 = icmp eq i32 %56, 0
br i1 %57, label %63, label %58
58: ; preds = %55
%59 = call i8* @_get_color_lassert(i32 1)
%60 = call i32 @_failed_test_case(i32 0, i32 0)
%61 = call i8* @_get_color_lassert(i32 0)
%62 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* %59, i32 %60, i8* %61)
br label %63
63: ; preds = %58, %55
%64 = call i32 @_succeeded_test_case(i32 0, i32 0)
%65 = icmp eq i32 %64, 0
br i1 %65, label %71, label %66
66: ; preds = %63
%67 = call i8* @_get_color_lassert(i32 2)
%68 = call i32 @_succeeded_test_case(i32 0, i32 0)
%69 = call i8* @_get_color_lassert(i32 0)
%70 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %67, i32 %68, i8* %69)
br label %71
71: ; preds = %66, %63
%72 = call i32 @_not_null_failed_test_case(i32 0, i32 0)
%73 = icmp eq i32 %72, 0
br i1 %73, label %79, label %74
74: ; preds = %71
%75 = call i8* @_get_color_lassert(i32 3)
%76 = call i32 @_not_null_failed_test_case(i32 0, i32 0)
%77 = call i8* @_get_color_lassert(i32 0)
%78 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i8* %75, i32 %76, i8* %77)
br label %79
79: ; preds = %74, %71
%80 = call i32 @_succeeded_test_case(i32 0, i32 0)
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %89
82: ; preds = %79
%83 = call i32 @_failed_test_case(i32 0, i32 0)
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %82
%86 = call i8* @_get_color_lassert(i32 6)
%87 = call i8* @_get_color_lassert(i32 0)
%88 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %86, i8* %87)
br label %89
89: ; preds = %85, %82, %79
%90 = call i8* @_get_color_lassert(i32 4)
%91 = call i8* @_get_color_lassert(i32 0)
%92 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.8, i64 0, i64 0), i8* %90, i8* %91)
ret void
}