#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*/ f(char *, int);
int /*<<< orphan*/ itoa(unsigned int, char *, int);
int /*<<< orphan*/ printbin(unsigned char, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
void println(int iteration, char op[], unsigned int multiplicand,
             unsigned char product) {
  char iter[11], multi[14], prod[9];
  itoa(iteration, iter, 10);
  itoa(multiplicand, multi, 10);
  putchar('|');
  f(iter, 12);
  putchar('|');
  f(op, 18);
  putchar('|');
  printbin(multiplicand, 0, 32);
  putchar('|');
  printf(" ");
  printbin(product, 0, 32);
  putchar('|');
  putchar('\n');
}


x86 assembly (clang, -O0):
<println>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %cl,%al
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %al,-0x15(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xa,%edx
call   1070 <itoa@plt>
mov    -0x14(%rbp),%edi
lea    -0x2e(%rbp),%rsi
mov    $0xa,%edx
call   1070 <itoa@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
lea    -0x20(%rbp),%rdi
mov    $0xc,%esi
call   1040 <f@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rdi
mov    $0x12,%esi
call   1040 <f@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
xor    %esi,%esi
mov    $0x20,%edx
movzbl %al,%edi
call   1060 <printbin@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
lea    0xe1a(%rip),%rdi
call   1050 <printf@plt>
xor    %esi,%esi
mov    $0x20,%edx
movzbl -0x15(%rbp),%edi
call   1060 <printbin@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %rsi,%rbx
lea    0xf(%rsp),%r15
mov    %r15,%rsi
mov    $0xa,%edx
call   1060 <itoa@plt>
lea    0x1a(%rsp),%rsi
mov    %ebp,%edi
mov    $0xa,%edx
call   1060 <itoa@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    $0xc,%esi
call   1040 <f@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
call   1040 <f@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
movzbl %bpl,%edi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <printbin@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    %r14d,%edi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <printbin@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
define void @println(i32 %0, i8* %1, i32 %2, i8 zeroext %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8
%9 = alloca [11 x i8]
%10 = alloca [14 x i8]
%11 = alloca [9 x i8]
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8 %3, i8* %8
%12 = load i32, i32* %5
%13 = getelementptr inbounds [11 x i8], [11 x i8]* %9, i64 0, i64 0
%14 = call i32 @itoa(i32 %12, i8* %13, i32 10)
%15 = load i32, i32* %7
%16 = getelementptr inbounds [14 x i8], [14 x i8]* %10, i64 0, i64 0
%17 = call i32 @itoa(i32 %15, i8* %16, i32 10)
%18 = call i32 @putchar(i8 signext 124)
%19 = getelementptr inbounds [11 x i8], [11 x i8]* %9, i64 0, i64 0
%20 = call i32 @f(i8* %19, i32 12)
%21 = call i32 @putchar(i8 signext 124)
%22 = load i8*, i8** %6
%23 = call i32 @f(i8* %22, i32 18)
%24 = call i32 @putchar(i8 signext 124)
%25 = load i32, i32* %7
%26 = trunc i32 %25 to i8
%27 = call i32 @printbin(i8 zeroext %26, i32 0, i32 32)
%28 = call i32 @putchar(i8 signext 124)
%29 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%30 = load i8, i8* %8
%31 = call i32 @printbin(i8 zeroext %30, i32 0, i32 32)
%32 = call i32 @putchar(i8 signext 124)
%33 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
define void @println(i32 %0, i8* %1, i32 %2, i8 zeroext %3) {
%5 = alloca [11 x i8]
%6 = alloca [14 x i8]
%7 = getelementptr inbounds [11 x i8], [11 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [14 x i8], [14 x i8]* %6, i64 0, i64 0
%9 = call i32 @itoa(i32 %0, i8* %7, i32 10)
%10 = call i32 @itoa(i32 %2, i8* %8, i32 10)
%11 = call i32 @putchar(i8 signext 124)
%12 = call i32 @f(i8* %7, i32 12)
%13 = call i32 @putchar(i8 signext 124)
%14 = call i32 @f(i8* %1, i32 18)
%15 = call i32 @putchar(i8 signext 124)
%16 = trunc i32 %2 to i8
%17 = call i32 @printbin(i8 zeroext %16, i32 0, i32 32)
%18 = call i32 @putchar(i8 signext 124)
%19 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 32)
%20 = call i32 @printbin(i8 zeroext %3, i32 0, i32 32)
%21 = call i32 @putchar(i8 signext 124)
%22 = call i32 @putchar(i8 signext 10)
ret void
}