#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*/ printf(char *, ...);
void asmprolog() {
  printf("	.text\n");
  printf("\n#convert eax to ascii in IOBUF and append newline\n");
  printf("# RETURN: eax contains length of string (including newline)\n");
  printf("_convertToAscii:\n");
  printf("	push	%%ebp\n");
  printf("	mov	%%esp, %%ebp\n");
  printf("	\n");
  printf("	#set ebx if eax is negative\n");
  printf(
      "	mov	$10, %%ecx	#Move 10 into ecx to use for dividing later\n");
  printf("	mov $0, %%ebx\n");
  printf("	cmp	$0, %%eax\n");
  printf("	jge	__cta0\n");
  printf("	mov $1, %%ebx\n");
  printf("	neg	%%eax\n");
  printf("__cta0:\n");
  printf("	mov	$0,%%edx\n");
  printf("	div	%%ecx	#divide edx:eax by 10. edx<-remainder, "
         "eax<-quotient\n");
  printf("	add	$0x30,%%edx	#convert remainder to ASCII\n");
  printf("	push	%%edx #push digit onto stack\n");
  printf("	cmp	$0, %%eax\n");
  printf("	jg	__cta0\n");
  printf("	\n");
  printf("	#value is converted and placed on stack with most significant "
         "digit on top\n");
  printf("	lea	IOBUF, %%edi\n");
  printf("	mov	$0, %%ecx\n");
  printf("	test	%%ebx,%%ebx\n");
  printf("	jz	__cta1\n");
  printf("	movl	$0x2D, (%%edi,%%ecx) #'-' character\n");
  printf("	inc	%%ecx\n");
  printf("	\n");
  printf("__cta1: #move encoded value from stack to buffer\n");
  printf("	pop	%%eax\n");
  printf("	mov	%%eax,(%%edi,%%ecx)\n");
  printf("	inc	%%ecx\n");
  printf("	cmp	%%ebp,%%esp\n");
  printf("	jne	__cta1\n");
  printf("	\n");
  printf("	movl	$0x0A, (%%edi,%%ecx) #newline\n");
  printf("	inc	%%ecx\n");
  printf("	mov	%%ecx,%%eax\n");
  printf("	leave\n");
  printf("	ret\n\n");
  printf("# Convert ASCII value in IOBUF to decimal value\n");
  printf("#  INPUT: eax = number of characters in IOBUF\n");
  printf("#  RETURN: eax = converted value\n");
  printf("#  locals:\n");
  printf("#     -4(%%ebp): number of characters in IOBUF\n");
  printf("#     -8(%%ebp): negative flag (non-zero if value is negative)\n");
  printf("#    -12(%%ebp): decimal value 10 for multiplying eax\n");
  printf("_convertFromAscii:\n");
  printf("    push    %%ebp\n");
  printf("    mov %%esp, %%ebp\n");
  printf("    sub $24, %%esp\n");
  printf(
      "    mov %%eax, -4(%%ebp)   #move number of characters to -4(%%ebp)\n");
  printf("    mov $0, %%eax    #initialize return value to zero\n");
  printf("    mov %%eax, -8(%%ebp)   #clear negative flag\n");
  printf("    cmpl    $0, -4(%%ebp)\n");
  printf("    jle __cfa_exit #If zero characters read, stop now\n");
  printf("    \n");
  printf("    movl    $10, -12(%%ebp)\n");
  printf("    lea IOBUF, %%esi\n");
  printf("    mov $0, %%ecx    #initialize index register\n");
  printf("    mov (%%esi, %%ecx), %%bl\n");
  printf("    cmp $0x2D, %%bl	#test for minus sign\n");
  printf("    jne __cfa_readLoop\n");
  printf("    movl    $1, -8(%%ebp)	#set negative flag\n");
  printf("    inc %%ecx\n");
  printf("__cfa_readLoop:\n");
  printf("    cmp -4(%%ebp), %%ecx\n");
  printf("    jge __cfa_checkForNegative  #reached end of buffer\n");
  printf("    mov (%%esi, %%ecx), %%bl  #move next byte to bl\n");
  printf("    inc %%ecx    #advance index\n");
  printf("    cmp $0x2C, %%bl  #compare to ascii comma\n");
  printf("    je  __cfa_readLoop  #ignore commas\n");
  printf("    sub $0x30, %%bl\n");
  printf("    jl  __cfa_checkForNegative  #if ascii value less than 0x30 "
         "(ascii 0), we are finished\n");
  printf("    cmp $9, %%bl\n");
  printf("    jg  __cfa_checkForNegative  #if value>9, we are finished\n");
  printf("    mull -12(%%ebp)  #multiply eax by 10\n");
  printf("    movsx %%bl, %%ebx\n");
  printf("    add %%ebx, %%eax  #add new digit to eax\n");
  printf("    jmp __cfa_readLoop\n");
  printf("    \n");
  printf("__cfa_checkForNegative:\n");
  printf("    cmpl    $0, -8(%%ebp)\n");
  printf("    je  __cfa_exit\n");
  printf("    neg %%eax\n");
  printf("    \n");
  printf("__cfa_exit:\n");
  printf("    leave\n");
  printf("    ret\n\n");
  printf("# Write IOBUF to stdout\n");
  printf("#  INPUT: eax = number of characters to write\n");
  printf("#  RETURN: eax = number of characters written\n");
  printf("_writeIobuf:\n");
  printf("	push	%%ebp\n");
  printf("	mov	%%esp, %%ebp\n");
  printf("	push	%%eax	#length of string to write\n");
  printf("	lea	IOBUF,%%eax\n");
  printf("	push	%%eax	#buffer address\n");
  printf("	pushl	$%d	#stdout\n", 1);
  printf("	mov	$%d, %%eax	#SYS_write\n", 4);
  printf("	push	%%eax\n");
  printf("	int	$0x80\n");
  printf("	leave\n");
  printf("	ret\n\n");
  printf("# Read stdin to IOBUF\n");
  printf("#  RETURN: eax = number of characters received\n");
  printf("_readIobuf:\n");
  printf("	push	%%ebp\n");
  printf("	mov	%%esp, %%ebp\n");
  printf("	pushl	$%d	#buffer size\n", 256);
  printf("	lea	IOBUF,%%eax\n");
  printf("	push	%%eax	#buffer address\n");
  printf("	pushl	$%d	#stdin\n", 0);
  printf("	mov	$%d, %%eax	#SYS_write\n", 3);
  printf("	push	%%eax\n");
  printf("	int	$0x80\n");
  printf("	leave\n");
  printf("	ret\n\n");
  printf("_main:\n");
  printf("	push	%%ebp\n");
  printf("	mov	%%esp, %%ebp\n");
  printf("	mov	$0, %%eax\n");
  printf("# program starts here\n");
}


x86 assembly (clang, -O0):
<asmprolog>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1020(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1010(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10fe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1103(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1111(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1147(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1170(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1193(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11fb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x120b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1227(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1231(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1251(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1252(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1255(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1261(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x128b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12b2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12ff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1306(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1353(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1357(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1387(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13a3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13ac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1079(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13c7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13d2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13df(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13d8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13d7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13d4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13d0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13db(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13fc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x141d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1401(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x141b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x141f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x142e(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x142f(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1438(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1437(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1419(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1422(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1444(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x970(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x96f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1427(%rip),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1348(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x134c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1411(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x135f(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1368(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1367(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8bc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8bb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13a7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<asmprolog>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x15a6(%rip),%rdi
call   1030 <puts@plt>
lea    0x15a1(%rip),%rdi
call   1030 <puts@plt>
lea    0x15c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x15f8(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9e(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9a(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x16ab(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x15cc(%rip),%rdi
call   1030 <puts@plt>
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb2(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x15b0(%rip),%rdi
call   1030 <puts@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1594(%rip),%rdi
call   1030 <puts@plt>
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x154e(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1545(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x155b(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1533(%rip),%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1524(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x182a(%rip),%rbp
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0x1822(%rip),%r13
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0x14da(%rip),%rdi
call   1030 <puts@plt>
lea    0x14fe(%rip),%rdi
call   1030 <puts@plt>
lea    0x1520(%rip),%rdi
call   1030 <puts@plt>
lea    0x1535(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x150a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf73(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14af(%rip),%rdi
call   1030 <puts@plt>
lea    0x1637(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf88(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf97(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf9f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfc2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfd2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1484(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1002(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1473(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1469(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x101e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1031(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x146a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1477(%rip),%rdi
call   1030 <puts@plt>
lea    0x1040(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14b7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1038(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1054(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x105d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14be(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x14c1(%rip),%rdi
call   1030 <puts@plt>
lea    0x105c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14bf(%rip),%rdi
call   1030 <puts@plt>
lea    0x105d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x14b5(%rip),%rdi
call   1030 <puts@plt>
lea    0x14b5(%rip),%rdi
call   1030 <puts@plt>
lea    0x14b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x14b0(%rip),%rdi
call   1030 <puts@plt>
lea    0x14bc(%rip),%rdi
call   1030 <puts@plt>
lea    0x14de(%rip),%rdi
call   1030 <puts@plt>
lea    0x1500(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfee(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1008(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x100c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x101b(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x101c(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1025(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14dd(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0x146d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1477(%rip),%rdi
call   1030 <puts@plt>
lea    0x149a(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb4(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf62(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0x142a(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf62(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1403(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"\09.text\0A\00"
@.str.1 = [52 x i8] c"\0A#convert eax to ascii in IOBUF and append newline\0A\00"
@.str.2 = [61 x i8] c"# RETURN: eax contains length of string (including newline)\0A\00"
@.str.3 = [18 x i8] c"_convertToAscii:\0A\00"
@.str.4 = [13 x i8] c"\09push\09%%ebp\0A\00"
@.str.5 = [19 x i8] c"\09mov\09%%esp, %%ebp\0A\00"
@.str.6 = [3 x i8] c"\09\0A\00"
@.str.7 = [30 x i8] c"\09#set ebx if eax is negative\0A\00"
@.str.8 = [61 x i8] c"\09mov\09$10, %%ecx\09#Move 10 into ecx to use for dividing later\0A\00"
@.str.9 = [16 x i8] c"\09mov $0, %%ebx\0A\00"
@.str.10 = [16 x i8] c"\09cmp\09$0, %%eax\0A\00"
@.str.11 = [13 x i8] c"\09jge\09__cta0\0A\00"
@.str.12 = [16 x i8] c"\09mov $1, %%ebx\0A\00"
@.str.13 = [12 x i8] c"\09neg\09%%eax\0A\00"
@.str.14 = [9 x i8] c"__cta0:\0A\00"
@.str.15 = [15 x i8] c"\09mov\09$0,%%edx\0A\00"
@.str.16 = [65 x i8] c"\09div\09%%ecx\09#divide edx:eax by 10. edx<-remainder, eax<-quotient\0A\00"
@.str.17 = [46 x i8] c"\09add\09$0x30,%%edx\09#convert remainder to ASCII\0A\00"
@.str.18 = [36 x i8] c"\09push\09%%edx #push digit onto stack\0A\00"
@.str.19 = [12 x i8] c"\09jg\09__cta0\0A\00"
@.str.20 = [77 x i8] c"\09#value is converted and placed on stack with most significant digit on top\0A\00"
@.str.21 = [19 x i8] c"\09lea\09IOBUF, %%edi\0A\00"
@.str.22 = [16 x i8] c"\09mov\09$0, %%ecx\0A\00"
@.str.23 = [19 x i8] c"\09test\09%%ebx,%%ebx\0A\00"
@.str.24 = [12 x i8] c"\09jz\09__cta1\0A\00"
@.str.25 = [43 x i8] c"\09movl\09$0x2D, (%%edi,%%ecx) #'-' character\0A\00"
@.str.26 = [12 x i8] c"\09inc\09%%ecx\0A\00"
@.str.27 = [50 x i8] c"__cta1: #move encoded value from stack to buffer\0A\00"
@.str.28 = [12 x i8] c"\09pop\09%%eax\0A\00"
@.str.29 = [26 x i8] c"\09mov\09%%eax,(%%edi,%%ecx)\0A\00"
@.str.30 = [18 x i8] c"\09cmp\09%%ebp,%%esp\0A\00"
@.str.31 = [13 x i8] c"\09jne\09__cta1\0A\00"
@.str.32 = [37 x i8] c"\09movl\09$0x0A, (%%edi,%%ecx) #newline\0A\00"
@.str.33 = [18 x i8] c"\09mov\09%%ecx,%%eax\0A\00"
@.str.34 = [8 x i8] c"\09leave\0A\00"
@.str.35 = [7 x i8] c"\09ret\0A\0A\00"
@.str.36 = [49 x i8] c"# Convert ASCII value in IOBUF to decimal value\0A\00"
@.str.37 = [47 x i8] c"# INPUT: eax = number of characters in IOBUF\0A\00"
@.str.38 = [34 x i8] c"# RETURN: eax = converted value\0A\00"
@.str.39 = [12 x i8] c"# locals:\0A\00"
@.str.40 = [48 x i8] c"# -4(%%ebp): number of characters in IOBUF\0A\00"
@.str.41 = [64 x i8] c"# -8(%%ebp): negative flag (non-zero if value is negative)\0A\00"
@.str.42 = [55 x i8] c"# -12(%%ebp): decimal value 10 for multiplying eax\0A\00"
@.str.43 = [20 x i8] c"_convertFromAscii:\0A\00"
@.str.44 = [19 x i8] c" push %%ebp\0A\00"
@.str.45 = [22 x i8] c" mov %%esp, %%ebp\0A\00"
@.str.46 = [20 x i8] c" sub $24, %%esp\0A\00"
@.str.47 = [68 x i8] c" mov %%eax, -4(%%ebp) #move number of characters to -4(%%ebp)\0A\00"
@.str.48 = [55 x i8] c" mov $0, %%eax #initialize return value to zero\0A\00"
@.str.49 = [49 x i8] c" mov %%eax, -8(%%ebp) #clear negative flag\0A\00"
@.str.50 = [27 x i8] c" cmpl $0, -4(%%ebp)\0A\00"
@.str.51 = [55 x i8] c" jle __cfa_exit #If zero characters read, stop now\0A\00"
@.str.52 = [6 x i8] c" \0A\00"
@.str.53 = [29 x i8] c" movl $10, -12(%%ebp)\0A\00"
@.str.54 = [22 x i8] c" lea IOBUF, %%esi\0A\00"
@.str.55 = [49 x i8] c" mov $0, %%ecx #initialize index register\0A\00"
@.str.56 = [30 x i8] c" mov (%%esi, %%ecx), %%bl\0A\00"
@.str.57 = [42 x i8] c" cmp $0x2D, %%bl\09#test for minus sign\0A\00"
@.str.58 = [24 x i8] c" jne __cfa_readLoop\0A\00"
@.str.59 = [46 x i8] c" movl $1, -8(%%ebp)\09#set negative flag\0A\00"
@.str.60 = [15 x i8] c" inc %%ecx\0A\00"
@.str.61 = [17 x i8] c"__cfa_readLoop:\0A\00"
@.str.62 = [26 x i8] c" cmp -4(%%ebp), %%ecx\0A\00"
@.str.63 = [56 x i8] c" jge __cfa_checkForNegative #reached end of buffer\0A\00"
@.str.64 = [53 x i8] c" mov (%%esi, %%ecx), %%bl #move next byte to bl\0A\00"
@.str.65 = [33 x i8] c" inc %%ecx #advance index\0A\00"
@.str.66 = [46 x i8] c" cmp $0x2C, %%bl #compare to ascii comma\0A\00"
@.str.67 = [40 x i8] c" je __cfa_readLoop #ignore commas\0A\00"
@.str.68 = [21 x i8] c" sub $0x30, %%bl\0A\00"
@.str.69 = [91 x i8] c" jl __cfa_checkForNegative #if ascii value less than 0x30 (ascii 0), we are finished\0A\00"
@.str.70 = [18 x i8] c" cmp $9, %%bl\0A\00"
@.str.71 = [62 x i8] c" jg __cfa_checkForNegative #if value>9, we are finished\0A\00"
@.str.72 = [42 x i8] c" mull -12(%%ebp) #multiply eax by 10\0A\00"
@.str.73 = [23 x i8] c" movsx %%bl, %%ebx\0A\00"
@.str.74 = [45 x i8] c" add %%ebx, %%eax #add new digit to eax\0A\00"
@.str.75 = [24 x i8] c" jmp __cfa_readLoop\0A\00"
@.str.76 = [25 x i8] c"__cfa_checkForNegative:\0A\00"
@.str.77 = [27 x i8] c" cmpl $0, -8(%%ebp)\0A\00"
@.str.78 = [20 x i8] c" je __cfa_exit\0A\00"
@.str.79 = [15 x i8] c" neg %%eax\0A\00"
@.str.80 = [13 x i8] c"__cfa_exit:\0A\00"
@.str.81 = [11 x i8] c" leave\0A\00"
@.str.82 = [10 x i8] c" ret\0A\0A\00"
@.str.83 = [25 x i8] c"# Write IOBUF to stdout\0A\00"
@.str.84 = [47 x i8] c"# INPUT: eax = number of characters to write\0A\00"
@.str.85 = [47 x i8] c"# RETURN: eax = number of characters written\0A\00"
@.str.86 = [14 x i8] c"_writeIobuf:\0A\00"
@.str.87 = [40 x i8] c"\09push\09%%eax\09#length of string to write\0A\00"
@.str.88 = [18 x i8] c"\09lea\09IOBUF,%%eax\0A\00"
@.str.89 = [29 x i8] c"\09push\09%%eax\09#buffer address\0A\00"
@.str.90 = [20 x i8] c"\09pushl\09$%d\09#stdout\0A\00"
@.str.91 = [28 x i8] c"\09mov\09$%d, %%eax\09#SYS_write\0A\00"
@.str.92 = [13 x i8] c"\09push\09%%eax\0A\00"
@.str.93 = [12 x i8] c"\09int\09$0x80\0A\00"
@.str.94 = [23 x i8] c"# Read stdin to IOBUF\0A\00"
@.str.95 = [48 x i8] c"# RETURN: eax = number of characters received\0A\00"
@.str.96 = [13 x i8] c"_readIobuf:\0A\00"
@.str.97 = [25 x i8] c"\09pushl\09$%d\09#buffer size\0A\00"
@.str.98 = [19 x i8] c"\09pushl\09$%d\09#stdin\0A\00"
@.str.99 = [8 x i8] c"_main:\0A\00"
@.str.100 = [16 x i8] c"\09mov\09$0, %%eax\0A\00"
@.str.101 = [23 x i8] c"# program starts here\0A\00"
define void @asmprolog() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.27, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.28, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.29, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.31, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.33, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.35, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.36, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.37, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.38, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.39, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.40, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.41, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.42, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.43, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.44, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.45, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.47, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.48, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.49, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.50, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.51, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.53, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.54, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.55, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.56, i64 0, i64 0))
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.57, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.58, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.59, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.60, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.61, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.62, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.63, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.64, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.65, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.66, i64 0, i64 0))
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.67, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.68, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.69, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.70, i64 0, i64 0))
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.71, i64 0, i64 0))
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.72, i64 0, i64 0))
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.73, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.74, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.75, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i64 0, i64 0))
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.76, i64 0, i64 0))
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.77, i64 0, i64 0))
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.78, i64 0, i64 0))
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.79, i64 0, i64 0))
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.80, i64 0, i64 0))
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.81, i64 0, i64 0))
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.82, i64 0, i64 0))
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.83, i64 0, i64 0))
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.84, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.85, i64 0, i64 0))
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.86, i64 0, i64 0))
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.87, i64 0, i64 0))
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.88, i64 0, i64 0))
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.89, i64 0, i64 0))
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.90, i64 0, i64 0), i32 1)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.91, i64 0, i64 0), i32 4)
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.92, i64 0, i64 0))
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.93, i64 0, i64 0))
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0))
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.35, i64 0, i64 0))
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.94, i64 0, i64 0))
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.95, i64 0, i64 0))
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.96, i64 0, i64 0))
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.97, i64 0, i64 0), i32 256)
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.88, i64 0, i64 0))
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.89, i64 0, i64 0))
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.98, i64 0, i64 0), i32 0)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.91, i64 0, i64 0), i32 3)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.92, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.93, i64 0, i64 0))
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0))
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.35, i64 0, i64 0))
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.99, i64 0, i64 0))
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.100, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.101, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.4 = [13 x i8] c"\09push\09%%ebp\0A\00"
@.str.5 = [19 x i8] c"\09mov\09%%esp, %%ebp\0A\00"
@.str.8 = [61 x i8] c"\09mov\09$10, %%ecx\09#Move 10 into ecx to use for dividing later\0A\00"
@.str.9 = [16 x i8] c"\09mov $0, %%ebx\0A\00"
@.str.10 = [16 x i8] c"\09cmp\09$0, %%eax\0A\00"
@.str.12 = [16 x i8] c"\09mov $1, %%ebx\0A\00"
@.str.13 = [12 x i8] c"\09neg\09%%eax\0A\00"
@.str.15 = [15 x i8] c"\09mov\09$0,%%edx\0A\00"
@.str.16 = [65 x i8] c"\09div\09%%ecx\09#divide edx:eax by 10. edx<-remainder, eax<-quotient\0A\00"
@.str.17 = [46 x i8] c"\09add\09$0x30,%%edx\09#convert remainder to ASCII\0A\00"
@.str.18 = [36 x i8] c"\09push\09%%edx #push digit onto stack\0A\00"
@.str.21 = [19 x i8] c"\09lea\09IOBUF, %%edi\0A\00"
@.str.22 = [16 x i8] c"\09mov\09$0, %%ecx\0A\00"
@.str.23 = [19 x i8] c"\09test\09%%ebx,%%ebx\0A\00"
@.str.25 = [43 x i8] c"\09movl\09$0x2D, (%%edi,%%ecx) #'-' character\0A\00"
@.str.26 = [12 x i8] c"\09inc\09%%ecx\0A\00"
@.str.28 = [12 x i8] c"\09pop\09%%eax\0A\00"
@.str.29 = [26 x i8] c"\09mov\09%%eax,(%%edi,%%ecx)\0A\00"
@.str.30 = [18 x i8] c"\09cmp\09%%ebp,%%esp\0A\00"
@.str.32 = [37 x i8] c"\09movl\09$0x0A, (%%edi,%%ecx) #newline\0A\00"
@.str.33 = [18 x i8] c"\09mov\09%%ecx,%%eax\0A\00"
@.str.40 = [48 x i8] c"# -4(%%ebp): number of characters in IOBUF\0A\00"
@.str.41 = [64 x i8] c"# -8(%%ebp): negative flag (non-zero if value is negative)\0A\00"
@.str.42 = [55 x i8] c"# -12(%%ebp): decimal value 10 for multiplying eax\0A\00"
@.str.44 = [19 x i8] c" push %%ebp\0A\00"
@.str.45 = [22 x i8] c" mov %%esp, %%ebp\0A\00"
@.str.46 = [20 x i8] c" sub $24, %%esp\0A\00"
@.str.47 = [68 x i8] c" mov %%eax, -4(%%ebp) #move number of characters to -4(%%ebp)\0A\00"
@.str.48 = [55 x i8] c" mov $0, %%eax #initialize return value to zero\0A\00"
@.str.49 = [49 x i8] c" mov %%eax, -8(%%ebp) #clear negative flag\0A\00"
@.str.50 = [27 x i8] c" cmpl $0, -4(%%ebp)\0A\00"
@.str.53 = [29 x i8] c" movl $10, -12(%%ebp)\0A\00"
@.str.54 = [22 x i8] c" lea IOBUF, %%esi\0A\00"
@.str.55 = [49 x i8] c" mov $0, %%ecx #initialize index register\0A\00"
@.str.56 = [30 x i8] c" mov (%%esi, %%ecx), %%bl\0A\00"
@.str.57 = [42 x i8] c" cmp $0x2D, %%bl\09#test for minus sign\0A\00"
@.str.59 = [46 x i8] c" movl $1, -8(%%ebp)\09#set negative flag\0A\00"
@.str.60 = [15 x i8] c" inc %%ecx\0A\00"
@.str.62 = [26 x i8] c" cmp -4(%%ebp), %%ecx\0A\00"
@.str.64 = [53 x i8] c" mov (%%esi, %%ecx), %%bl #move next byte to bl\0A\00"
@.str.65 = [33 x i8] c" inc %%ecx #advance index\0A\00"
@.str.66 = [46 x i8] c" cmp $0x2C, %%bl #compare to ascii comma\0A\00"
@.str.68 = [21 x i8] c" sub $0x30, %%bl\0A\00"
@.str.70 = [18 x i8] c" cmp $9, %%bl\0A\00"
@.str.72 = [42 x i8] c" mull -12(%%ebp) #multiply eax by 10\0A\00"
@.str.73 = [23 x i8] c" movsx %%bl, %%ebx\0A\00"
@.str.74 = [45 x i8] c" add %%ebx, %%eax #add new digit to eax\0A\00"
@.str.77 = [27 x i8] c" cmpl $0, -8(%%ebp)\0A\00"
@.str.79 = [15 x i8] c" neg %%eax\0A\00"
@.str.87 = [40 x i8] c"\09push\09%%eax\09#length of string to write\0A\00"
@.str.88 = [18 x i8] c"\09lea\09IOBUF,%%eax\0A\00"
@.str.89 = [29 x i8] c"\09push\09%%eax\09#buffer address\0A\00"
@.str.90 = [20 x i8] c"\09pushl\09$%d\09#stdout\0A\00"
@.str.91 = [28 x i8] c"\09mov\09$%d, %%eax\09#SYS_write\0A\00"
@.str.92 = [13 x i8] c"\09push\09%%eax\0A\00"
@.str.97 = [25 x i8] c"\09pushl\09$%d\09#buffer size\0A\00"
@.str.98 = [19 x i8] c"\09pushl\09$%d\09#stdin\0A\00"
@.str.100 = [16 x i8] c"\09mov\09$0, %%eax\0A\00"
@str = [7 x i8] c"\09.text\00"
@str.102 = [51 x i8] c"\0A#convert eax to ascii in IOBUF and append newline\00"
@str.103 = [60 x i8] c"# RETURN: eax contains length of string (including newline)\00"
@str.104 = [17 x i8] c"_convertToAscii:\00"
@str.106 = [29 x i8] c"\09#set ebx if eax is negative\00"
@str.107 = [12 x i8] c"\09jge\09__cta0\00"
@str.108 = [8 x i8] c"__cta0:\00"
@str.109 = [11 x i8] c"\09jg\09__cta0\00"
@str.111 = [76 x i8] c"\09#value is converted and placed on stack with most significant digit on top\00"
@str.112 = [11 x i8] c"\09jz\09__cta1\00"
@str.114 = [49 x i8] c"__cta1: #move encoded value from stack to buffer\00"
@str.115 = [12 x i8] c"\09jne\09__cta1\00"
@str.116 = [2 x i8] c"\09\00"
@str.119 = [48 x i8] c"# Convert ASCII value in IOBUF to decimal value\00"
@str.120 = [46 x i8] c"# INPUT: eax = number of characters in IOBUF\00"
@str.121 = [33 x i8] c"# RETURN: eax = converted value\00"
@str.122 = [11 x i8] c"# locals:\00"
@str.123 = [19 x i8] c"_convertFromAscii:\00"
@str.124 = [54 x i8] c" jle __cfa_exit #If zero characters read, stop now\00"
@str.126 = [23 x i8] c" jne __cfa_readLoop\00"
@str.127 = [16 x i8] c"__cfa_readLoop:\00"
@str.128 = [55 x i8] c" jge __cfa_checkForNegative #reached end of buffer\00"
@str.129 = [39 x i8] c" je __cfa_readLoop #ignore commas\00"
@str.130 = [90 x i8] c" jl __cfa_checkForNegative #if ascii value less than 0x30 (ascii 0), we are finished\00"
@str.131 = [61 x i8] c" jg __cfa_checkForNegative #if value>9, we are finished\00"
@str.132 = [23 x i8] c" jmp __cfa_readLoop\00"
@str.134 = [24 x i8] c"__cfa_checkForNegative:\00"
@str.135 = [19 x i8] c" je __cfa_exit\00"
@str.136 = [5 x i8] c" \00"
@str.137 = [12 x i8] c"__cfa_exit:\00"
@str.138 = [10 x i8] c" leave\00"
@str.139 = [9 x i8] c" ret\0A\00"
@str.140 = [24 x i8] c"# Write IOBUF to stdout\00"
@str.141 = [46 x i8] c"# INPUT: eax = number of characters to write\00"
@str.142 = [46 x i8] c"# RETURN: eax = number of characters written\00"
@str.143 = [13 x i8] c"_writeIobuf:\00"
@str.147 = [22 x i8] c"# Read stdin to IOBUF\00"
@str.148 = [47 x i8] c"# RETURN: eax = number of characters received\00"
@str.149 = [12 x i8] c"_readIobuf:\00"
@str.150 = [11 x i8] c"\09int\09$0x80\00"
@str.151 = [7 x i8] c"\09leave\00"
@str.152 = [6 x i8] c"\09ret\0A\00"
@str.153 = [7 x i8] c"_main:\00"
@str.154 = [22 x i8] c"# program starts here\00"
define void @asmprolog() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.102, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.103, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.104, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.116, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.106, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.107, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.108, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.109, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.116, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.111, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.112, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i64 0, i64 0))
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.116, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.114, i64 0, i64 0))
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.28, i64 0, i64 0))
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.29, i64 0, i64 0))
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.115, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.116, i64 0, i64 0))
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0))
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.33, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.151, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.152, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.119, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.120, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.121, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.122, i64 0, i64 0))
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.40, i64 0, i64 0))
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.41, i64 0, i64 0))
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.42, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.123, i64 0, i64 0))
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.44, i64 0, i64 0))
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.45, i64 0, i64 0))
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0))
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.47, i64 0, i64 0))
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.48, i64 0, i64 0))
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.49, i64 0, i64 0))
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.50, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.124, i64 0, i64 0))
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.136, i64 0, i64 0))
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.53, i64 0, i64 0))
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.54, i64 0, i64 0))
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.55, i64 0, i64 0))
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.56, i64 0, i64 0))
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.57, i64 0, i64 0))
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.126, i64 0, i64 0))
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.59, i64 0, i64 0))
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.60, i64 0, i64 0))
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.127, i64 0, i64 0))
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.62, i64 0, i64 0))
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.128, i64 0, i64 0))
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.64, i64 0, i64 0))
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.65, i64 0, i64 0))
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.66, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.129, i64 0, i64 0))
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.68, i64 0, i64 0))
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.130, i64 0, i64 0))
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.70, i64 0, i64 0))
%78 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.131, i64 0, i64 0))
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.72, i64 0, i64 0))
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.73, i64 0, i64 0))
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.74, i64 0, i64 0))
%82 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.132, i64 0, i64 0))
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.136, i64 0, i64 0))
%84 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.134, i64 0, i64 0))
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.77, i64 0, i64 0))
%86 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.135, i64 0, i64 0))
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.79, i64 0, i64 0))
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.136, i64 0, i64 0))
%89 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.137, i64 0, i64 0))
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.138, i64 0, i64 0))
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.139, i64 0, i64 0))
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.140, i64 0, i64 0))
%93 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.141, i64 0, i64 0))
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.142, i64 0, i64 0))
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.143, i64 0, i64 0))
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.87, i64 0, i64 0))
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.88, i64 0, i64 0))
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.89, i64 0, i64 0))
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.90, i64 0, i64 0), i32 1)
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.91, i64 0, i64 0), i32 4)
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.92, i64 0, i64 0))
%104 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.150, i64 0, i64 0))
%105 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.151, i64 0, i64 0))
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.152, i64 0, i64 0))
%107 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.147, i64 0, i64 0))
%108 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.148, i64 0, i64 0))
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.149, i64 0, i64 0))
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.97, i64 0, i64 0), i32 256)
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.88, i64 0, i64 0))
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.89, i64 0, i64 0))
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.98, i64 0, i64 0), i32 0)
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.91, i64 0, i64 0), i32 3)
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.92, i64 0, i64 0))
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.150, i64 0, i64 0))
%119 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.151, i64 0, i64 0))
%120 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.152, i64 0, i64 0))
%121 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.153, i64 0, i64 0))
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.100, i64 0, i64 0))
%125 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.154, i64 0, i64 0))
ret void
}