#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 /*<<< orphan*/ FILE;

/* Variables and functions */
int GetTextSize(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
float M_PI;
int /*<<< orphan*/ SetTextAlpha(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int,
                                int);
int /*<<< orphan*/ SetTextColor(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int,
                                int, int, int);
int /*<<< orphan*/ SetTextSize(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int,
                               int);
int abs(int);
int /*<<< orphan*/ printf(char *, ...);
int sin(float);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ usleep(int);
void TextTest(FILE *p_cmd, FILE *p_res, int i_overlay) {
  printf("Sweeping (text) alpha...");
  for (int i_alpha = 0xFF; i_alpha >= -0xFF; i_alpha -= 8) {
    SetTextAlpha(p_cmd, p_res, i_overlay, abs(i_alpha));
    usleep(20000);
  }
  SetTextAlpha(p_cmd, p_res, i_overlay, 255);
  printf(" done\n");
  printf("Sweeping colors...");
  for (int i_red = 0xFF; i_red >= 0x00; i_red -= 8) {
    SetTextColor(p_cmd, p_res, i_overlay, i_red, 0xFF, 0xFF);
    usleep(20000);
  }
  for (int i_green = 0xFF; i_green >= 0x00; i_green -= 8) {
    SetTextColor(p_cmd, p_res, i_overlay, 0x00, i_green, 0xFF);
    usleep(20000);
  }
  for (int i_blue = 0xFF; i_blue >= 0x00; i_blue -= 8) {
    SetTextColor(p_cmd, p_res, i_overlay, 0x00, 0x00, i_blue);
    usleep(20000);
  }
  SetTextColor(p_cmd, p_res, i_overlay, 0x00, 0x00, 0x00);
  printf(" done\n");
  printf("Getting size...");
  int i_basesize = GetTextSize(p_cmd, p_res, i_overlay);
  printf(" done. Size is %d\n", i_basesize);
  printf("Sweeping size...");
  for (float f_theta = 0; f_theta <= M_PI; f_theta += M_PI / 128.0) {
    SetTextSize(p_cmd, p_res, i_overlay, i_basesize * (1 + 3 * sin(f_theta)));
    usleep(20000);
  }
  SetTextSize(p_cmd, p_res, i_overlay, i_basesize);
  printf(" done\n");
  sleep(5);
}


x86 assembly (clang, -O0):
<TextTest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xff,-0x18(%rbp)
cmpl   $0xffffff01,-0x18(%rbp)
jl     120d <TextTest+0x7d>
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%edi
call   1040 <abs@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%edx
mov    %eax,%ecx
call   1090 <SetTextAlpha@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
mov    -0x18(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x18(%rbp)
jmp    11b8 <TextTest+0x28>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0xff,%ecx
call   1090 <SetTextAlpha@plt>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xff,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     1283 <TextTest+0xf3>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    $0xff,%r9d
mov    %r9d,%r8d
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
mov    -0x1c(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x1c(%rbp)
jmp    1245 <TextTest+0xb5>
movl   $0xff,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     12c8 <TextTest+0x138>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%r8d
xor    %ecx,%ecx
mov    $0xff,%r9d
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
mov    -0x20(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x20(%rbp)
jmp    128a <TextTest+0xfa>
movl   $0xff,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     130b <TextTest+0x17b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x24(%rbp),%r9d
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
mov    -0x24(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x24(%rbp)
jmp    12cf <TextTest+0x13f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %r9d,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <SetTextColor@plt>
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <GetTextSize@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm1
mov    0x2c62(%rip),%rax
movss  (%rax),%xmm0
ucomiss %xmm1,%xmm0
jb     1415 <TextTest+0x285>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x5c(%rbp)
movss  -0x2c(%rbp),%xmm0
call   1070 <sin@plt>
mov    -0x5c(%rbp),%ecx
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x44(%rbp),%edx
imul   $0x3,%eax,%eax
add    $0x1,%eax
imul   %eax,%ecx
call   1060 <SetTextSize@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
mov    0x2c02(%rip),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc0a(%rip),%xmm0
divsd  %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
jmp    137a <TextTest+0x1ea>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1060 <SetTextSize@plt>
lea    0xbf2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x5,%edi
call   10a0 <sleep@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TextTest>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %edx,%r14d
mov    %rsi,%r12
mov    %rdi,%rbp
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x107,%ebx
nopl   0x0(%rax,%rax,1)
add    $0xfffffff8,%ebx
mov    %ebx,%ecx
neg    %ecx
cmovs  %ebx,%ecx
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
call   1090 <SetTextAlpha@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
cmp    $0xffffff08,%ebx
jg     11c0 <TextTest+0x30>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
mov    $0xff,%ecx
call   1090 <SetTextAlpha@plt>
lea    0xe64(%rip),%rdi
call   1040 <puts@plt>
lea    0xe11(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x107,%ebx
nopl   0x0(%rax)
add    $0xfffffff8,%ebx
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
mov    %ebx,%ecx
mov    $0xff,%r8d
mov    $0xff,%r9d
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
cmp    $0x7,%ebx
ja     1220 <TextTest+0x90>
mov    $0x107,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0xfffffff8,%ebx
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
mov    %ebx,%r8d
mov    $0xff,%r9d
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
cmp    $0x7,%ebx
ja     1260 <TextTest+0xd0>
mov    $0x107,%ebx
add    $0xfffffff8,%ebx
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    %ebx,%r9d
call   1030 <SetTextColor@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
cmp    $0x7,%ebx
ja     1290 <TextTest+0x100>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <SetTextColor@plt>
lea    0xd93(%rip),%rdi
call   1040 <puts@plt>
lea    0xd53(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
call   1080 <GetTextSize@plt>
mov    %eax,%r15d
lea    0xd44(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd47(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cca(%rip),%rbx
movss  (%rbx),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jb     138d <TextTest+0x1fd>
nopw   0x0(%rax,%rax,1)
movss  %xmm0,0xc(%rsp)
call   1070 <sin@plt>
lea    (%rax,%rax,2),%ecx
add    $0x1,%ecx
imul   %r15d,%ecx
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
call   1060 <SetTextSize@plt>
mov    $0x4e20,%edi
call   10b0 <usleep@plt>
movss  (%rbx),%xmm3
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
mulsd  0xc90(%rip),%xmm1
movss  0xc(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm0,%xmm0
cvtsd2ss %xmm2,%xmm0
ucomiss %xmm0,%xmm3
jae    1330 <TextTest+0x1a0>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
call   1060 <SetTextSize@plt>
lea    0xcc3(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10a0 <sleep@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Sweeping (text) alpha...\00"
@.str.1 = [7 x i8] c" done\0A\00"
@.str.2 = [19 x i8] c"Sweeping colors...\00"
@.str.3 = [16 x i8] c"Getting size...\00"
@.str.4 = [19 x i8] c" done. Size is %d\0A\00"
@.str.5 = [17 x i8] c"Sweeping size...\00"
@M_PI = global float 0.000000e+00
define void @TextTest(i32* %0, i32* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32 %2, i32* %6
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 255, i32* %7
br label %14
14: ; preds = %25, %3
%15 = load i32, i32* %7
%16 = icmp sge i32 %15, -255
br i1 %16, label %17, label %28
17: ; preds = %14
%18 = load i32*, i32** %4
%19 = load i32*, i32** %5
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = call i32 @abs(i32 %21)
%23 = call i32 @SetTextAlpha(i32* %18, i32* %19, i32 %20, i32 %22)
%24 = call i32 @usleep(i32 20000)
br label %25
25: ; preds = %17
%26 = load i32, i32* %7
%27 = sub nsw i32 %26, 8
store i32 %27, i32* %7
br label %14
28: ; preds = %14
%29 = load i32*, i32** %4
%30 = load i32*, i32** %5
%31 = load i32, i32* %6
%32 = call i32 @SetTextAlpha(i32* %29, i32* %30, i32 %31, i32 255)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
store i32 255, i32* %8
br label %35
35: ; preds = %45, %28
%36 = load i32, i32* %8
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = load i32*, i32** %4
%40 = load i32*, i32** %5
%41 = load i32, i32* %6
%42 = load i32, i32* %8
%43 = call i32 @SetTextColor(i32* %39, i32* %40, i32 %41, i32 %42, i32 255, i32 255)
%44 = call i32 @usleep(i32 20000)
br label %45
45: ; preds = %38
%46 = load i32, i32* %8
%47 = sub nsw i32 %46, 8
store i32 %47, i32* %8
br label %35
48: ; preds = %35
store i32 255, i32* %9
br label %49
49: ; preds = %59, %48
%50 = load i32, i32* %9
%51 = icmp sge i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = load i32*, i32** %4
%54 = load i32*, i32** %5
%55 = load i32, i32* %6
%56 = load i32, i32* %9
%57 = call i32 @SetTextColor(i32* %53, i32* %54, i32 %55, i32 0, i32 %56, i32 255)
%58 = call i32 @usleep(i32 20000)
br label %59
59: ; preds = %52
%60 = load i32, i32* %9
%61 = sub nsw i32 %60, 8
store i32 %61, i32* %9
br label %49
62: ; preds = %49
store i32 255, i32* %10
br label %63
63: ; preds = %73, %62
%64 = load i32, i32* %10
%65 = icmp sge i32 %64, 0
br i1 %65, label %66, label %76
66: ; preds = %63
%67 = load i32*, i32** %4
%68 = load i32*, i32** %5
%69 = load i32, i32* %6
%70 = load i32, i32* %10
%71 = call i32 @SetTextColor(i32* %67, i32* %68, i32 %69, i32 0, i32 0, i32 %70)
%72 = call i32 @usleep(i32 20000)
br label %73
73: ; preds = %66
%74 = load i32, i32* %10
%75 = sub nsw i32 %74, 8
store i32 %75, i32* %10
br label %63
76: ; preds = %63
%77 = load i32*, i32** %4
%78 = load i32*, i32** %5
%79 = load i32, i32* %6
%80 = call i32 @SetTextColor(i32* %77, i32* %78, i32 %79, i32 0, i32 0, i32 0)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%83 = load i32*, i32** %4
%84 = load i32*, i32** %5
%85 = load i32, i32* %6
%86 = call i32 @GetTextSize(i32* %83, i32* %84, i32 %85)
store i32 %86, i32* %11
%87 = load i32, i32* %11
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
store float 0.000000e+00, float* %12
br label %90
90: ; preds = %106, %76
%91 = load float, float* %12
%92 = load float, float* @M_PI
%93 = fcmp ole float %91, %92
br i1 %93, label %94, label %114
94: ; preds = %90
%95 = load i32*, i32** %4
%96 = load i32*, i32** %5
%97 = load i32, i32* %6
%98 = load i32, i32* %11
%99 = load float, float* %12
%100 = call i32 @sin(float %99)
%101 = mul nsw i32 3, %100
%102 = add nsw i32 1, %101
%103 = mul nsw i32 %98, %102
%104 = call i32 @SetTextSize(i32* %95, i32* %96, i32 %97, i32 %103)
%105 = call i32 @usleep(i32 20000)
br label %106
106: ; preds = %94
%107 = load float, float* @M_PI
%108 = fpext float %107 to double
%109 = fdiv double %108, 1.280000e+02
%110 = load float, float* %12
%111 = fpext float %110 to double
%112 = fadd double %111, %109
%113 = fptrunc double %112 to float
store float %113, float* %12
br label %90
114: ; preds = %90
%115 = load i32*, i32** %4
%116 = load i32*, i32** %5
%117 = load i32, i32* %6
%118 = load i32, i32* %11
%119 = call i32 @SetTextSize(i32* %115, i32* %116, i32 %117, i32 %118)
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%121 = call i32 @sleep(i32 5)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"Sweeping (text) alpha...\00"
@.str.2 = [19 x i8] c"Sweeping colors...\00"
@.str.3 = [16 x i8] c"Getting size...\00"
@.str.4 = [19 x i8] c" done. Size is %d\0A\00"
@.str.5 = [17 x i8] c"Sweeping size...\00"
@M_PI = global float 0.000000e+00
@str.7 = [6 x i8] c" done\00"
define void @TextTest(i32* %0, i32* %1, i32 %2) {
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %9
5: ; preds = %9
%6 = tail call i32 @SetTextAlpha(i32* %0, i32* %1, i32 %2, i32 255)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.7, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %16
9: ; preds = %3, %9
%10 = phi i32 [ 255, %3 ], [ %14, %9 ]
%11 = tail call i32 @llvm.abs.i32(i32 %10, i1 true)
%12 = tail call i32 @SetTextAlpha(i32* %0, i32* %1, i32 %2, i32 %11)
%13 = tail call i32 @usleep(i32 20000)
%14 = add nsw i32 %10, -8
%15 = icmp sgt i32 %10, -248
br i1 %15, label %9, label %5
16: ; preds = %5, %16
%17 = phi i32 [ 255, %5 ], [ %20, %16 ]
%18 = tail call i32 @SetTextColor(i32* %0, i32* %1, i32 %2, i32 %17, i32 255, i32 255)
%19 = tail call i32 @usleep(i32 20000)
%20 = add nsw i32 %17, -8
%21 = icmp ugt i32 %17, 7
br i1 %21, label %16, label %22
22: ; preds = %16, %22
%23 = phi i32 [ %26, %22 ], [ 255, %16 ]
%24 = tail call i32 @SetTextColor(i32* %0, i32* %1, i32 %2, i32 0, i32 %23, i32 255)
%25 = tail call i32 @usleep(i32 20000)
%26 = add nsw i32 %23, -8
%27 = icmp ugt i32 %23, 7
br i1 %27, label %22, label %37
28: ; preds = %37
%29 = tail call i32 @SetTextColor(i32* %0, i32* %1, i32 %2, i32 0, i32 0, i32 0)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.7, i64 0, i64 0))
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%32 = tail call i32 @GetTextSize(i32* %0, i32* %1, i32 %2)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%35 = load float, float* @M_PI
%36 = fcmp ult float %35, 0.000000e+00
br i1 %36, label %43, label %47
37: ; preds = %22, %37
%38 = phi i32 [ %41, %37 ], [ 255, %22 ]
%39 = tail call i32 @SetTextColor(i32* %0, i32* %1, i32 %2, i32 0, i32 0, i32 %38)
%40 = tail call i32 @usleep(i32 20000)
%41 = add nsw i32 %38, -8
%42 = icmp ugt i32 %38, 7
br i1 %42, label %37, label %28
43: ; preds = %47, %28
%44 = tail call i32 @SetTextSize(i32* %0, i32* %1, i32 %2, i32 %32)
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.7, i64 0, i64 0))
%46 = tail call i32 @sleep(i32 5)
ret void
47: ; preds = %28, %47
%48 = phi float [ %60, %47 ], [ 0.000000e+00, %28 ]
%49 = tail call i32 @sin(float %48)
%50 = mul nsw i32 %49, 3
%51 = add nsw i32 %50, 1
%52 = mul nsw i32 %51, %32
%53 = tail call i32 @SetTextSize(i32* %0, i32* %1, i32 %2, i32 %52)
%54 = tail call i32 @usleep(i32 20000)
%55 = load float, float* @M_PI
%56 = fpext float %55 to double
%57 = fmul double %56, 7.812500e-03
%58 = fpext float %48 to double
%59 = fadd double %57, %58
%60 = fptrunc double %59 to float
%61 = fcmp ult float %55, %60
br i1 %61, label %43, label %47
}