#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 */
scalar_t__ sprintf(char *, char *, char *);
int SwitchStateToString12(int infobyte, char *outstr) {
  int cnt = 0;
  if (infobyte & 0x40) {
    cnt += sprintf(outstr + cnt, "%s", "Channel A and B\n");
    if (infobyte & 0x80)
      cnt += sprintf(outstr + cnt, "%s", "Supply\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "No Supply\n");
    if (infobyte & 0x20)
      cnt += sprintf(outstr + cnt, "%s", "Activity on PIO-B\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "No activity on PIO-B\n");
    if (infobyte & 0x10)
      cnt += sprintf(outstr + cnt, "%s", "Activity on PIO-A\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "No activity on PIO-A\n");
    if (infobyte & 0x08)
      cnt += sprintf(outstr + cnt, "%s", "Hi level on PIO B\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Lo level on PIO B\n");
    if (infobyte & 0x04)
      cnt += sprintf(outstr + cnt, "%s", "Hi level on PIO A\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Lo level on PIO A\n");
    if (infobyte & 0x02)
      cnt += sprintf(outstr + cnt, "%s", "Channel B off\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Channel B on\n");
    if (infobyte & 0x01)
      cnt += sprintf(outstr + cnt, "%s", "Channel A off\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Channel A on\n");
  } else {
    cnt += sprintf(outstr + cnt, "%s", "Channel A\n");
    if (infobyte & 0x80)
      cnt += sprintf(outstr + cnt, "%s", "Supply\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "No Supply\n");
    if (infobyte & 0x10)
      cnt += sprintf(outstr + cnt, "%s", "Activity on PIO-A\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "No activity on PIO-A\n");
    if (infobyte & 0x04)
      cnt += sprintf(outstr + cnt, "%s", "Hi level on PIO A\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Lo level on PIO A\n");
    if (infobyte & 0x01)
      cnt += sprintf(outstr + cnt, "%s", "Channel A off\n");
    else
      cnt += sprintf(outstr + cnt, "%s", "Channel A on\n");
  }
  return cnt;
}


x86 assembly (clang, -O0):
<SwitchStateToString12>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     144d <SwitchStateToString12+0x33d>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xeb9(%rip),%rsi
lea    0xeb5(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11a1 <SwitchStateToString12+0x91>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xe7d(%rip),%rsi
lea    0xe8d(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    11cc <SwitchStateToString12+0xbc>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xe4d(%rip),%rsi
lea    0xe5a(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     120b <SwitchStateToString12+0xfb>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xe13(%rip),%rsi
lea    0xe2b(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1236 <SwitchStateToString12+0x126>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xde3(%rip),%rsi
lea    0xe0e(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1275 <SwitchStateToString12+0x165>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xda9(%rip),%rsi
lea    0xdea(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    12a0 <SwitchStateToString12+0x190>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xd79(%rip),%rsi
lea    0xdcd(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     12df <SwitchStateToString12+0x1cf>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xd3f(%rip),%rsi
lea    0xda9(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    130a <SwitchStateToString12+0x1fa>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xd0f(%rip),%rsi
lea    0xd8c(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1349 <SwitchStateToString12+0x239>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xcd5(%rip),%rsi
lea    0xd65(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1374 <SwitchStateToString12+0x264>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xca5(%rip),%rsi
lea    0xd48(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     13b3 <SwitchStateToString12+0x2a3>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xc6b(%rip),%rsi
lea    0xd21(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    13de <SwitchStateToString12+0x2ce>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xc3b(%rip),%rsi
lea    0xd00(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     141d <SwitchStateToString12+0x30d>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xc01(%rip),%rsi
lea    0xcd4(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1448 <SwitchStateToString12+0x338>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xbd1(%rip),%rsi
lea    0xcb3(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1627 <SwitchStateToString12+0x517>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xba1(%rip),%rsi
lea    0xc91(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     14b9 <SwitchStateToString12+0x3a9>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xb65(%rip),%rsi
lea    0xb75(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    14e4 <SwitchStateToString12+0x3d4>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xb35(%rip),%rsi
lea    0xb42(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1523 <SwitchStateToString12+0x413>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xafb(%rip),%rsi
lea    0xb3c(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    154e <SwitchStateToString12+0x43e>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xacb(%rip),%rsi
lea    0xb1f(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     158d <SwitchStateToString12+0x47d>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xa91(%rip),%rsi
lea    0xb21(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    15b8 <SwitchStateToString12+0x4a8>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xa61(%rip),%rsi
lea    0xb04(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     15f7 <SwitchStateToString12+0x4e7>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0xa27(%rip),%rsi
lea    0xafa(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1622 <SwitchStateToString12+0x512>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
lea    0x9f7(%rip),%rsi
lea    0xad9(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
jmp    1627 <SwitchStateToString12+0x517>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SwitchStateToString12>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
mov    %edi,%r15d
lea    0xed8(%rip),%r14
test   $0x40,%r15b
jne    11f1 <SwitchStateToString12+0xe1>
lea    0xfbe(%rip),%rdx
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
movslq %eax,%rbp
lea    (%r12,%rbp,1),%rdi
test   $0x80,%r15b
lea    0xebe(%rip),%rcx
lea    0xeba(%rip),%rdx
cmove  %rcx,%rdx
cmove  %rax,%rbp
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbx
add    %rbp,%rbx
test   $0x10,%r15b
lea    0xedd(%rip),%rax
lea    0xec3(%rip),%rdx
cmove  %rax,%rdx
movslq %ebx,%rdi
cmovne %rdi,%rbx
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%r13
add    %rbx,%r13
test   $0x4,%r15b
lea    0xefe(%rip),%rax
lea    0xee4(%rip),%rdx
cmove  %rax,%rdx
movslq %r13d,%rdi
cmovne %rdi,%r13
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbp
add    %r13,%rbp
test   $0x1,%r15b
movslq %ebp,%rax
lea    0xf0c(%rip),%rcx
lea    0xef6(%rip),%rdx
cmove  %rcx,%rdx
cmovne %rax,%rbp
jmp    132a <SwitchStateToString12+0x21a>
lea    0xe0b(%rip),%rdx
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
movslq %eax,%rbx
lea    (%r12,%rbx,1),%rdi
test   $0x80,%r15b
lea    0xdff(%rip),%rcx
lea    0xdfb(%rip),%rdx
cmove  %rcx,%rdx
cmove  %rax,%rbx
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbp
add    %rbx,%rbp
test   $0x20,%r15b
lea    0xdf5(%rip),%rax
lea    0xddb(%rip),%rdx
cmove  %rax,%rdx
movslq %ebp,%rdi
cmovne %rdi,%rbp
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbx
add    %rbp,%rbx
test   $0x10,%r15b
lea    0xdf0(%rip),%rax
lea    0xdd6(%rip),%rdx
cmove  %rax,%rdx
movslq %ebx,%rdi
cmovne %rdi,%rbx
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbp
add    %rbx,%rbp
test   $0x8,%r15b
lea    0xdeb(%rip),%rax
lea    0xdd1(%rip),%rdx
cmove  %rax,%rdx
movslq %ebp,%rdi
cmovne %rdi,%rbp
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
mov    %rax,%rbx
add    %rbp,%rbx
test   $0x4,%r15b
lea    0xde3(%rip),%rax
lea    0xdc9(%rip),%rdx
cmove  %rax,%rdx
movslq %ebx,%rdi
cmovne %rdi,%rbx
add    %r12,%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
add    %rbx,%rax
test   $0x2,%r15b
movslq %eax,%rbx
lea    0xdd7(%rip),%rax
lea    0xdc1(%rip),%rdx
cmove  %rax,%rdx
lea    (%r12,%rbx,1),%rdi
mov    %r14,%rsi
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x1,%r15b
movslq %ebx,%rax
lea    0xdcd(%rip),%rcx
lea    0xdb7(%rip),%rdx
cmove  %rcx,%rdx
mov    %rax,%rbp
add    %rax,%r12
lea    0xccc(%rip),%rsi
mov    %r12,%rdi
call   1030 <sprintf@plt>
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"Channel A and B\0A\00"
@.str.2 = [8 x i8] c"Supply\0A\00"
@.str.3 = [11 x i8] c"No Supply\0A\00"
@.str.4 = [19 x i8] c"Activity on PIO-B\0A\00"
@.str.5 = [22 x i8] c"No activity on PIO-B\0A\00"
@.str.6 = [19 x i8] c"Activity on PIO-A\0A\00"
@.str.7 = [22 x i8] c"No activity on PIO-A\0A\00"
@.str.8 = [19 x i8] c"Hi level on PIO B\0A\00"
@.str.9 = [19 x i8] c"Lo level on PIO B\0A\00"
@.str.10 = [19 x i8] c"Hi level on PIO A\0A\00"
@.str.11 = [19 x i8] c"Lo level on PIO A\0A\00"
@.str.12 = [15 x i8] c"Channel B off\0A\00"
@.str.13 = [14 x i8] c"Channel B on\0A\00"
@.str.14 = [15 x i8] c"Channel A off\0A\00"
@.str.15 = [14 x i8] c"Channel A on\0A\00"
@.str.16 = [11 x i8] c"Channel A\0A\00"
define i32 @SwitchStateToString12(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
store i32 0, i32* %5
%6 = load i32, i32* %3
%7 = and i32 %6, 64
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %187
9: ; preds = %2
%10 = load i8*, i8** %4
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %10, i64 %12
%14 = call i64 @sprintf(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = add nsw i64 %16, %14
%18 = trunc i64 %17 to i32
store i32 %18, i32* %5
%19 = load i32, i32* %3
%20 = and i32 %19, 128
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %9
%23 = load i8*, i8** %4
%24 = load i32, i32* %5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
%27 = call i64 @sprintf(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%28 = load i32, i32* %5
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, i32* %5
br label %42
32: ; preds = %9
%33 = load i8*, i8** %4
%34 = load i32, i32* %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %33, i64 %35
%37 = call i64 @sprintf(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = add nsw i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, i32* %5
br label %42
42: ; preds = %32, %22
%43 = load i32, i32* %3
%44 = and i32 %43, 32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %56
46: ; preds = %42
%47 = load i8*, i8** %4
%48 = load i32, i32* %5
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
%51 = call i64 @sprintf(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%52 = load i32, i32* %5
%53 = sext i32 %52 to i64
%54 = add nsw i64 %53, %51
%55 = trunc i64 %54 to i32
store i32 %55, i32* %5
br label %66
56: ; preds = %42
%57 = load i8*, i8** %4
%58 = load i32, i32* %5
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = call i64 @sprintf(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%62 = load i32, i32* %5
%63 = sext i32 %62 to i64
%64 = add nsw i64 %63, %61
%65 = trunc i64 %64 to i32
store i32 %65, i32* %5
br label %66
66: ; preds = %56, %46
%67 = load i32, i32* %3
%68 = and i32 %67, 16
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %80
70: ; preds = %66
%71 = load i8*, i8** %4
%72 = load i32, i32* %5
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %71, i64 %73
%75 = call i64 @sprintf(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%76 = load i32, i32* %5
%77 = sext i32 %76 to i64
%78 = add nsw i64 %77, %75
%79 = trunc i64 %78 to i32
store i32 %79, i32* %5
br label %90
80: ; preds = %66
%81 = load i8*, i8** %4
%82 = load i32, i32* %5
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %81, i64 %83
%85 = call i64 @sprintf(i8* %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%86 = load i32, i32* %5
%87 = sext i32 %86 to i64
%88 = add nsw i64 %87, %85
%89 = trunc i64 %88 to i32
store i32 %89, i32* %5
br label %90
90: ; preds = %80, %70
%91 = load i32, i32* %3
%92 = and i32 %91, 8
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %104
94: ; preds = %90
%95 = load i8*, i8** %4
%96 = load i32, i32* %5
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, i8* %95, i64 %97
%99 = call i64 @sprintf(i8* %98, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%100 = load i32, i32* %5
%101 = sext i32 %100 to i64
%102 = add nsw i64 %101, %99
%103 = trunc i64 %102 to i32
store i32 %103, i32* %5
br label %114
104: ; preds = %90
%105 = load i8*, i8** %4
%106 = load i32, i32* %5
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %105, i64 %107
%109 = call i64 @sprintf(i8* %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%110 = load i32, i32* %5
%111 = sext i32 %110 to i64
%112 = add nsw i64 %111, %109
%113 = trunc i64 %112 to i32
store i32 %113, i32* %5
br label %114
114: ; preds = %104, %94
%115 = load i32, i32* %3
%116 = and i32 %115, 4
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %128
118: ; preds = %114
%119 = load i8*, i8** %4
%120 = load i32, i32* %5
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, i8* %119, i64 %121
%123 = call i64 @sprintf(i8* %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%124 = load i32, i32* %5
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %5
br label %138
128: ; preds = %114
%129 = load i8*, i8** %4
%130 = load i32, i32* %5
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8, i8* %129, i64 %131
%133 = call i64 @sprintf(i8* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%134 = load i32, i32* %5
%135 = sext i32 %134 to i64
%136 = add nsw i64 %135, %133
%137 = trunc i64 %136 to i32
store i32 %137, i32* %5
br label %138
138: ; preds = %128, %118
%139 = load i32, i32* %3
%140 = and i32 %139, 2
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %152
142: ; preds = %138
%143 = load i8*, i8** %4
%144 = load i32, i32* %5
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, i8* %143, i64 %145
%147 = call i64 @sprintf(i8* %146, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%148 = load i32, i32* %5
%149 = sext i32 %148 to i64
%150 = add nsw i64 %149, %147
%151 = trunc i64 %150 to i32
store i32 %151, i32* %5
br label %162
152: ; preds = %138
%153 = load i8*, i8** %4
%154 = load i32, i32* %5
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, i8* %153, i64 %155
%157 = call i64 @sprintf(i8* %156, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%158 = load i32, i32* %5
%159 = sext i32 %158 to i64
%160 = add nsw i64 %159, %157
%161 = trunc i64 %160 to i32
store i32 %161, i32* %5
br label %162
162: ; preds = %152, %142
%163 = load i32, i32* %3
%164 = and i32 %163, 1
%165 = icmp ne i32 %164, 0
br i1 %165, label %166, label %176
166: ; preds = %162
%167 = load i8*, i8** %4
%168 = load i32, i32* %5
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i8, i8* %167, i64 %169
%171 = call i64 @sprintf(i8* %170, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
%172 = load i32, i32* %5
%173 = sext i32 %172 to i64
%174 = add nsw i64 %173, %171
%175 = trunc i64 %174 to i32
store i32 %175, i32* %5
br label %186
176: ; preds = %162
%177 = load i8*, i8** %4
%178 = load i32, i32* %5
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, i8* %177, i64 %179
%181 = call i64 @sprintf(i8* %180, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%182 = load i32, i32* %5
%183 = sext i32 %182 to i64
%184 = add nsw i64 %183, %181
%185 = trunc i64 %184 to i32
store i32 %185, i32* %5
br label %186
186: ; preds = %176, %166
br label %293
187: ; preds = %2
%188 = load i8*, i8** %4
%189 = load i32, i32* %5
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, i8* %188, i64 %190
%192 = call i64 @sprintf(i8* %191, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
%193 = load i32, i32* %5
%194 = sext i32 %193 to i64
%195 = add nsw i64 %194, %192
%196 = trunc i64 %195 to i32
store i32 %196, i32* %5
%197 = load i32, i32* %3
%198 = and i32 %197, 128
%199 = icmp ne i32 %198, 0
br i1 %199, label %200, label %210
200: ; preds = %187
%201 = load i8*, i8** %4
%202 = load i32, i32* %5
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i8, i8* %201, i64 %203
%205 = call i64 @sprintf(i8* %204, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%206 = load i32, i32* %5
%207 = sext i32 %206 to i64
%208 = add nsw i64 %207, %205
%209 = trunc i64 %208 to i32
store i32 %209, i32* %5
br label %220
210: ; preds = %187
%211 = load i8*, i8** %4
%212 = load i32, i32* %5
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i8, i8* %211, i64 %213
%215 = call i64 @sprintf(i8* %214, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%216 = load i32, i32* %5
%217 = sext i32 %216 to i64
%218 = add nsw i64 %217, %215
%219 = trunc i64 %218 to i32
store i32 %219, i32* %5
br label %220
220: ; preds = %210, %200
%221 = load i32, i32* %3
%222 = and i32 %221, 16
%223 = icmp ne i32 %222, 0
br i1 %223, label %224, label %234
224: ; preds = %220
%225 = load i8*, i8** %4
%226 = load i32, i32* %5
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i8, i8* %225, i64 %227
%229 = call i64 @sprintf(i8* %228, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%230 = load i32, i32* %5
%231 = sext i32 %230 to i64
%232 = add nsw i64 %231, %229
%233 = trunc i64 %232 to i32
store i32 %233, i32* %5
br label %244
234: ; preds = %220
%235 = load i8*, i8** %4
%236 = load i32, i32* %5
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i8, i8* %235, i64 %237
%239 = call i64 @sprintf(i8* %238, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%240 = load i32, i32* %5
%241 = sext i32 %240 to i64
%242 = add nsw i64 %241, %239
%243 = trunc i64 %242 to i32
store i32 %243, i32* %5
br label %244
244: ; preds = %234, %224
%245 = load i32, i32* %3
%246 = and i32 %245, 4
%247 = icmp ne i32 %246, 0
br i1 %247, label %248, label %258
248: ; preds = %244
%249 = load i8*, i8** %4
%250 = load i32, i32* %5
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds i8, i8* %249, i64 %251
%253 = call i64 @sprintf(i8* %252, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%254 = load i32, i32* %5
%255 = sext i32 %254 to i64
%256 = add nsw i64 %255, %253
%257 = trunc i64 %256 to i32
store i32 %257, i32* %5
br label %268
258: ; preds = %244
%259 = load i8*, i8** %4
%260 = load i32, i32* %5
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds i8, i8* %259, i64 %261
%263 = call i64 @sprintf(i8* %262, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%264 = load i32, i32* %5
%265 = sext i32 %264 to i64
%266 = add nsw i64 %265, %263
%267 = trunc i64 %266 to i32
store i32 %267, i32* %5
br label %268
268: ; preds = %258, %248
%269 = load i32, i32* %3
%270 = and i32 %269, 1
%271 = icmp ne i32 %270, 0
br i1 %271, label %272, label %282
272: ; preds = %268
%273 = load i8*, i8** %4
%274 = load i32, i32* %5
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i8, i8* %273, i64 %275
%277 = call i64 @sprintf(i8* %276, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
%278 = load i32, i32* %5
%279 = sext i32 %278 to i64
%280 = add nsw i64 %279, %277
%281 = trunc i64 %280 to i32
store i32 %281, i32* %5
br label %292
282: ; preds = %268
%283 = load i8*, i8** %4
%284 = load i32, i32* %5
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds i8, i8* %283, i64 %285
%287 = call i64 @sprintf(i8* %286, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%288 = load i32, i32* %5
%289 = sext i32 %288 to i64
%290 = add nsw i64 %289, %287
%291 = trunc i64 %290 to i32
store i32 %291, i32* %5
br label %292
292: ; preds = %282, %272
br label %293
293: ; preds = %292, %186
%294 = load i32, i32* %5
ret i32 %294
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"Channel A and B\0A\00"
@.str.2 = [8 x i8] c"Supply\0A\00"
@.str.3 = [11 x i8] c"No Supply\0A\00"
@.str.4 = [19 x i8] c"Activity on PIO-B\0A\00"
@.str.5 = [22 x i8] c"No activity on PIO-B\0A\00"
@.str.6 = [19 x i8] c"Activity on PIO-A\0A\00"
@.str.7 = [22 x i8] c"No activity on PIO-A\0A\00"
@.str.8 = [19 x i8] c"Hi level on PIO B\0A\00"
@.str.9 = [19 x i8] c"Lo level on PIO B\0A\00"
@.str.10 = [19 x i8] c"Hi level on PIO A\0A\00"
@.str.11 = [19 x i8] c"Lo level on PIO A\0A\00"
@.str.12 = [15 x i8] c"Channel B off\0A\00"
@.str.13 = [14 x i8] c"Channel B on\0A\00"
@.str.14 = [15 x i8] c"Channel A off\0A\00"
@.str.15 = [14 x i8] c"Channel A on\0A\00"
@.str.16 = [11 x i8] c"Channel A\0A\00"
define i32 @SwitchStateToString12(i32 %0, i8* %1) {
%3 = and i32 %0, 64
%4 = icmp eq i32 %3, 0
br i1 %4, label %77, label %5
5: ; preds = %2
%6 = tail call i64 @sprintf(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%7 = and i32 %0, 128
%8 = icmp eq i32 %7, 0
%9 = shl i64 %6, 32
%10 = ashr exact i64 %9, 32
%11 = getelementptr inbounds i8, i8* %1, i64 %10
%12 = select i1 %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
%13 = select i1 %8, i64 %6, i64 %10
%14 = tail call i64 @sprintf(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%15 = add i64 %14, %13
%16 = and i32 %0, 32
%17 = icmp eq i32 %16, 0
%18 = shl i64 %15, 32
%19 = ashr exact i64 %18, 32
%20 = shl i64 %15, 32
%21 = ashr exact i64 %20, 32
%22 = select i1 %17, i64 %19, i64 %21
%23 = select i1 %17, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0)
%24 = select i1 %17, i64 %15, i64 %21
%25 = getelementptr inbounds i8, i8* %1, i64 %22
%26 = tail call i64 @sprintf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %23)
%27 = add i64 %26, %24
%28 = and i32 %0, 16
%29 = icmp eq i32 %28, 0
%30 = shl i64 %27, 32
%31 = ashr exact i64 %30, 32
%32 = shl i64 %27, 32
%33 = ashr exact i64 %32, 32
%34 = select i1 %29, i64 %31, i64 %33
%35 = select i1 %29, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0)
%36 = select i1 %29, i64 %27, i64 %33
%37 = getelementptr inbounds i8, i8* %1, i64 %34
%38 = tail call i64 @sprintf(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %35)
%39 = add i64 %38, %36
%40 = and i32 %0, 8
%41 = icmp eq i32 %40, 0
%42 = shl i64 %39, 32
%43 = ashr exact i64 %42, 32
%44 = shl i64 %39, 32
%45 = ashr exact i64 %44, 32
%46 = select i1 %41, i64 %43, i64 %45
%47 = select i1 %41, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0)
%48 = select i1 %41, i64 %39, i64 %45
%49 = getelementptr inbounds i8, i8* %1, i64 %46
%50 = tail call i64 @sprintf(i8* %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %47)
%51 = add i64 %50, %48
%52 = and i32 %0, 4
%53 = icmp eq i32 %52, 0
%54 = shl i64 %51, 32
%55 = ashr exact i64 %54, 32
%56 = shl i64 %51, 32
%57 = ashr exact i64 %56, 32
%58 = select i1 %53, i64 %55, i64 %57
%59 = select i1 %53, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0)
%60 = select i1 %53, i64 %51, i64 %57
%61 = getelementptr inbounds i8, i8* %1, i64 %58
%62 = tail call i64 @sprintf(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %59)
%63 = add i64 %62, %60
%64 = and i32 %0, 2
%65 = icmp eq i32 %64, 0
%66 = shl i64 %63, 32
%67 = ashr exact i64 %66, 32
%68 = select i1 %65, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0)
%69 = getelementptr inbounds i8, i8* %1, i64 %67
%70 = tail call i64 @sprintf(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %68)
%71 = add i64 %70, %63
%72 = and i32 %0, 1
%73 = icmp eq i32 %72, 0
%74 = shl i64 %71, 32
%75 = ashr exact i64 %74, 32
%76 = select i1 %73, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0)
br label %118
77: ; preds = %2
%78 = tail call i64 @sprintf(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
%79 = and i32 %0, 128
%80 = icmp eq i32 %79, 0
%81 = shl i64 %78, 32
%82 = ashr exact i64 %81, 32
%83 = getelementptr inbounds i8, i8* %1, i64 %82
%84 = select i1 %80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
%85 = select i1 %80, i64 %78, i64 %82
%86 = tail call i64 @sprintf(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %84)
%87 = add i64 %86, %85
%88 = and i32 %0, 16
%89 = icmp eq i32 %88, 0
%90 = shl i64 %87, 32
%91 = ashr exact i64 %90, 32
%92 = shl i64 %87, 32
%93 = ashr exact i64 %92, 32
%94 = select i1 %89, i64 %91, i64 %93
%95 = select i1 %89, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0)
%96 = select i1 %89, i64 %87, i64 %93
%97 = getelementptr inbounds i8, i8* %1, i64 %94
%98 = tail call i64 @sprintf(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %95)
%99 = add i64 %98, %96
%100 = and i32 %0, 4
%101 = icmp eq i32 %100, 0
%102 = shl i64 %99, 32
%103 = ashr exact i64 %102, 32
%104 = shl i64 %99, 32
%105 = ashr exact i64 %104, 32
%106 = select i1 %101, i64 %103, i64 %105
%107 = select i1 %101, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0)
%108 = select i1 %101, i64 %99, i64 %105
%109 = getelementptr inbounds i8, i8* %1, i64 %106
%110 = tail call i64 @sprintf(i8* %109, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %107)
%111 = add i64 %110, %108
%112 = and i32 %0, 1
%113 = icmp eq i32 %112, 0
%114 = shl i64 %111, 32
%115 = ashr exact i64 %114, 32
%116 = select i1 %113, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0)
%117 = select i1 %113, i64 %111, i64 %115
br label %118
118: ; preds = %77, %5
%119 = phi i64 [ %75, %5 ], [ %115, %77 ]
%120 = phi i8* [ %76, %5 ], [ %116, %77 ]
%121 = phi i64 [ %75, %5 ], [ %117, %77 ]
%122 = getelementptr inbounds i8, i8* %1, i64 %119
%123 = tail call i64 @sprintf(i8* %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %120)
%124 = add i64 %123, %121
%125 = trunc i64 %124 to i32
ret i32 %125
}