#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 int uint8_t;

/* Variables and functions */
int /*<<< orphan*/ lcd_print_char(char);
int /*<<< orphan*/ lcd_send_command(int);
int /*<<< orphan*/ lcd_set_cursor(int, int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ usleep(int);
void tansition_graphics(void) {
  sleep(1);
  lcd_set_cursor(1, 1);
  lcd_send_command(0x01);
  for (uint8_t n = 0; n < 2; n++) {
    for (uint8_t i = 0; i < 16; i++) {
      lcd_print_char('*');
      usleep(75 * 1000);
    }
    lcd_set_cursor(2, 16);
    lcd_send_command(0x04);
  }
  lcd_set_cursor(1, 1);
  lcd_send_command(0x06);
  usleep(450 * 1000);
  lcd_send_command(0x01);
}


x86 assembly (clang, -O0):
<tansition_graphics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1050 <lcd_set_cursor@plt>
mov    $0x1,%edi
call   1030 <lcd_send_command@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    11e3 <tansition_graphics+0x93>
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    11bc <tansition_graphics+0x6c>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1190 <tansition_graphics+0x40>
mov    $0x2,%edi
mov    $0x10,%esi
call   1050 <lcd_set_cursor@plt>
mov    $0x4,%edi
call   1030 <lcd_send_command@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117f <tansition_graphics+0x2f>
mov    $0x1,%esi
mov    %esi,%edi
call   1050 <lcd_set_cursor@plt>
mov    $0x6,%edi
call   1030 <lcd_send_command@plt>
mov    $0x6ddd0,%edi
call   1070 <usleep@plt>
mov    $0x1,%edi
call   1030 <lcd_send_command@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tansition_graphics>:
push   %rax
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1050 <lcd_set_cursor@plt>
mov    $0x1,%edi
call   1030 <lcd_send_command@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2,%edi
mov    $0x10,%esi
call   1050 <lcd_set_cursor@plt>
mov    $0x4,%edi
call   1030 <lcd_send_command@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2a,%edi
call   1040 <lcd_print_char@plt>
mov    $0x124f8,%edi
call   1070 <usleep@plt>
mov    $0x2,%edi
mov    $0x10,%esi
call   1050 <lcd_set_cursor@plt>
mov    $0x4,%edi
call   1030 <lcd_send_command@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1050 <lcd_set_cursor@plt>
mov    $0x6,%edi
call   1030 <lcd_send_command@plt>
mov    $0x6ddd0,%edi
call   1070 <usleep@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <lcd_send_command@plt>

LLVM IR (-O0):
define void @tansition_graphics() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @sleep(i32 1)
%4 = call i32 @lcd_set_cursor(i32 1, i32 1)
%5 = call i32 @lcd_send_command(i32 1)
store i32 0, i32* %1
br label %6
6: ; preds = %22, %0
%7 = load i32, i32* %1
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %25
9: ; preds = %6
store i32 0, i32* %2
br label %10
10: ; preds = %16, %9
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 16
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = call i32 @lcd_print_char(i8 signext 42)
%15 = call i32 @usleep(i32 75000)
br label %16
16: ; preds = %13
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %10
19: ; preds = %10
%20 = call i32 @lcd_set_cursor(i32 2, i32 16)
%21 = call i32 @lcd_send_command(i32 4)
br label %22
22: ; preds = %19
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
br label %6
25: ; preds = %6
%26 = call i32 @lcd_set_cursor(i32 1, i32 1)
%27 = call i32 @lcd_send_command(i32 6)
%28 = call i32 @usleep(i32 450000)
%29 = call i32 @lcd_send_command(i32 1)
ret void
}

LLVM IR (-O2):
define void @tansition_graphics() {
%1 = tail call i32 @sleep(i32 1)
%2 = tail call i32 @lcd_set_cursor(i32 1, i32 1)
%3 = tail call i32 @lcd_send_command(i32 1)
%4 = tail call i32 @lcd_print_char(i8 signext 42)
%5 = tail call i32 @usleep(i32 75000)
%6 = tail call i32 @lcd_print_char(i8 signext 42)
%7 = tail call i32 @usleep(i32 75000)
%8 = tail call i32 @lcd_print_char(i8 signext 42)
%9 = tail call i32 @usleep(i32 75000)
%10 = tail call i32 @lcd_print_char(i8 signext 42)
%11 = tail call i32 @usleep(i32 75000)
%12 = tail call i32 @lcd_print_char(i8 signext 42)
%13 = tail call i32 @usleep(i32 75000)
%14 = tail call i32 @lcd_print_char(i8 signext 42)
%15 = tail call i32 @usleep(i32 75000)
%16 = tail call i32 @lcd_print_char(i8 signext 42)
%17 = tail call i32 @usleep(i32 75000)
%18 = tail call i32 @lcd_print_char(i8 signext 42)
%19 = tail call i32 @usleep(i32 75000)
%20 = tail call i32 @lcd_print_char(i8 signext 42)
%21 = tail call i32 @usleep(i32 75000)
%22 = tail call i32 @lcd_print_char(i8 signext 42)
%23 = tail call i32 @usleep(i32 75000)
%24 = tail call i32 @lcd_print_char(i8 signext 42)
%25 = tail call i32 @usleep(i32 75000)
%26 = tail call i32 @lcd_print_char(i8 signext 42)
%27 = tail call i32 @usleep(i32 75000)
%28 = tail call i32 @lcd_print_char(i8 signext 42)
%29 = tail call i32 @usleep(i32 75000)
%30 = tail call i32 @lcd_print_char(i8 signext 42)
%31 = tail call i32 @usleep(i32 75000)
%32 = tail call i32 @lcd_print_char(i8 signext 42)
%33 = tail call i32 @usleep(i32 75000)
%34 = tail call i32 @lcd_print_char(i8 signext 42)
%35 = tail call i32 @usleep(i32 75000)
%36 = tail call i32 @lcd_set_cursor(i32 2, i32 16)
%37 = tail call i32 @lcd_send_command(i32 4)
%38 = tail call i32 @lcd_print_char(i8 signext 42)
%39 = tail call i32 @usleep(i32 75000)
%40 = tail call i32 @lcd_print_char(i8 signext 42)
%41 = tail call i32 @usleep(i32 75000)
%42 = tail call i32 @lcd_print_char(i8 signext 42)
%43 = tail call i32 @usleep(i32 75000)
%44 = tail call i32 @lcd_print_char(i8 signext 42)
%45 = tail call i32 @usleep(i32 75000)
%46 = tail call i32 @lcd_print_char(i8 signext 42)
%47 = tail call i32 @usleep(i32 75000)
%48 = tail call i32 @lcd_print_char(i8 signext 42)
%49 = tail call i32 @usleep(i32 75000)
%50 = tail call i32 @lcd_print_char(i8 signext 42)
%51 = tail call i32 @usleep(i32 75000)
%52 = tail call i32 @lcd_print_char(i8 signext 42)
%53 = tail call i32 @usleep(i32 75000)
%54 = tail call i32 @lcd_print_char(i8 signext 42)
%55 = tail call i32 @usleep(i32 75000)
%56 = tail call i32 @lcd_print_char(i8 signext 42)
%57 = tail call i32 @usleep(i32 75000)
%58 = tail call i32 @lcd_print_char(i8 signext 42)
%59 = tail call i32 @usleep(i32 75000)
%60 = tail call i32 @lcd_print_char(i8 signext 42)
%61 = tail call i32 @usleep(i32 75000)
%62 = tail call i32 @lcd_print_char(i8 signext 42)
%63 = tail call i32 @usleep(i32 75000)
%64 = tail call i32 @lcd_print_char(i8 signext 42)
%65 = tail call i32 @usleep(i32 75000)
%66 = tail call i32 @lcd_print_char(i8 signext 42)
%67 = tail call i32 @usleep(i32 75000)
%68 = tail call i32 @lcd_print_char(i8 signext 42)
%69 = tail call i32 @usleep(i32 75000)
%70 = tail call i32 @lcd_set_cursor(i32 2, i32 16)
%71 = tail call i32 @lcd_send_command(i32 4)
%72 = tail call i32 @lcd_set_cursor(i32 1, i32 1)
%73 = tail call i32 @lcd_send_command(i32 6)
%74 = tail call i32 @usleep(i32 450000)
%75 = tail call i32 @lcd_send_command(i32 1)
ret void
}