#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__ axp209_get_battery_voltage(int, float *);
scalar_t__ axp209_get_charge_current(int, float *);
scalar_t__ axp209_get_discharge_current(int, float *);
scalar_t__ axp209_get_ipsout_voltage(int, float *);
scalar_t__ axp209_get_temperature(int, float *);
scalar_t__ axp209_get_vbus_current(int, float *);
scalar_t__ axp209_get_vbus_voltage(int, float *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, float);
int /*<<< orphan*/ sprintf(char *, char *, float);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int axp209_get_data(int file, char *buf) {
  float value;
  if (axp209_get_vbus_voltage(file, &value) == 0) {
    fprintf(stderr, "Uvbus: %.4fV\n", value);
    char fields[64];
    sprintf(fields, "&field1=%.4f", value);
    strcat(buf, fields);
  }
  if (axp209_get_vbus_current(file, &value) == 0) {
    fprintf(stderr, "Ivbus: %.6fA\n", value);
    char fields[64];
    sprintf(fields, "&field2=%.6f", value);
    strcat(buf, fields);
  }
  if (axp209_get_temperature(file, &value) == 0) {
    fprintf(stderr, "Tchip: %.1f°C\n", value);
    char fields[64];
    sprintf(fields, "&field3=%.1f", value);
    strcat(buf, fields);
  }
  if (axp209_get_battery_voltage(file, &value) == 0) {
    fprintf(stderr, "Ubatt: %.4fV\n", value);
    char fields[64];
    sprintf(fields, "&field4=%.4f", value);
    strcat(buf, fields);
  }
  if (axp209_get_charge_current(file, &value) == 0) {
    fprintf(stderr, "Icharge: %.4fA\n", value);
    char fields[64];
    sprintf(fields, "&field5=%.4f", value);
    strcat(buf, fields);
  }
  if (axp209_get_discharge_current(file, &value) == 0) {
    fprintf(stderr, "Idischarge: %.4fA\n", value);
    char fields[64];
    sprintf(fields, "&field6=%.4f", value);
    strcat(buf, fields);
  }
  if (axp209_get_ipsout_voltage(file, &value) == 0) {
    fprintf(stderr, "Uipsout: %.4fV\n", value);
    char fields[64];
    sprintf(fields, "&field7=%.4f", value);
    strcat(buf, fields);
  }
  return 0;
}


x86 assembly (clang, -O0):
<axp209_get_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1050 <axp209_get_vbus_voltage@plt>
cmp    $0x0,%rax
jne    1204 <axp209_get_data+0x64>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xe23(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x60(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xe1c(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   10c0 <axp209_get_vbus_current@plt>
cmp    $0x0,%rax
jne    125c <axp209_get_data+0xbc>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xdec(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0xa0(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xde2(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1060 <axp209_get_temperature@plt>
cmp    $0x0,%rax
jne    12b4 <axp209_get_data+0x114>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xdaf(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0xe0(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xda7(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1030 <axp209_get_battery_voltage@plt>
cmp    $0x0,%rax
jne    130c <axp209_get_data+0x16c>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xd74(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x120(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xd6a(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1090 <axp209_get_charge_current@plt>
cmp    $0x0,%rax
jne    1364 <axp209_get_data+0x1c4>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xd37(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x160(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xd2f(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1080 <axp209_get_discharge_current@plt>
cmp    $0x0,%rax
jne    13bc <axp209_get_data+0x21c>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xcfc(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x1a0(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xcf7(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1a0(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x4(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1040 <axp209_get_ipsout_voltage@plt>
cmp    $0x0,%rax
jne    1414 <axp209_get_data+0x274>
mov    0x2c07(%rip),%rax
mov    (%rax),%edi
movss  -0x14(%rbp),%xmm0
lea    0xcc4(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x1e0(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
lea    0xcbc(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1e0(%rbp),%rsi
call   10a0 <strcat@plt>
xor    %eax,%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<axp209_get_data>:
push   %rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xc(%rsp),%rsi
call   1050 <axp209_get_vbus_voltage@plt>
test   %rax,%rax
jne    11fc <axp209_get_data+0x5c>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xe2e(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xe2a(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   10c0 <axp209_get_vbus_current@plt>
test   %rax,%rax
jne    124d <axp209_get_data+0xad>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xdf8(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xdf4(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   1060 <axp209_get_temperature@plt>
test   %rax,%rax
jne    129e <axp209_get_data+0xfe>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xdc2(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xdc0(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   1030 <axp209_get_battery_voltage@plt>
test   %rax,%rax
jne    12ef <axp209_get_data+0x14f>
mov    0x2d2a(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xd8e(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xd8a(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   1090 <axp209_get_charge_current@plt>
test   %rax,%rax
jne    1340 <axp209_get_data+0x1a0>
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xd58(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xd56(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   1080 <axp209_get_discharge_current@plt>
test   %rax,%rax
jne    1391 <axp209_get_data+0x1f1>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xd24(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xd25(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
call   1040 <axp209_get_ipsout_voltage@plt>
test   %rax,%rax
jne    13e2 <axp209_get_data+0x242>
mov    0x2c37(%rip),%rax
mov    (%rax),%edi
movss  0xc(%rsp),%xmm0
lea    0xcf3(%rip),%rsi
call   1070 <fprintf@plt>
movss  0xc(%rsp),%xmm0
lea    0xcf1(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <strcat@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"Uvbus: %.4fV\0A\00"
@.str.1 = [13 x i8] c"&field1=%.4f\00"
@.str.2 = [14 x i8] c"Ivbus: %.6fA\0A\00"
@.str.3 = [13 x i8] c"&field2=%.6f\00"
@.str.4 = [16 x i8] c"Tchip: %.1f\C2\B0C\0A\00"
@.str.5 = [13 x i8] c"&field3=%.1f\00"
@.str.6 = [14 x i8] c"Ubatt: %.4fV\0A\00"
@.str.7 = [13 x i8] c"&field4=%.4f\00"
@.str.8 = [16 x i8] c"Icharge: %.4fA\0A\00"
@.str.9 = [13 x i8] c"&field5=%.4f\00"
@.str.10 = [19 x i8] c"Idischarge: %.4fA\0A\00"
@.str.11 = [13 x i8] c"&field6=%.4f\00"
@.str.12 = [16 x i8] c"Uipsout: %.4fV\0A\00"
@.str.13 = [13 x i8] c"&field7=%.4f\00"
define i32 @axp209_get_data(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca float
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [64 x i8]
%9 = alloca [64 x i8]
%10 = alloca [64 x i8]
%11 = alloca [64 x i8]
%12 = alloca [64 x i8]
store i32 %0, i32* %3
store i8* %1, i8** %4
%13 = load i32, i32* %3
%14 = call i64 @axp209_get_vbus_voltage(i32 %13, float* %5)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = load float, float* %5
%19 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float %18)
%20 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%21 = load float, float* %5
%22 = call i32 @sprintf(i8* %20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %21)
%23 = load i8*, i8** %4
%24 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%25 = call i32 @strcat(i8* %23, i8* %24)
br label %26
26: ; preds = %16, %2
%27 = load i32, i32* %3
%28 = call i64 @axp209_get_vbus_current(i32 %27, float* %5)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %40
30: ; preds = %26
%31 = load i32, i32* @stderr
%32 = load float, float* %5
%33 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float %32)
%34 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%35 = load float, float* %5
%36 = call i32 @sprintf(i8* %34, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), float %35)
%37 = load i8*, i8** %4
%38 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%39 = call i32 @strcat(i8* %37, i8* %38)
br label %40
40: ; preds = %30, %26
%41 = load i32, i32* %3
%42 = call i64 @axp209_get_temperature(i32 %41, float* %5)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %54
44: ; preds = %40
%45 = load i32, i32* @stderr
%46 = load float, float* %5
%47 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), float %46)
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%49 = load float, float* %5
%50 = call i32 @sprintf(i8* %48, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), float %49)
%51 = load i8*, i8** %4
%52 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%53 = call i32 @strcat(i8* %51, i8* %52)
br label %54
54: ; preds = %44, %40
%55 = load i32, i32* %3
%56 = call i64 @axp209_get_battery_voltage(i32 %55, float* %5)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %68
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = load float, float* %5
%61 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), float %60)
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%63 = load float, float* %5
%64 = call i32 @sprintf(i8* %62, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), float %63)
%65 = load i8*, i8** %4
%66 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%67 = call i32 @strcat(i8* %65, i8* %66)
br label %68
68: ; preds = %58, %54
%69 = load i32, i32* %3
%70 = call i64 @axp209_get_charge_current(i32 %69, float* %5)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %82
72: ; preds = %68
%73 = load i32, i32* @stderr
%74 = load float, float* %5
%75 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), float %74)
%76 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%77 = load float, float* %5
%78 = call i32 @sprintf(i8* %76, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), float %77)
%79 = load i8*, i8** %4
%80 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%81 = call i32 @strcat(i8* %79, i8* %80)
br label %82
82: ; preds = %72, %68
%83 = load i32, i32* %3
%84 = call i64 @axp209_get_discharge_current(i32 %83, float* %5)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %96
86: ; preds = %82
%87 = load i32, i32* @stderr
%88 = load float, float* %5
%89 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), float %88)
%90 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%91 = load float, float* %5
%92 = call i32 @sprintf(i8* %90, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), float %91)
%93 = load i8*, i8** %4
%94 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%95 = call i32 @strcat(i8* %93, i8* %94)
br label %96
96: ; preds = %86, %82
%97 = load i32, i32* %3
%98 = call i64 @axp209_get_ipsout_voltage(i32 %97, float* %5)
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %110
100: ; preds = %96
%101 = load i32, i32* @stderr
%102 = load float, float* %5
%103 = call i32 @fprintf(i32 %101, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), float %102)
%104 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%105 = load float, float* %5
%106 = call i32 @sprintf(i8* %104, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), float %105)
%107 = load i8*, i8** %4
%108 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%109 = call i32 @strcat(i8* %107, i8* %108)
br label %110
110: ; preds = %100, %96
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"Uvbus: %.4fV\0A\00"
@.str.1 = [13 x i8] c"&field1=%.4f\00"
@.str.2 = [14 x i8] c"Ivbus: %.6fA\0A\00"
@.str.3 = [13 x i8] c"&field2=%.6f\00"
@.str.4 = [16 x i8] c"Tchip: %.1f\C2\B0C\0A\00"
@.str.5 = [13 x i8] c"&field3=%.1f\00"
@.str.6 = [14 x i8] c"Ubatt: %.4fV\0A\00"
@.str.7 = [13 x i8] c"&field4=%.4f\00"
@.str.8 = [16 x i8] c"Icharge: %.4fA\0A\00"
@.str.9 = [13 x i8] c"&field5=%.4f\00"
@.str.10 = [19 x i8] c"Idischarge: %.4fA\0A\00"
@.str.11 = [13 x i8] c"&field6=%.4f\00"
@.str.12 = [16 x i8] c"Uipsout: %.4fV\0A\00"
@.str.13 = [13 x i8] c"&field7=%.4f\00"
define i32 @axp209_get_data(i32 %0, i8* %1) {
%3 = alloca float
%4 = alloca [64 x i8]
%5 = alloca [64 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [64 x i8]
%9 = alloca [64 x i8]
%10 = alloca [64 x i8]
%11 = bitcast float* %3 to i8*
%12 = call i64 @axp209_get_vbus_voltage(i32 %0, float* %3)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load float, float* %3
%17 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float %16)
%18 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%19 = load float, float* %3
%20 = call i32 @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %19)
%21 = call i32 @strcat(i8* %1, i8* %18)
br label %22
22: ; preds = %14, %2
%23 = call i64 @axp209_get_vbus_current(i32 %0, float* %3)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %22
%26 = load i32, i32* @stderr
%27 = load float, float* %3
%28 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float %27)
%29 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%30 = load float, float* %3
%31 = call i32 @sprintf(i8* %29, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), float %30)
%32 = call i32 @strcat(i8* %1, i8* %29)
br label %33
33: ; preds = %25, %22
%34 = call i64 @axp209_get_temperature(i32 %0, float* %3)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %44
36: ; preds = %33
%37 = load i32, i32* @stderr
%38 = load float, float* %3
%39 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), float %38)
%40 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%41 = load float, float* %3
%42 = call i32 @sprintf(i8* %40, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), float %41)
%43 = call i32 @strcat(i8* %1, i8* %40)
br label %44
44: ; preds = %36, %33
%45 = call i64 @axp209_get_battery_voltage(i32 %0, float* %3)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = load i32, i32* @stderr
%49 = load float, float* %3
%50 = call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), float %49)
%51 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%52 = load float, float* %3
%53 = call i32 @sprintf(i8* %51, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), float %52)
%54 = call i32 @strcat(i8* %1, i8* %51)
br label %55
55: ; preds = %47, %44
%56 = call i64 @axp209_get_charge_current(i32 %0, float* %3)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %66
58: ; preds = %55
%59 = load i32, i32* @stderr
%60 = load float, float* %3
%61 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), float %60)
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%63 = load float, float* %3
%64 = call i32 @sprintf(i8* %62, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), float %63)
%65 = call i32 @strcat(i8* %1, i8* %62)
br label %66
66: ; preds = %58, %55
%67 = call i64 @axp209_get_discharge_current(i32 %0, float* %3)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %66
%70 = load i32, i32* @stderr
%71 = load float, float* %3
%72 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), float %71)
%73 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%74 = load float, float* %3
%75 = call i32 @sprintf(i8* %73, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), float %74)
%76 = call i32 @strcat(i8* %1, i8* %73)
br label %77
77: ; preds = %69, %66
%78 = call i64 @axp209_get_ipsout_voltage(i32 %0, float* %3)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %88
80: ; preds = %77
%81 = load i32, i32* @stderr
%82 = load float, float* %3
%83 = call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), float %82)
%84 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%85 = load float, float* %3
%86 = call i32 @sprintf(i8* %84, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), float %85)
%87 = call i32 @strcat(i8* %1, i8* %84)
br label %88
88: ; preds = %80, %77
ret i32 0
}