void WriteLine(j, s) int j;
int *s;
{
  int i;
  printw("%2d ", j);
  addch(s[0]);
  for (i = 2; i <= 19 - 1; i++) {
    addch(s[1]);
    addch(s[2]);
  }
  addch(s[1]);
  addch(s[3]);
  printw(" %-2d\n", j);
}


x86 assembly (clang, -O0):
<WriteLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0x0,%al
call   1040 <addch@plt>
movl   $0x2,-0x14(%rbp)
cmpl   $0x12,-0x14(%rbp)
jg     1188 <WriteLine+0x68>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%edi
mov    $0x0,%al
call   1040 <addch@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%edi
mov    $0x0,%al
call   1040 <addch@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1154 <WriteLine+0x34>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%edi
mov    $0x0,%al
call   1040 <addch@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%edi
mov    $0x0,%al
call   1040 <addch@plt>
mov    -0x4(%rbp),%esi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteLine>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xed1(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printw@plt>
mov    (%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x8(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0x4(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
mov    0xc(%rbx),%edi
xor    %eax,%eax
call   1040 <addch@plt>
lea    0xd55(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"%2d \00"
@.str.1 = [7 x i8] c" %-2d\0A\00"
define void @WriteLine(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i32 %0, i32* %3
store i32* %1, i32** %4
%6 = load i32, i32* %3
%7 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @printw to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32*, i32** %4
%9 = getelementptr inbounds i32, i32* %8, i64 0
%10 = load i32, i32* %9
%11 = call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %10)
store i32 2, i32* %5
br label %12
12: ; preds = %24, %2
%13 = load i32, i32* %5
%14 = icmp sle i32 %13, 18
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load i32*, i32** %4
%17 = getelementptr inbounds i32, i32* %16, i64 1
%18 = load i32, i32* %17
%19 = call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %18)
%20 = load i32*, i32** %4
%21 = getelementptr inbounds i32, i32* %20, i64 2
%22 = load i32, i32* %21
%23 = call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %22)
br label %24
24: ; preds = %15
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
store i32 %26, i32* %5
br label %12
27: ; preds = %12
%28 = load i32*, i32** %4
%29 = getelementptr inbounds i32, i32* %28, i64 1
%30 = load i32, i32* %29
%31 = call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %30)
%32 = load i32*, i32** %4
%33 = getelementptr inbounds i32, i32* %32, i64 3
%34 = load i32, i32* %33
%35 = call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %34)
%36 = load i32, i32* %3
%37 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @printw to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %36)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%2d \00"
@.str.1 = [7 x i8] c" %-2d\0A\00"
define void @WriteLine(i32 %0, i32* nocapture %1) {
%3 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @printw to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = load i32, i32* %1
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %4)
%6 = getelementptr inbounds i32, i32* %1, i64 1
%7 = getelementptr inbounds i32, i32* %1, i64 2
%8 = load i32, i32* %6
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %8)
%10 = load i32, i32* %7
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %10)
%12 = load i32, i32* %6
%13 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %12)
%14 = load i32, i32* %7
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %14)
%16 = load i32, i32* %6
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %16)
%18 = load i32, i32* %7
%19 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %18)
%20 = load i32, i32* %6
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %20)
%22 = load i32, i32* %7
%23 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %22)
%24 = load i32, i32* %6
%25 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %24)
%26 = load i32, i32* %7
%27 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %26)
%28 = load i32, i32* %6
%29 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %28)
%30 = load i32, i32* %7
%31 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %30)
%32 = load i32, i32* %6
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %32)
%34 = load i32, i32* %7
%35 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %34)
%36 = load i32, i32* %6
%37 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %36)
%38 = load i32, i32* %7
%39 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %38)
%40 = load i32, i32* %6
%41 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %40)
%42 = load i32, i32* %7
%43 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %42)
%44 = load i32, i32* %6
%45 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %44)
%46 = load i32, i32* %7
%47 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %46)
%48 = load i32, i32* %6
%49 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %48)
%50 = load i32, i32* %7
%51 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %50)
%52 = load i32, i32* %6
%53 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %52)
%54 = load i32, i32* %7
%55 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %54)
%56 = load i32, i32* %6
%57 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %56)
%58 = load i32, i32* %7
%59 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %58)
%60 = load i32, i32* %6
%61 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %60)
%62 = load i32, i32* %7
%63 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %62)
%64 = load i32, i32* %6
%65 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %64)
%66 = load i32, i32* %7
%67 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %66)
%68 = load i32, i32* %6
%69 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %68)
%70 = load i32, i32* %7
%71 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %70)
%72 = load i32, i32* %6
%73 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %72)
%74 = load i32, i32* %7
%75 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %74)
%76 = load i32, i32* %6
%77 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %76)
%78 = getelementptr inbounds i32, i32* %1, i64 3
%79 = load i32, i32* %78
%80 = tail call i32 (i32, ...) bitcast (i32 (...)* @addch to i32 (i32, ...)*)(i32 %79)
%81 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @printw to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %0)
ret void
}