#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*/ kill_time(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ self_testing_mode();
void init_can(char *mode, char *self_test) {
  unsigned char r_val;
  if (mode == "Basic") {
    printf("************************************\n");
    printf("********** Basic Can Mode **********\n");
    printf("************************************\n");
    printf("Switch on Reset Mode\n");
    r_val = *((unsigned char *)(0xfffc0000)) | 0x01;
    *((unsigned char *)(0xfffc0000)) = r_val;
    printf("control_register: 0x%X \n\n", *((unsigned char *)(0xfffc0000)));
    printf("Set clock divider register to basic can mode\n");
    r_val = *((unsigned char *)(0xfffc001F)) & 0x7F | 0x07;
    *((unsigned char *)(0xfffc001F)) = r_val;
    printf("clock_divider_register: 0x%X \n\n",
           *((unsigned char *)(0xfffc001F)));
    printf("Set bus timing register 0\n");
    printf("Sync Jump Width = 2  Baudrate Prescaler = 1\n");
    *((unsigned char *)(0xfffc0006)) = 0xA8;
    printf("bus timing register 0: 0x%X \n\n",
           *((unsigned char *)(0xfffc0006)));
    printf("Set bus timing register 1\n");
    printf("SAM = 0 ---> Single Sampling\n");
    *((unsigned char *)(0xfffc0007)) = 0x34;
    printf("bus timing register 1: 0x%X \n\n",
           *((unsigned char *)(0xfffc0007)));
    printf("Set acceptance code register\n");
    *((unsigned char *)(0xfffc0004)) = 0xEA;
    printf("acceptance code register: 0x%X \n\n",
           *((unsigned char *)(0xfffc0004)));
    printf("Set acceptance mask register\n");
    *((unsigned char *)(0xfffc0005)) = 0x0F;
    printf("acceptance mask register: 0x%X \n\n",
           *((unsigned char *)(0xfffc0005)));
    kill_time(50);
    printf("Switch off reset mode\n");
    r_val = *((unsigned char *)(0xfffc0000)) & 0xFE;
    *((unsigned char *)(0xfffc0000)) = r_val;
    printf("control_register 0x%X \n\n", *((unsigned char *)(0xfffc0000)));
    kill_time(50);
  } else if (mode == "Extended") {
    printf("************************************\n");
    printf("******** Extended Can Mode *********\n");
    printf("************************************\n");
    printf("Switch on Reset Mode\n");
    r_val = *((unsigned char *)(0xfffc0000)) | 0x01;
    *((unsigned char *)(0xfffc0000)) = r_val;
    printf("control_register: 0x%X \n\n", *((unsigned char *)(0xfffc0000)));
    kill_time(50);
    printf("Set clock divider register to extended can mode\n");
    r_val = *((unsigned char *)(0xfffc001F)) | 0x80 | 0x07;
    *((unsigned char *)(0xfffc001F)) = r_val;
    printf("clock_divider_register: 0x%X \n\n",
           *((unsigned char *)(0xfffc001F)));
    kill_time(50);
    printf("Set bus timing register 0\n");
    printf("Sync Jump Width = 2  Baudrate Prescaler = 1\n");
    *((unsigned char *)(0xfffc0006)) = 0xA8;
    printf("bus timing register 0: 0x%X \n\n",
           *((unsigned char *)(0xfffc0006)));
    printf("Set bus timing register 1\n");
    printf("SAM = 0 ---> Single Sampling\n");
    *((unsigned char *)(0xfffc0007)) = 0x34;
    printf("bus timing register 1: 0x%X \n\n",
           *((unsigned char *)(0xfffc0007)));
    printf("Set acceptance code register\n");
    *((unsigned char *)(0xfffc0010)) = 0xA6;
    printf("acceptance code register 0: 0x%X \n",
           *((unsigned char *)(0xfffc0010)));
    *((unsigned char *)(0xfffc0011)) = 0xB0;
    printf("acceptance code register 1: 0x%X \n",
           *((unsigned char *)(0xfffc0011)));
    *((unsigned char *)(0xfffc0012)) = 0x12;
    printf("acceptance code register 2: 0x%X \n",
           *((unsigned char *)(0xfffc0012)));
    *((unsigned char *)(0xfffc0013)) = 0x30;
    printf("acceptance code register 3: 0x%X \n\n",
           *((unsigned char *)(0xfffc0013)));
    printf("Set acceptance mask register\n");
    *((unsigned char *)(0xfffc0014)) = 0x00;
    printf("acceptance mask register: 0x%X \n",
           *((unsigned char *)(0xfffc0014)));
    *((unsigned char *)(0xfffc0015)) = 0x00;
    printf("acceptance mask register: 0x%X \n",
           *((unsigned char *)(0xfffc0015)));
    *((unsigned char *)(0xfffc0016)) = 0x00;
    printf("acceptance mask register: 0x%X \n",
           *((unsigned char *)(0xfffc0016)));
    *((unsigned char *)(0xfffc0017)) = 0x00;
    printf("acceptance mask register: 0x%X \n\n",
           *((unsigned char *)(0xfffc0017)));
    if (self_test == "self_test") {
      self_testing_mode();
    }
    printf("Switch off reset mode\n");
    r_val = *((unsigned char *)(0xfffc0000)) & 0xFE;
    *((unsigned char *)(0xfffc0000)) = r_val;
    printf("control_register 0x%X \n\n", *((unsigned char *)(0xfffc0000)));
    kill_time(50);
  }
}


x86 assembly (clang, -O0):
<init_can>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb9(%rip),%rax
cmp    %rax,-0x8(%rbp)
jne    1319 <init_can+0x1e9>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0000,%eax
movzbl (%rax),%eax
or     $0x1,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc0000,%eax
mov    %cl,(%rax)
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc001f,%eax
movzbl (%rax),%eax
and    $0x7f,%eax
or     $0x7,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc001f,%eax
mov    %cl,(%rax)
mov    $0xfffc001f,%eax
movzbl (%rax),%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0006,%eax
movb   $0xa8,(%rax)
mov    $0xfffc0006,%eax
movzbl (%rax),%esi
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0007,%eax
movb   $0x34,(%rax)
mov    $0xfffc0007,%eax
movzbl (%rax),%esi
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0004,%eax
movb   $0xea,(%rax)
mov    $0xfffc0004,%eax
movzbl (%rax),%esi
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0005,%eax
movb   $0xf,(%rax)
mov    $0xfffc0005,%eax
movzbl (%rax),%esi
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0000,%eax
movzbl (%rax),%eax
and    $0xfe,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc0000,%eax
mov    %cl,(%rax)
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
jmp    15ca <init_can+0x49a>
lea    0xf1f(%rip),%rax
cmp    %rax,-0x8(%rbp)
jne    15c5 <init_can+0x495>
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0000,%eax
movzbl (%rax),%eax
or     $0x1,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc0000,%eax
mov    %cl,(%rax)
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc001f,%eax
movzbl (%rax),%eax
or     $0x80,%eax
or     $0x7,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc001f,%eax
mov    %cl,(%rax)
mov    $0xfffc001f,%eax
movzbl (%rax),%esi
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0006,%eax
movb   $0xa8,(%rax)
mov    $0xfffc0006,%eax
movzbl (%rax),%esi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0007,%eax
movb   $0x34,(%rax)
mov    $0xfffc0007,%eax
movzbl (%rax),%esi
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0010,%eax
movb   $0xa6,(%rax)
mov    $0xfffc0010,%eax
movzbl (%rax),%esi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0011,%eax
movb   $0xb0,(%rax)
mov    $0xfffc0011,%eax
movzbl (%rax),%esi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0012,%eax
movb   $0x12,(%rax)
mov    $0xfffc0012,%eax
movzbl (%rax),%esi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0013,%eax
movb   $0x30,(%rax)
mov    $0xfffc0013,%eax
movzbl (%rax),%esi
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0014,%eax
movb   $0x0,(%rax)
mov    $0xfffc0014,%eax
movzbl (%rax),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0015,%eax
movb   $0x0,(%rax)
mov    $0xfffc0015,%eax
movzbl (%rax),%esi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0016,%eax
movb   $0x0,(%rax)
mov    $0xfffc0016,%eax
movzbl (%rax),%esi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0017,%eax
movb   $0x0,(%rax)
mov    $0xfffc0017,%eax
movzbl (%rax),%esi
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xde1(%rip),%rax
cmp    %rax,-0x10(%rbp)
jne    157d <init_can+0x44d>
mov    $0x0,%al
call   1040 <self_testing_mode@plt>
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xfffc0000,%eax
movzbl (%rax),%eax
and    $0xfe,%eax
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
mov    $0xfffc0000,%eax
mov    %cl,(%rax)
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
jmp    15ca <init_can+0x49a>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_can>:
push   %r15
push   %r14
push   %rbx
mov    $0xfffc0000,%r15d
lea    0xeae(%rip),%rax
cmp    %rax,%rdi
je     116d <init_can+0x2d>
lea    0xf7d(%rip),%rax
cmp    %rax,%rdi
je     1294 <init_can+0x154>
pop    %rbx
pop    %r14
pop    %r15
ret
lea    0x10a2(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x106e(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x10a4(%rip),%rdi
call   1040 <puts@plt>
movzbl (%r15),%esi
or     $0x1,%esi
mov    %sil,(%r15)
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x1095(%rip),%rdi
call   1040 <puts@plt>
movzbl 0x1f(%r15),%esi
and    $0x78,%esi
or     $0x7,%esi
mov    %sil,0x1f(%r15)
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x1099(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a7(%rip),%rdi
call   1040 <puts@plt>
movb   $0xa8,0x6(%r15)
lea    0xe3f(%rip),%rdi
mov    $0xa8,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x10af(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1040 <puts@plt>
movb   $0x34,0x7(%r15)
lea    0xe2e(%rip),%rdi
mov    $0x34,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x10b6(%rip),%rdi
call   1040 <puts@plt>
movb   $0xea,0x4(%r15)
lea    0xe29(%rip),%rdi
mov    $0xea,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x10af(%rip),%rdi
call   1040 <puts@plt>
movb   $0xf,0x5(%r15)
lea    0xe27(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
jmp    1455 <init_can+0x315>
mov    %rsi,%r14
lea    0xf78(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xeef(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1040 <puts@plt>
movzbl (%r15),%esi
or     $0x1,%esi
mov    %sil,(%r15)
lea    0xd2f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
lea    0xed2(%rip),%rdi
call   1040 <puts@plt>
movzbl 0x1f(%r15),%esi
or     $0x87,%esi
mov    %sil,0x1f(%r15)
lea    0xd16(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x32,%edi
call   1030 <kill_time@plt>
lea    0xf5b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
movb   $0xa8,0x6(%r15)
lea    0xd01(%rip),%rdi
mov    $0xa8,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf71(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7f(%rip),%rdi
call   1040 <puts@plt>
movb   $0x34,0x7(%r15)
lea    0xcf0(%rip),%rdi
mov    $0x34,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf78(%rip),%rdi
call   1040 <puts@plt>
movb   $0xa6,0x10(%r15)
lea    0xd51(%rip),%rdi
mov    $0xa6,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0xb0,0x11(%r15)
lea    0xd5c(%rip),%rdi
mov    $0xb0,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x12,0x12(%r15)
lea    0xd67(%rip),%rdi
mov    $0x12,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x30,0x13(%r15)
lea    0xd72(%rip),%rdi
mov    $0x30,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf29(%rip),%rdi
call   1040 <puts@plt>
movb   $0x0,0x14(%r15)
lea    0xd72(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x0,0x15(%r15)
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x0,0x16(%r15)
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x0,0x17(%r15)
lea    0xc67(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd49(%rip),%rax
cmp    %rax,%r14
jne    1455 <init_can+0x315>
xor    %eax,%eax
call   1050 <self_testing_mode@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
movzbl (%r15),%esi
and    $0xfffffffe,%esi
mov    %sil,(%r15)
lea    0xc50(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x32,%edi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <kill_time@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"Basic\00"
@.str.1 = [38 x i8] c"************************************\0A\00"
@.str.2 = [38 x i8] c"********** Basic Can Mode **********\0A\00"
@.str.3 = [22 x i8] c"Switch on Reset Mode\0A\00"
@.str.4 = [26 x i8] c"control_register: 0x%X \0A\0A\00"
@.str.5 = [46 x i8] c"Set clock divider register to basic can mode\0A\00"
@.str.6 = [32 x i8] c"clock_divider_register: 0x%X \0A\0A\00"
@.str.7 = [27 x i8] c"Set bus timing register 0\0A\00"
@.str.8 = [45 x i8] c"Sync Jump Width = 2 Baudrate Prescaler = 1\0A\00"
@.str.9 = [31 x i8] c"bus timing register 0: 0x%X \0A\0A\00"
@.str.10 = [27 x i8] c"Set bus timing register 1\0A\00"
@.str.11 = [30 x i8] c"SAM = 0 ---> Single Sampling\0A\00"
@.str.12 = [31 x i8] c"bus timing register 1: 0x%X \0A\0A\00"
@.str.13 = [30 x i8] c"Set acceptance code register\0A\00"
@.str.14 = [34 x i8] c"acceptance code register: 0x%X \0A\0A\00"
@.str.15 = [30 x i8] c"Set acceptance mask register\0A\00"
@.str.16 = [34 x i8] c"acceptance mask register: 0x%X \0A\0A\00"
@.str.17 = [23 x i8] c"Switch off reset mode\0A\00"
@.str.18 = [25 x i8] c"control_register 0x%X \0A\0A\00"
@.str.19 = [9 x i8] c"Extended\00"
@.str.20 = [38 x i8] c"******** Extended Can Mode *********\0A\00"
@.str.21 = [49 x i8] c"Set clock divider register to extended can mode\0A\00"
@.str.22 = [35 x i8] c"acceptance code register 0: 0x%X \0A\00"
@.str.23 = [35 x i8] c"acceptance code register 1: 0x%X \0A\00"
@.str.24 = [35 x i8] c"acceptance code register 2: 0x%X \0A\00"
@.str.25 = [36 x i8] c"acceptance code register 3: 0x%X \0A\0A\00"
@.str.26 = [33 x i8] c"acceptance mask register: 0x%X \0A\00"
@.str.27 = [10 x i8] c"self_test\00"
define void @init_can(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
br i1 %7, label %8, label %60
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%13 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%14 = zext i8 %13 to i32
%15 = or i32 %14, 1
%16 = trunc i32 %15 to i8
store i8 %16, i8* %5
%17 = load i8, i8* %5
store i8 %17, i8* inttoptr (i64 4294705152 to i8*)
%18 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%19 = zext i8 %18 to i32
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%22 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%23 = zext i8 %22 to i32
%24 = and i32 %23, 127
%25 = or i32 %24, 7
%26 = trunc i32 %25 to i8
store i8 %26, i8* %5
%27 = load i8, i8* %5
store i8 %27, i8* inttoptr (i64 4294705183 to i8*)
%28 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%29 = zext i8 %28 to i32
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
store i8 -88, i8* inttoptr (i64 4294705158 to i8*)
%33 = load i8, i8* inttoptr (i64 4294705158 to i8*)
%34 = zext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
store i8 52, i8* inttoptr (i64 4294705159 to i8*)
%38 = load i8, i8* inttoptr (i64 4294705159 to i8*)
%39 = zext i8 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
store i8 -22, i8* inttoptr (i64 4294705156 to i8*)
%42 = load i8, i8* inttoptr (i64 4294705156 to i8*)
%43 = zext i8 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
store i8 15, i8* inttoptr (i64 4294705157 to i8*)
%46 = load i8, i8* inttoptr (i64 4294705157 to i8*)
%47 = zext i8 %46 to i32
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i32 %47)
%49 = call i32 @kill_time(i32 50)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%51 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%52 = zext i8 %51 to i32
%53 = and i32 %52, 254
%54 = trunc i32 %53 to i8
store i8 %54, i8* %5
%55 = load i8, i8* %5
store i8 %55, i8* inttoptr (i64 4294705152 to i8*)
%56 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%57 = zext i8 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), i32 %57)
%59 = call i32 @kill_time(i32 50)
br label %140
60: ; preds = %2
%61 = load i8*, i8** %3
%62 = icmp eq i8* %61, getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0)
br i1 %62, label %63, label %139
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.20, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%68 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%69 = zext i8 %68 to i32
%70 = or i32 %69, 1
%71 = trunc i32 %70 to i8
store i8 %71, i8* %5
%72 = load i8, i8* %5
store i8 %72, i8* inttoptr (i64 4294705152 to i8*)
%73 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%74 = zext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %74)
%76 = call i32 @kill_time(i32 50)
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.21, i64 0, i64 0))
%78 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%79 = zext i8 %78 to i32
%80 = or i32 %79, 128
%81 = or i32 %80, 7
%82 = trunc i32 %81 to i8
store i8 %82, i8* %5
%83 = load i8, i8* %5
store i8 %83, i8* inttoptr (i64 4294705183 to i8*)
%84 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%85 = zext i8 %84 to i32
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %85)
%87 = call i32 @kill_time(i32 50)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
store i8 -88, i8* inttoptr (i64 4294705158 to i8*)
%90 = load i8, i8* inttoptr (i64 4294705158 to i8*)
%91 = zext i8 %90 to i32
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
store i8 52, i8* inttoptr (i64 4294705159 to i8*)
%95 = load i8, i8* inttoptr (i64 4294705159 to i8*)
%96 = zext i8 %95 to i32
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 %96)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
store i8 -90, i8* inttoptr (i64 4294705168 to i8*)
%99 = load i8, i8* inttoptr (i64 4294705168 to i8*)
%100 = zext i8 %99 to i32
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0), i32 %100)
store i8 -80, i8* inttoptr (i64 4294705169 to i8*)
%102 = load i8, i8* inttoptr (i64 4294705169 to i8*)
%103 = zext i8 %102 to i32
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0), i32 %103)
store i8 18, i8* inttoptr (i64 4294705170 to i8*)
%105 = load i8, i8* inttoptr (i64 4294705170 to i8*)
%106 = zext i8 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.24, i64 0, i64 0), i32 %106)
store i8 48, i8* inttoptr (i64 4294705171 to i8*)
%108 = load i8, i8* inttoptr (i64 4294705171 to i8*)
%109 = zext i8 %108 to i32
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i32 %109)
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
store i8 0, i8* inttoptr (i64 4294705172 to i8*)
%112 = load i8, i8* inttoptr (i64 4294705172 to i8*)
%113 = zext i8 %112 to i32
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 %113)
store i8 0, i8* inttoptr (i64 4294705173 to i8*)
%115 = load i8, i8* inttoptr (i64 4294705173 to i8*)
%116 = zext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 %116)
store i8 0, i8* inttoptr (i64 4294705174 to i8*)
%118 = load i8, i8* inttoptr (i64 4294705174 to i8*)
%119 = zext i8 %118 to i32
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 %119)
store i8 0, i8* inttoptr (i64 4294705175 to i8*)
%121 = load i8, i8* inttoptr (i64 4294705175 to i8*)
%122 = zext i8 %121 to i32
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i32 %122)
%124 = load i8*, i8** %4
%125 = icmp eq i8* %124, getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0)
br i1 %125, label %126, label %128
126: ; preds = %63
%127 = call i32 (...) @self_testing_mode()
br label %128
128: ; preds = %126, %63
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%130 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%131 = zext i8 %130 to i32
%132 = and i32 %131, 254
%133 = trunc i32 %132 to i8
store i8 %133, i8* %5
%134 = load i8, i8* %5
store i8 %134, i8* inttoptr (i64 4294705152 to i8*)
%135 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%136 = zext i8 %135 to i32
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), i32 %136)
%138 = call i32 @kill_time(i32 50)
br label %139
139: ; preds = %128, %60
br label %140
140: ; preds = %139, %8
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"Basic\00"
@.str.4 = [26 x i8] c"control_register: 0x%X \0A\0A\00"
@.str.6 = [32 x i8] c"clock_divider_register: 0x%X \0A\0A\00"
@.str.9 = [31 x i8] c"bus timing register 0: 0x%X \0A\0A\00"
@.str.12 = [31 x i8] c"bus timing register 1: 0x%X \0A\0A\00"
@.str.14 = [34 x i8] c"acceptance code register: 0x%X \0A\0A\00"
@.str.16 = [34 x i8] c"acceptance mask register: 0x%X \0A\0A\00"
@.str.18 = [25 x i8] c"control_register 0x%X \0A\0A\00"
@.str.19 = [9 x i8] c"Extended\00"
@.str.22 = [35 x i8] c"acceptance code register 0: 0x%X \0A\00"
@.str.23 = [35 x i8] c"acceptance code register 1: 0x%X \0A\00"
@.str.24 = [35 x i8] c"acceptance code register 2: 0x%X \0A\00"
@.str.25 = [36 x i8] c"acceptance code register 3: 0x%X \0A\0A\00"
@.str.26 = [33 x i8] c"acceptance mask register: 0x%X \0A\00"
@.str.27 = [10 x i8] c"self_test\00"
@str.28 = [37 x i8] c"******** Extended Can Mode *********\00"
@str.31 = [48 x i8] c"Set clock divider register to extended can mode\00"
@str.40 = [37 x i8] c"********** Basic Can Mode **********\00"
@str.41 = [37 x i8] c"************************************\00"
@str.42 = [21 x i8] c"Switch on Reset Mode\00"
@str.43 = [45 x i8] c"Set clock divider register to basic can mode\00"
@str.44 = [26 x i8] c"Set bus timing register 0\00"
@str.45 = [44 x i8] c"Sync Jump Width = 2 Baudrate Prescaler = 1\00"
@str.46 = [26 x i8] c"Set bus timing register 1\00"
@str.47 = [29 x i8] c"SAM = 0 ---> Single Sampling\00"
@str.48 = [29 x i8] c"Set acceptance code register\00"
@str.49 = [29 x i8] c"Set acceptance mask register\00"
@str.50 = [22 x i8] c"Switch off reset mode\00"
define void @init_can(i8* readnone %0, i8* readnone %1) {
%3 = icmp eq i8* %0, getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
br i1 %3, label %4, label %30
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.41, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.40, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.41, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.42, i64 0, i64 0))
%9 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%10 = or i8 %9, 1
store i8 %10, i8* inttoptr (i64 4294705152 to i8*)
%11 = zext i8 %10 to i32
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.43, i64 0, i64 0))
%14 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%15 = and i8 %14, 120
%16 = or i8 %15, 7
store i8 %16, i8* inttoptr (i64 4294705183 to i8*)
%17 = zext i8 %16 to i32
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %17)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.44, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.45, i64 0, i64 0))
store i8 -88, i8* inttoptr (i64 4294705158 to i8*)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 168)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.46, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.47, i64 0, i64 0))
store i8 52, i8* inttoptr (i64 4294705159 to i8*)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 52)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.48, i64 0, i64 0))
store i8 -22, i8* inttoptr (i64 4294705156 to i8*)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 234)
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.49, i64 0, i64 0))
store i8 15, i8* inttoptr (i64 4294705157 to i8*)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i32 15)
%29 = tail call i32 @kill_time(i32 50)
br label %67
30: ; preds = %2
%31 = icmp eq i8* %0, getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0)
br i1 %31, label %32, label %75
32: ; preds = %30
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.41, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.28, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.41, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.42, i64 0, i64 0))
%37 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%38 = or i8 %37, 1
store i8 %38, i8* inttoptr (i64 4294705152 to i8*)
%39 = zext i8 %38 to i32
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = tail call i32 @kill_time(i32 50)
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.31, i64 0, i64 0))
%43 = load i8, i8* inttoptr (i64 4294705183 to i8*)
%44 = or i8 %43, -121
store i8 %44, i8* inttoptr (i64 4294705183 to i8*)
%45 = zext i8 %44 to i32
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %45)
%47 = tail call i32 @kill_time(i32 50)
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.44, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.45, i64 0, i64 0))
store i8 -88, i8* inttoptr (i64 4294705158 to i8*)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 168)
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.46, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.47, i64 0, i64 0))
store i8 52, i8* inttoptr (i64 4294705159 to i8*)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 52)
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.48, i64 0, i64 0))
store i8 -90, i8* inttoptr (i64 4294705168 to i8*)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0), i32 166)
store i8 -80, i8* inttoptr (i64 4294705169 to i8*)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0), i32 176)
store i8 18, i8* inttoptr (i64 4294705170 to i8*)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.24, i64 0, i64 0), i32 18)
store i8 48, i8* inttoptr (i64 4294705171 to i8*)
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i32 48)
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.49, i64 0, i64 0))
store i8 0, i8* inttoptr (i64 4294705172 to i8*)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 0)
store i8 0, i8* inttoptr (i64 4294705173 to i8*)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 0)
store i8 0, i8* inttoptr (i64 4294705174 to i8*)
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i32 0)
store i8 0, i8* inttoptr (i64 4294705175 to i8*)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i32 0)
%64 = icmp eq i8* %1, getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0)
br i1 %64, label %65, label %67
65: ; preds = %32
%66 = tail call i32 (...) @self_testing_mode()
br label %67
67: ; preds = %32, %65, %4
%68 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.50, i64 0, i64 0), %4 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.50, i64 0, i64 0), %65 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.50, i64 0, i64 0), %32 ]
%69 = tail call i32 @puts(i8* dereferenceable(1) %68)
%70 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%71 = and i8 %70, -2
store i8 %71, i8* inttoptr (i64 4294705152 to i8*)
%72 = zext i8 %71 to i32
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), i32 %72)
%74 = tail call i32 @kill_time(i32 50)
br label %75
75: ; preds = %67, %30
ret void
}