#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 chrprint2(char *, int, int);
int /*<<< orphan*/ do_osc(char *, char, ...);
char *instr();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ println(char *);
int /*<<< orphan*/ restore_ttymodes();
int /*<<< orphan*/ set_tty_echo(int /*<<< orphan*/);
int /*<<< orphan*/ set_tty_raw(int);
scalar_t__ strchr(char *, char);
int /*<<< orphan*/ vt_move(int, int);
int tst_report_font(const char *the_title) {
  int n;
  char *report;
  int row = 1;
  int col = 1;
  set_tty_raw((1));
  set_tty_echo((0));
  vt_move(row, col);
  println("Current font:");
  ++row;
  vt_move(row, col + 6);
  do_osc("50;?%c", 0007);
  report = instr();
  row = chrprint2(report, row, col);
  ++row;
  vt_move(row, col);
  println("Absolute fonts:");
  ++row;
  for (n = 0; n < 7; ++n) {
    vt_move(row, col);
    do_osc("50;?%d%c", n, 0007);
    report = instr();
    if (strchr(report, ';') != 0) {
      printf("  %2d: ", n);
      row = chrprint2(report, row, col);
    }
  }
  ++row;
  vt_move(row, col);
  println("Relative fonts (bell may sound):");
  ++row;
  for (n = -7; n < 7; ++n) {
    vt_move(row, col);
    do_osc("50;?%c%d%c", n >= 0 ? '+' : '-', n >= 0 ? n : -n, 0007);
    report = instr();
    if (strchr(report, ';') != 0) {
      printf("  %2d: ", n);
      row = chrprint2(report, row, col);
    } else if (n >= 0) {
      break;
    }
  }
  restore_ttymodes();
  return 1;
}


x86 assembly (clang, -O0):
<tst_report_font>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
mov    $0x1,%edi
call   10a0 <set_tty_raw@plt>
xor    %edi,%edi
call   10b0 <set_tty_echo@plt>
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1070 <vt_move@plt>
lea    0xe23(%rip),%rdi
call   1090 <println@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
add    $0x6,%esi
call   1070 <vt_move@plt>
lea    0xe0e(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1080 <do_osc@plt>
mov    $0x0,%al
call   1060 <instr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   10c0 <chrprint2@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1070 <vt_move@plt>
lea    0xdd1(%rip),%rdi
call   1090 <println@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jge    12de <tst_report_font+0x13e>
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1070 <vt_move@plt>
mov    -0xc(%rbp),%eax
lea    0xdad(%rip),%rdi
mov    $0x7,%edx
movsbl %al,%esi
mov    $0x0,%al
call   1080 <do_osc@plt>
mov    $0x0,%al
call   1060 <instr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
je     12cb <tst_report_font+0x12b>
mov    -0xc(%rbp),%esi
lea    0xd7a(%rip),%rdi
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   10c0 <chrprint2@plt>
mov    %eax,-0x1c(%rbp)
jmp    12d0 <tst_report_font+0x130>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1259 <tst_report_font+0xb9>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1070 <vt_move@plt>
lea    0xd3d(%rip),%rdi
call   1090 <println@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0xfffffff9,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jge    13e2 <tst_report_font+0x242>
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1070 <vt_move@plt>
mov    -0xc(%rbp),%edx
mov    $0x2d,%eax
mov    $0x2b,%ecx
cmp    $0x0,%edx
cmovge %ecx,%eax
mov    %al,-0x21(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     134e <tst_report_font+0x1ae>
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    1356 <tst_report_font+0x1b6>
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x21(%rbp),%al
mov    -0x28(%rbp),%edx
lea    0xcf4(%rip),%rdi
mov    $0x7,%ecx
movsbl %al,%esi
mov    $0x0,%al
call   1080 <do_osc@plt>
mov    $0x0,%al
call   1060 <instr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
je     13bb <tst_report_font+0x21b>
mov    -0xc(%rbp),%esi
lea    0xc8f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   10c0 <chrprint2@plt>
mov    %eax,-0x1c(%rbp)
jmp    13cf <tst_report_font+0x22f>
cmpl   $0x0,-0xc(%rbp)
jl     13ca <tst_report_font+0x22a>
jmp    13e2 <tst_report_font+0x242>
jmp    13cf <tst_report_font+0x22f>
jmp    13d4 <tst_report_font+0x234>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    130e <tst_report_font+0x16e>
mov    $0x0,%al
call   1030 <restore_ttymodes@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tst_report_font>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1,%edi
call   10a0 <set_tty_raw@plt>
xor    %edi,%edi
call   10b0 <set_tty_echo@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xe2e(%rip),%rdi
call   1090 <println@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1070 <vt_move@plt>
lea    0xe21(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
lea    0x1(%r12),%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xdea(%rip),%rdi
call   1090 <println@plt>
add    $0x2,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xddd(%rip),%rdi
xor    %esi,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     1293 <tst_report_font+0xf3>
lea    0xdb5(%rip),%rdi
xor    %esi,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xd7e(%rip),%rdi
mov    $0x1,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     12f8 <tst_report_font+0x158>
lea    0xd53(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xd19(%rip),%rdi
mov    $0x2,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     135d <tst_report_font+0x1bd>
lea    0xcee(%rip),%rdi
mov    $0x2,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xcb4(%rip),%rdi
mov    $0x3,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     13c2 <tst_report_font+0x222>
lea    0xc89(%rip),%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xc4f(%rip),%rdi
mov    $0x4,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     1427 <tst_report_font+0x287>
lea    0xc24(%rip),%rdi
mov    $0x4,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xbea(%rip),%rdi
mov    $0x5,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     148c <tst_report_font+0x2ec>
lea    0xbbf(%rip),%rdi
mov    $0x5,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xb85(%rip),%rdi
mov    $0x7,%r13d
mov    $0x6,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     14f7 <tst_report_font+0x357>
lea    0xb54(%rip),%rdi
mov    $0x6,%esi
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
lea    0x1(%r12),%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
lea    0xb29(%rip),%rdi
call   1090 <println@plt>
add    $0x2,%r12d
mov    $0xfffffff9,%ebp
lea    0xb35(%rip),%r14
lea    0xb05(%rip),%r15
jmp    155a <tst_report_font+0x3ba>
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   10c0 <chrprint2@plt>
mov    %eax,%r12d
add    $0x1,%ebp
add    $0xffffffff,%r13d
cmp    $0xfffffff9,%r13d
je     15a9 <tst_report_font+0x409>
mov    %r12d,%edi
mov    $0x1,%esi
call   1070 <vt_move@plt>
test   %ebp,%ebp
mov    %r13d,%edx
cmovns %ebp,%edx
mov    %ebp,%eax
shr    $0x1f,%eax
lea    (%rax,%rax,1),%esi
add    $0x2b,%esi
mov    %r14,%rdi
mov    $0x7,%ecx
xor    %eax,%eax
call   1080 <do_osc@plt>
xor    %eax,%eax
call   1060 <instr@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
test   %rax,%rax
jne    1530 <tst_report_font+0x390>
test   %ebp,%ebp
js     154d <tst_report_font+0x3ad>
xor    %eax,%eax
call   1030 <restore_ttymodes@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Current font:\00"
@.str.1 = [7 x i8] c"50;?%c\00"
@.str.2 = [16 x i8] c"Absolute fonts:\00"
@.str.3 = [9 x i8] c"50;?%d%c\00"
@.str.4 = [8 x i8] c" %2d: \00"
@.str.5 = [33 x i8] c"Relative fonts (bell may sound):\00"
@.str.6 = [11 x i8] c"50;?%c%d%c\00"
define i32 @tst_report_font(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %2
store i32 1, i32* %5
store i32 1, i32* %6
%7 = call i32 @set_tty_raw(i32 1)
%8 = call i32 @set_tty_echo(i32 0)
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @vt_move(i32 %9, i32 %10)
%12 = call i32 @println(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %5
%14 = add nsw i32 %13, 1
store i32 %14, i32* %5
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 6
%18 = call i32 @vt_move(i32 %15, i32 %17)
%19 = call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext 7)
%20 = call i8* (...) @instr()
store i8* %20, i8** %4
%21 = load i8*, i8** %4
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = call i32 @chrprint2(i8* %21, i32 %22, i32 %23)
store i32 %24, i32* %5
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
store i32 %26, i32* %5
%27 = load i32, i32* %5
%28 = load i32, i32* %6
%29 = call i32 @vt_move(i32 %27, i32 %28)
%30 = call i32 @println(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%31 = load i32, i32* %5
%32 = add nsw i32 %31, 1
store i32 %32, i32* %5
store i32 0, i32* %3
br label %33
33: ; preds = %55, %1
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 7
br i1 %35, label %36, label %58
36: ; preds = %33
%37 = load i32, i32* %5
%38 = load i32, i32* %6
%39 = call i32 @vt_move(i32 %37, i32 %38)
%40 = load i32, i32* %3
%41 = trunc i32 %40 to i8
%42 = call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext %41, i32 7)
%43 = call i8* (...) @instr()
store i8* %43, i8** %4
%44 = load i8*, i8** %4
%45 = call i64 @strchr(i8* %44, i8 signext 59)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %36
%48 = load i32, i32* %3
%49 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = load i8*, i8** %4
%51 = load i32, i32* %5
%52 = load i32, i32* %6
%53 = call i32 @chrprint2(i8* %50, i32 %51, i32 %52)
store i32 %53, i32* %5
br label %54
54: ; preds = %47, %36
br label %55
55: ; preds = %54
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 1
store i32 %57, i32* %3
br label %33
58: ; preds = %33
%59 = load i32, i32* %5
%60 = add nsw i32 %59, 1
store i32 %60, i32* %5
%61 = load i32, i32* %5
%62 = load i32, i32* %6
%63 = call i32 @vt_move(i32 %61, i32 %62)
%64 = call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
store i32 %66, i32* %5
store i32 -7, i32* %3
br label %67
67: ; preds = %106, %58
%68 = load i32, i32* %3
%69 = icmp slt i32 %68, 7
br i1 %69, label %70, label %109
70: ; preds = %67
%71 = load i32, i32* %5
%72 = load i32, i32* %6
%73 = call i32 @vt_move(i32 %71, i32 %72)
%74 = load i32, i32* %3
%75 = icmp sge i32 %74, 0
%76 = zext i1 %75 to i64
%77 = select i1 %75, i32 43, i32 45
%78 = trunc i32 %77 to i8
%79 = load i32, i32* %3
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %70
%82 = load i32, i32* %3
br label %86
83: ; preds = %70
%84 = load i32, i32* %3
%85 = sub nsw i32 0, %84
br label %86
86: ; preds = %83, %81
%87 = phi i32 [ %82, %81 ], [ %85, %83 ]
%88 = call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8 signext %78, i32 %87, i32 7)
%89 = call i8* (...) @instr()
store i8* %89, i8** %4
%90 = load i8*, i8** %4
%91 = call i64 @strchr(i8* %90, i8 signext 59)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %100
93: ; preds = %86
%94 = load i32, i32* %3
%95 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %94)
%96 = load i8*, i8** %4
%97 = load i32, i32* %5
%98 = load i32, i32* %6
%99 = call i32 @chrprint2(i8* %96, i32 %97, i32 %98)
store i32 %99, i32* %5
br label %105
100: ; preds = %86
%101 = load i32, i32* %3
%102 = icmp sge i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %100
br label %109
104: ; preds = %100
br label %105
105: ; preds = %104, %93
br label %106
106: ; preds = %105
%107 = load i32, i32* %3
%108 = add nsw i32 %107, 1
store i32 %108, i32* %3
br label %67
109: ; preds = %103, %67
%110 = call i32 (...) @restore_ttymodes()
ret i32 1
}

LLVM IR (-O2):
@.str = [14 x i8] c"Current font:\00"
@.str.1 = [7 x i8] c"50;?%c\00"
@.str.2 = [16 x i8] c"Absolute fonts:\00"
@.str.3 = [9 x i8] c"50;?%d%c\00"
@.str.4 = [8 x i8] c" %2d: \00"
@.str.5 = [33 x i8] c"Relative fonts (bell may sound):\00"
@.str.6 = [11 x i8] c"50;?%c%d%c\00"
define i32 @tst_report_font(i8* nocapture readnone %0) {
%2 = tail call i32 @set_tty_raw(i32 1)
%3 = tail call i32 @set_tty_echo(i32 0)
%4 = tail call i32 @vt_move(i32 1, i32 1)
%5 = tail call i32 @println(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @vt_move(i32 2, i32 7)
%7 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext 7)
%8 = tail call i8* (...) @instr()
%9 = tail call i32 @chrprint2(i8* %8, i32 2, i32 1)
%10 = add nsw i32 %9, 1
%11 = tail call i32 @vt_move(i32 %10, i32 1)
%12 = tail call i32 @println(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%13 = add nsw i32 %9, 2
%14 = tail call i32 @vt_move(i32 %13, i32 1)
%15 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 0, i32 7)
%16 = tail call i8* (...) @instr()
%17 = tail call i64 @strchr(i8* %16, i8 signext 59)
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %1
%20 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 0)
%21 = tail call i32 @chrprint2(i8* %16, i32 %13, i32 1)
br label %22
22: ; preds = %1, %19
%23 = phi i32 [ %21, %19 ], [ %13, %1 ]
%24 = tail call i32 @vt_move(i32 %23, i32 1)
%25 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 1, i32 7)
%26 = tail call i8* (...) @instr()
%27 = tail call i64 @strchr(i8* %26, i8 signext 59)
%28 = icmp eq i64 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %22
%30 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 1)
%31 = tail call i32 @chrprint2(i8* %26, i32 %23, i32 1)
br label %32
32: ; preds = %29, %22
%33 = phi i32 [ %31, %29 ], [ %23, %22 ]
%34 = tail call i32 @vt_move(i32 %33, i32 1)
%35 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 2, i32 7)
%36 = tail call i8* (...) @instr()
%37 = tail call i64 @strchr(i8* %36, i8 signext 59)
%38 = icmp eq i64 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %32
%40 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 2)
%41 = tail call i32 @chrprint2(i8* %36, i32 %33, i32 1)
br label %42
42: ; preds = %39, %32
%43 = phi i32 [ %41, %39 ], [ %33, %32 ]
%44 = tail call i32 @vt_move(i32 %43, i32 1)
%45 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 3, i32 7)
%46 = tail call i8* (...) @instr()
%47 = tail call i64 @strchr(i8* %46, i8 signext 59)
%48 = icmp eq i64 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %42
%50 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 3)
%51 = tail call i32 @chrprint2(i8* %46, i32 %43, i32 1)
br label %52
52: ; preds = %49, %42
%53 = phi i32 [ %51, %49 ], [ %43, %42 ]
%54 = tail call i32 @vt_move(i32 %53, i32 1)
%55 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 4, i32 7)
%56 = tail call i8* (...) @instr()
%57 = tail call i64 @strchr(i8* %56, i8 signext 59)
%58 = icmp eq i64 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %52
%60 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 4)
%61 = tail call i32 @chrprint2(i8* %56, i32 %53, i32 1)
br label %62
62: ; preds = %59, %52
%63 = phi i32 [ %61, %59 ], [ %53, %52 ]
%64 = tail call i32 @vt_move(i32 %63, i32 1)
%65 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 5, i32 7)
%66 = tail call i8* (...) @instr()
%67 = tail call i64 @strchr(i8* %66, i8 signext 59)
%68 = icmp eq i64 %67, 0
br i1 %68, label %72, label %69
69: ; preds = %62
%70 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 5)
%71 = tail call i32 @chrprint2(i8* %66, i32 %63, i32 1)
br label %72
72: ; preds = %69, %62
%73 = phi i32 [ %71, %69 ], [ %63, %62 ]
%74 = tail call i32 @vt_move(i32 %73, i32 1)
%75 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 signext 6, i32 7)
%76 = tail call i8* (...) @instr()
%77 = tail call i64 @strchr(i8* %76, i8 signext 59)
%78 = icmp eq i64 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %72
%80 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 6)
%81 = tail call i32 @chrprint2(i8* %76, i32 %73, i32 1)
br label %82
82: ; preds = %79, %72
%83 = phi i32 [ %81, %79 ], [ %73, %72 ]
%84 = add nsw i32 %83, 1
%85 = tail call i32 @vt_move(i32 %84, i32 1)
%86 = tail call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%87 = add nsw i32 %83, 2
br label %88
88: ; preds = %82, %104
%89 = phi i32 [ -7, %82 ], [ %106, %104 ]
%90 = phi i32 [ %87, %82 ], [ %105, %104 ]
%91 = tail call i32 @vt_move(i32 %90, i32 1)
%92 = icmp sgt i32 %89, -1
%93 = select i1 %92, i8 43, i8 45
%94 = sub nsw i32 0, %89
%95 = select i1 %92, i32 %89, i32 %94
%96 = tail call i32 (i8*, i8, ...) @do_osc(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8 signext %93, i32 %95, i32 7)
%97 = tail call i8* (...) @instr()
%98 = tail call i64 @strchr(i8* %97, i8 signext 59)
%99 = icmp eq i64 %98, 0
br i1 %99, label %103, label %100
100: ; preds = %88
%101 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %89)
%102 = tail call i32 @chrprint2(i8* %97, i32 %90, i32 1)
br label %104
103: ; preds = %88
br i1 %92, label %108, label %104
104: ; preds = %100, %103
%105 = phi i32 [ %102, %100 ], [ %90, %103 ]
%106 = add nsw i32 %89, 1
%107 = icmp eq i32 %106, 7
br i1 %107, label %108, label %88
108: ; preds = %103, %104
%109 = tail call i32 (...) @restore_ttymodes()
ret i32 1
}