#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 */
typedef int u_char;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int print_pwr_desc(u_char *p) {
  int len = 1, i;
  u_char mask;
  const char **expp;
  static const char *pname[] = {
      "Nominal operating supply voltage",  "Minimum operating supply voltage",
      "Maximum operating supply voltage",  "Continuous supply current",
      "Max current average over 1 second", "Max current average over 10 ms",
      "Power down supply current",         "Reserved"};
  static const char *vexp[] = {"10uV",  "100uV", "1mV", "10mV",
                               "100mV", "1V",    "10V", "100V"};
  static const char *cexp[] = {"10nA", "1uA",  "10uA",  "100uA",
                               "1mA",  "10mA", "100mA", "1A"};
  static const char *mant[] = {"1", "1.2", "1.3", "1.5", "2", "2.5", "3", "3.5",
                               "4", "4.5", "5",   "5.5", "6", "7",   "8", "9"};
  mask = *p++;
  expp = vexp;
  for (i = 0; i < 8; i++)
    if (mask & (1 << i)) {
      len++;
      if (i >= 3)
        expp = cexp;
      printf("\t\t%s: ", pname[i]);
      printf("%s x %s", mant[(*p >> 3) & 0xF], expp[*p & 7]);
      while (*p & 0x80) {
        len++;
        p++;
        printf(", ext = 0x%x", *p);
      }
      printf("\n");
      p++;
    }
  return (len);
}


x86 assembly (clang, -O0):
<print_pwr_desc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
lea    0x2f32(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    1253 <print_pwr_desc+0x143>
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1240 <print_pwr_desc+0x130>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x3,-0x10(%rbp)
jl     118b <print_pwr_desc+0x7b>
lea    0x2f29(%rip),%rax
mov    %rax,-0x20(%rbp)
movslq -0x10(%rbp),%rcx
lea    0x2e9a(%rip),%rax
mov    (%rax,%rcx,8),%rsi
lea    0xfb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sar    $0x3,%eax
and    $0xf,%eax
movslq %eax,%rcx
lea    0x2f32(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    -0x20(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    (%rcx),%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xf7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1226 <print_pwr_desc+0x116>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xf4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e4 <print_pwr_desc+0xd4>
lea    0xf44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
jmp    1245 <print_pwr_desc+0x135>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1149 <print_pwr_desc+0x39>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_pwr_desc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r13
mov    (%rdi),%eax
mov    %eax,0x4(%rsp)
add    $0x4,%r13
mov    $0x1,%ebp
lea    0x2c5c(%rip),%r14
lea    0x1079(%rip),%r12
xor    %r15d,%r15d
jmp    1172 <print_pwr_desc+0x52>
mov    %r13,%rbx
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x4,%rbx
mov    %rbx,%r13
add    $0x1,%r15
cmp    $0x8,%r15
je     1214 <print_pwr_desc+0xf4>
mov    0x4(%rsp),%eax
bt     %r15d,%eax
jae    1164 <print_pwr_desc+0x44>
cmp    $0x3,%r15
lea    0x2c59(%rip),%rax
cmovae %rax,%r14
lea    0xe6e(%rip),%rax
movslq (%rax,%r15,4),%rsi
add    %rax,%rsi
lea    0x1015(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%eax
mov    %rax,%rcx
shr    %rcx
and    $0x3c,%ecx
lea    0xe65(%rip),%rdx
movslq (%rcx,%rdx,1),%rsi
add    %rdx,%rsi
and    $0x7,%eax
mov    (%r14,%rax,8),%rdx
lea    0xfec(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
testb  $0x80,0x0(%r13)
je     1150 <print_pwr_desc+0x30>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x4(%r13),%rbx
mov    0x4(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
testb  $0x80,0x4(%r13)
mov    %rbx,%r13
jne    11f0 <print_pwr_desc+0xd0>
jmp    1153 <print_pwr_desc+0x33>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@print_pwr_desc.pname = internal global [8 x i8*] [i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i32 0, i32 0)]
@.str = [33 x i8] c"Nominal operating supply voltage\00"
@.str.1 = [33 x i8] c"Minimum operating supply voltage\00"
@.str.2 = [33 x i8] c"Maximum operating supply voltage\00"
@.str.3 = [26 x i8] c"Continuous supply current\00"
@.str.4 = [34 x i8] c"Max current average over 1 second\00"
@.str.5 = [31 x i8] c"Max current average over 10 ms\00"
@.str.6 = [26 x i8] c"Power down supply current\00"
@.str.7 = [9 x i8] c"Reserved\00"
@print_pwr_desc.vexp = internal global [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0)]
@.str.8 = [5 x i8] c"10uV\00"
@.str.9 = [6 x i8] c"100uV\00"
@.str.10 = [4 x i8] c"1mV\00"
@.str.11 = [5 x i8] c"10mV\00"
@.str.12 = [6 x i8] c"100mV\00"
@.str.13 = [3 x i8] c"1V\00"
@.str.14 = [4 x i8] c"10V\00"
@.str.15 = [5 x i8] c"100V\00"
@print_pwr_desc.cexp = internal global [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0)]
@.str.16 = [5 x i8] c"10nA\00"
@.str.17 = [4 x i8] c"1uA\00"
@.str.18 = [5 x i8] c"10uA\00"
@.str.19 = [6 x i8] c"100uA\00"
@.str.20 = [4 x i8] c"1mA\00"
@.str.21 = [5 x i8] c"10mA\00"
@.str.22 = [6 x i8] c"100mA\00"
@.str.23 = [3 x i8] c"1A\00"
@print_pwr_desc.mant = internal global [16 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.39, i32 0, i32 0)]
@.str.24 = [2 x i8] c"1\00"
@.str.25 = [4 x i8] c"1.2\00"
@.str.26 = [4 x i8] c"1.3\00"
@.str.27 = [4 x i8] c"1.5\00"
@.str.28 = [2 x i8] c"2\00"
@.str.29 = [4 x i8] c"2.5\00"
@.str.30 = [2 x i8] c"3\00"
@.str.31 = [4 x i8] c"3.5\00"
@.str.32 = [2 x i8] c"4\00"
@.str.33 = [4 x i8] c"4.5\00"
@.str.34 = [2 x i8] c"5\00"
@.str.35 = [4 x i8] c"5.5\00"
@.str.36 = [2 x i8] c"6\00"
@.str.37 = [2 x i8] c"7\00"
@.str.38 = [2 x i8] c"8\00"
@.str.39 = [2 x i8] c"9\00"
@.str.40 = [7 x i8] c"\09\09%s: \00"
@.str.41 = [8 x i8] c"%s x %s\00"
@.str.42 = [13 x i8] c", ext = 0x%x\00"
@.str.43 = [2 x i8] c"\0A\00"
define i32 @print_pwr_desc(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
store i32* %0, i32** %2
store i32 1, i32* %3
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i32 1
store i32* %8, i32** %2
%9 = load i32, i32* %7
store i32 %9, i32* %5
store i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @print_pwr_desc.vexp, i64 0, i64 0), i8*** %6
store i32 0, i32* %4
br label %10
10: ; preds = %64, %1
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %67
13: ; preds = %10
%14 = load i32, i32* %5
%15 = load i32, i32* %4
%16 = shl i32 1, %15
%17 = and i32 %14, %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %63
19: ; preds = %13
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
%22 = load i32, i32* %4
%23 = icmp sge i32 %22, 3
br i1 %23, label %24, label %25
24: ; preds = %19
store i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @print_pwr_desc.cexp, i64 0, i64 0), i8*** %6
br label %25
25: ; preds = %24, %19
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [8 x i8*], [8 x i8*]* @print_pwr_desc.pname, i64 0, i64 %27
%29 = load i8*, i8** %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.40, i64 0, i64 0), i8* %29)
%31 = load i32*, i32** %2
%32 = load i32, i32* %31
%33 = ashr i32 %32, 3
%34 = and i32 %33, 15
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [16 x i8*], [16 x i8*]* @print_pwr_desc.mant, i64 0, i64 %35
%37 = load i8*, i8** %36
%38 = load i8**, i8*** %6
%39 = load i32*, i32** %2
%40 = load i32, i32* %39
%41 = and i32 %40, 7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %38, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.41, i64 0, i64 0), i8* %37, i8* %44)
br label %46
46: ; preds = %51, %25
%47 = load i32*, i32** %2
%48 = load i32, i32* %47
%49 = and i32 %48, 128
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %59
51: ; preds = %46
%52 = load i32, i32* %3
%53 = add nsw i32 %52, 1
store i32 %53, i32* %3
%54 = load i32*, i32** %2
%55 = getelementptr inbounds i32, i32* %54, i32 1
store i32* %55, i32** %2
%56 = load i32*, i32** %2
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), i32 %57)
br label %46
59: ; preds = %46
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.43, i64 0, i64 0))
%61 = load i32*, i32** %2
%62 = getelementptr inbounds i32, i32* %61, i32 1
store i32* %62, i32** %2
br label %63
63: ; preds = %59, %13
br label %64
64: ; preds = %63
%65 = load i32, i32* %4
%66 = add nsw i32 %65, 1
store i32 %66, i32* %4
br label %10
67: ; preds = %10
%68 = load i32, i32* %3
ret i32 %68
}

LLVM IR (-O2):
@reltable.print_pwr_desc = internal unnamed_addr constant [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.print_pwr_desc to i64)) to i32)]
@.str = [33 x i8] c"Nominal operating supply voltage\00"
@.str.1 = [33 x i8] c"Minimum operating supply voltage\00"
@.str.2 = [33 x i8] c"Maximum operating supply voltage\00"
@.str.3 = [26 x i8] c"Continuous supply current\00"
@.str.4 = [34 x i8] c"Max current average over 1 second\00"
@.str.5 = [31 x i8] c"Max current average over 10 ms\00"
@.str.6 = [26 x i8] c"Power down supply current\00"
@.str.7 = [9 x i8] c"Reserved\00"
@print_pwr_desc.vexp = internal unnamed_addr constant [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0)]
@.str.8 = [5 x i8] c"10uV\00"
@.str.9 = [6 x i8] c"100uV\00"
@.str.10 = [4 x i8] c"1mV\00"
@.str.11 = [5 x i8] c"10mV\00"
@.str.12 = [6 x i8] c"100mV\00"
@.str.13 = [3 x i8] c"1V\00"
@.str.14 = [4 x i8] c"10V\00"
@.str.15 = [5 x i8] c"100V\00"
@print_pwr_desc.cexp = internal unnamed_addr constant [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0)]
@.str.16 = [5 x i8] c"10nA\00"
@.str.17 = [4 x i8] c"1uA\00"
@.str.18 = [5 x i8] c"10uA\00"
@.str.19 = [6 x i8] c"100uA\00"
@.str.20 = [4 x i8] c"1mA\00"
@.str.21 = [5 x i8] c"10mA\00"
@.str.22 = [6 x i8] c"100mA\00"
@.str.23 = [3 x i8] c"1A\00"
@reltable.print_pwr_desc.44 = internal unnamed_addr constant [16 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.24 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.25 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.26 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.27 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.28 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.29 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.30 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.31 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.32 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.33 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.34 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.35 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.36 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.37 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.38 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.39 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_pwr_desc.44 to i64)) to i32)]
@.str.24 = [2 x i8] c"1\00"
@.str.25 = [4 x i8] c"1.2\00"
@.str.26 = [4 x i8] c"1.3\00"
@.str.27 = [4 x i8] c"1.5\00"
@.str.28 = [2 x i8] c"2\00"
@.str.29 = [4 x i8] c"2.5\00"
@.str.30 = [2 x i8] c"3\00"
@.str.31 = [4 x i8] c"3.5\00"
@.str.32 = [2 x i8] c"4\00"
@.str.33 = [4 x i8] c"4.5\00"
@.str.34 = [2 x i8] c"5\00"
@.str.35 = [4 x i8] c"5.5\00"
@.str.36 = [2 x i8] c"6\00"
@.str.37 = [2 x i8] c"7\00"
@.str.38 = [2 x i8] c"8\00"
@.str.39 = [2 x i8] c"9\00"
@.str.40 = [7 x i8] c"\09\09%s: \00"
@.str.41 = [8 x i8] c"%s x %s\00"
@.str.42 = [13 x i8] c", ext = 0x%x\00"
define i32 @print_pwr_desc(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
%3 = load i32, i32* %0
br label %4
4: ; preds = %1, %49
%5 = phi i64 [ 0, %1 ], [ %53, %49 ]
%6 = phi i8** [ getelementptr inbounds ([8 x i8*], [8 x i8*]* @print_pwr_desc.vexp, i64 0, i64 0), %1 ], [ %52, %49 ]
%7 = phi i32* [ %2, %1 ], [ %51, %49 ]
%8 = phi i32 [ 1, %1 ], [ %50, %49 ]
%9 = trunc i64 %5 to i32
%10 = shl nuw nsw i32 1, %9
%11 = and i32 %10, %3
%12 = icmp eq i32 %11, 0
br i1 %12, label %49, label %13
13: ; preds = %4
%14 = icmp ugt i64 %5, 2
%15 = select i1 %14, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @print_pwr_desc.cexp, i64 0, i64 0), i8** %6
%16 = shl i64 %5, 2
%17 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.print_pwr_desc to i8*), i64 %16)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.40, i64 0, i64 0), i8* %17)
%19 = load i32, i32* %7
%20 = lshr i32 %19, 3
%21 = and i32 %20, 15
%22 = zext i32 %21 to i64
%23 = shl i64 %22, 2
%24 = call i8* @llvm.load.relative.i64(i8* bitcast ([16 x i32]* @reltable.print_pwr_desc.44 to i8*), i64 %23)
%25 = and i32 %19, 7
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %15, i64 %26
%28 = load i8*, i8** %27
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.41, i64 0, i64 0), i8* %24, i8* %28)
%30 = add nsw i32 %8, 1
%31 = load i32, i32* %7
%32 = and i32 %31, 128
%33 = icmp eq i32 %32, 0
br i1 %33, label %44, label %34
34: ; preds = %13, %34
%35 = phi i32 [ %40, %34 ], [ %30, %13 ]
%36 = phi i32* [ %37, %34 ], [ %7, %13 ]
%37 = getelementptr inbounds i32, i32* %36, i64 1
%38 = load i32, i32* %37
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), i32 %38)
%40 = add nsw i32 %35, 1
%41 = load i32, i32* %37
%42 = and i32 %41, 128
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %34
44: ; preds = %34, %13
%45 = phi i32* [ %7, %13 ], [ %37, %34 ]
%46 = phi i32 [ %30, %13 ], [ %40, %34 ]
%47 = tail call i32 @putchar(i32 10)
%48 = getelementptr inbounds i32, i32* %45, i64 1
br label %49
49: ; preds = %4, %44
%50 = phi i32 [ %46, %44 ], [ %8, %4 ]
%51 = phi i32* [ %48, %44 ], [ %7, %4 ]
%52 = phi i8** [ %15, %44 ], [ %6, %4 ]
%53 = add nuw nsw i64 %5, 1
%54 = icmp eq i64 %53, 8
br i1 %54, label %55, label %4
55: ; preds = %49
ret i32 %50
}