#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
void display_finish_msg(void) {
  {
    printf("\n[bdtest] "
           "");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###########################");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###########################");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###                     ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###        #####        ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###       *  #  *       ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###     *    #    *     ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###    *     #     *    ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###    *     #     *    ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###     *    #    *     ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###       *  #  *       ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###        #####        ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###                     ###");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###########################");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "###########################");
    fflush(stdout);
  };
  {
    printf("\n[bdtest] "
           "");
    fflush(stdout);
  };
}


x86 assembly (clang, -O0):
<display_finish_msg>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xdce(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xd8e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xd74(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xd4f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d23(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_finish_msg>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea2(%rip),%r15
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xebe(%rip),%r13
mov    %r13,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %r13,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xecf(%rip),%r12
mov    %r12,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xede(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xeed(%rip),%rbp
mov    %rbp,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xefc(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %rbp,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %r12,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %r13,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
mov    %r13,%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
lea    0xda8(%rip),%rdi
call   1030 <printf@plt>
mov    (%r15),%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0A[bdtest] \00"
@stdout = global i32 0
@.str.1 = [38 x i8] c"\0A[bdtest] ###########################\00"
@.str.2 = [38 x i8] c"\0A[bdtest] ### ###\00"
@.str.3 = [38 x i8] c"\0A[bdtest] ### ##### ###\00"
@.str.4 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
@.str.5 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
@.str.6 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
define void @display_finish_msg() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 @fflush(i32 %2)
%4 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = call i32 @fflush(i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 @fflush(i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = call i32 @fflush(i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 @fflush(i32 %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = call i32 @fflush(i32 %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%23 = load i32, i32* @stdout
%24 = call i32 @fflush(i32 %23)
%25 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 @fflush(i32 %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%29 = load i32, i32* @stdout
%30 = call i32 @fflush(i32 %29)
%31 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = call i32 @fflush(i32 %32)
%34 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stdout
%36 = call i32 @fflush(i32 %35)
%37 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%38 = load i32, i32* @stdout
%39 = call i32 @fflush(i32 %38)
%40 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%41 = load i32, i32* @stdout
%42 = call i32 @fflush(i32 %41)
%43 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%44 = load i32, i32* @stdout
%45 = call i32 @fflush(i32 %44)
%46 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%47 = load i32, i32* @stdout
%48 = call i32 @fflush(i32 %47)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"\0A[bdtest] \00"
@stdout = global i32 0
@.str.1 = [38 x i8] c"\0A[bdtest] ###########################\00"
@.str.2 = [38 x i8] c"\0A[bdtest] ### ###\00"
@.str.3 = [38 x i8] c"\0A[bdtest] ### ##### ###\00"
@.str.4 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
@.str.5 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
@.str.6 = [38 x i8] c"\0A[bdtest] ### * # * ###\00"
define void @display_finish_msg() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 @fflush(i32 %2)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 @fflush(i32 %5)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = tail call i32 @fflush(i32 %8)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 @fflush(i32 %11)
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 @fflush(i32 %14)
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = tail call i32 @fflush(i32 %17)
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 @fflush(i32 %20)
%22 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%23 = load i32, i32* @stdout
%24 = tail call i32 @fflush(i32 %23)
%25 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = tail call i32 @fflush(i32 %26)
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%29 = load i32, i32* @stdout
%30 = tail call i32 @fflush(i32 %29)
%31 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = tail call i32 @fflush(i32 %32)
%34 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stdout
%36 = tail call i32 @fflush(i32 %35)
%37 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%38 = load i32, i32* @stdout
%39 = tail call i32 @fflush(i32 %38)
%40 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%41 = load i32, i32* @stdout
%42 = tail call i32 @fflush(i32 %41)
%43 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%44 = load i32, i32* @stdout
%45 = tail call i32 @fflush(i32 %44)
%46 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%47 = load i32, i32* @stdout
%48 = tail call i32 @fflush(i32 %47)
ret void
}