#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*/ move(int, int);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
void screenInfo() {
  move(4, 4);
  printw("Building grid      :");
  move(4, 51);
  printw("|");
  move(5, 4);
  printw("Smoothing grid     :");
  move(5, 51);
  printw("|");
  move(7, 4);
  printw("Statistics         :");
  move(9, 4);
  printw("Iterations         :");
  move(10, 4);
  printw("Propagating photons:");
  move(10, 51);
  printw("|");
  move(13, 4);
  printw("Ray-tracing model  :");
  move(13, 51);
  printw("|");
  move(4, 60);
  printw("|      Molecular data");
  move(5, 60);
  printw("|");
  move(6, 60);
  printw("|");
  move(7, 60);
  printw("|");
  move(8, 60);
  printw("|");
  move(9, 60);
  printw("|");
  move(10, 60);
  printw("|");
  move(11, 60);
  printw("|");
  move(12, 60);
  printw("|");
  move(13, 60);
  printw("|");
  move(14, 60);
  printw("|");
  refresh();
}


x86 assembly (clang, -O0):
<screenInfo>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%esi
mov    %esi,%edi
call   1050 <move@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x33,%esi
call   1050 <move@plt>
lea    0xeb3(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe9a(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x33,%esi
call   1050 <move@plt>
lea    0xe7d(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe79(%rip),%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe73(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe6d(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x33,%esi
call   1050 <move@plt>
lea    0xe11(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe4c(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x33,%esi
call   1050 <move@plt>
lea    0xddb(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xe2b(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xda5(%rip),%rdi
call   1030 <printw@plt>
mov    $0x6,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd8a(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd6f(%rip),%rdi
call   1030 <printw@plt>
mov    $0x8,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd54(%rip),%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd39(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd1e(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xd03(%rip),%rdi
call   1030 <printw@plt>
mov    $0xc,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xce8(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xccd(%rip),%rdi
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xcb2(%rip),%rdi
call   1030 <printw@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<screenInfo>:
push   %rbx
mov    $0x4,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x33,%esi
call   1050 <move@plt>
lea    0xeb3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe97(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x33,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe7a(%rip),%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe74(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe6e(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x33,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x4,%esi
call   1050 <move@plt>
lea    0xe51(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x33,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
lea    0xe34(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x6,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x8,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xc,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x3c,%esi
call   1050 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <refresh@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Building grid :\00"
@.str.1 = [2 x i8] c"|\00"
@.str.2 = [21 x i8] c"Smoothing grid :\00"
@.str.3 = [21 x i8] c"Statistics :\00"
@.str.4 = [21 x i8] c"Iterations :\00"
@.str.5 = [21 x i8] c"Propagating photons:\00"
@.str.6 = [21 x i8] c"Ray-tracing model :\00"
@.str.7 = [22 x i8] c"| Molecular data\00"
define void @screenInfo() {
%1 = call i32 @move(i32 4, i32 4)
%2 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @move(i32 4, i32 51)
%4 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @move(i32 5, i32 4)
%6 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @move(i32 5, i32 51)
%8 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @move(i32 7, i32 4)
%10 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @move(i32 9, i32 4)
%12 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @move(i32 10, i32 4)
%14 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @move(i32 10, i32 51)
%16 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @move(i32 13, i32 4)
%18 = call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 @move(i32 13, i32 51)
%20 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @move(i32 4, i32 60)
%22 = call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%23 = call i32 @move(i32 5, i32 60)
%24 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @move(i32 6, i32 60)
%26 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 @move(i32 7, i32 60)
%28 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 @move(i32 8, i32 60)
%30 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @move(i32 9, i32 60)
%32 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @move(i32 10, i32 60)
%34 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = call i32 @move(i32 11, i32 60)
%36 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = call i32 @move(i32 12, i32 60)
%38 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = call i32 @move(i32 13, i32 60)
%40 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 @move(i32 14, i32 60)
%42 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Building grid :\00"
@.str.1 = [2 x i8] c"|\00"
@.str.2 = [21 x i8] c"Smoothing grid :\00"
@.str.3 = [21 x i8] c"Statistics :\00"
@.str.4 = [21 x i8] c"Iterations :\00"
@.str.5 = [21 x i8] c"Propagating photons:\00"
@.str.6 = [21 x i8] c"Ray-tracing model :\00"
@.str.7 = [22 x i8] c"| Molecular data\00"
define void @screenInfo() {
%1 = tail call i32 @move(i32 4, i32 4)
%2 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @move(i32 4, i32 51)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @move(i32 5, i32 4)
%6 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @move(i32 5, i32 51)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @move(i32 7, i32 4)
%10 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @move(i32 9, i32 4)
%12 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @move(i32 10, i32 4)
%14 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%15 = tail call i32 @move(i32 10, i32 51)
%16 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @move(i32 13, i32 4)
%18 = tail call i32 @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%19 = tail call i32 @move(i32 13, i32 51)
%20 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = tail call i32 @move(i32 4, i32 60)
%22 = tail call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%23 = tail call i32 @move(i32 5, i32 60)
%24 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @move(i32 6, i32 60)
%26 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = tail call i32 @move(i32 7, i32 60)
%28 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = tail call i32 @move(i32 8, i32 60)
%30 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%31 = tail call i32 @move(i32 9, i32 60)
%32 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = tail call i32 @move(i32 10, i32 60)
%34 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = tail call i32 @move(i32 11, i32 60)
%36 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = tail call i32 @move(i32 12, i32 60)
%38 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = tail call i32 @move(i32 13, i32 60)
%40 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%41 = tail call i32 @move(i32 14, i32 60)
%42 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%43 = tail call i32 (...) @refresh()
ret void
}