#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*/ display_header_show_battery_percentage(int /*<<< orphan*/);
int /*<<< orphan*/
display_header_show_gsm_signal_percentage(int /*<<< orphan*/);
int /*<<< orphan*/ display_header_show_proximity_level(int /*<<< orphan*/);
int /*<<< orphan*/ display_header_show_time(int /*<<< orphan*/);
int /*<<< orphan*/ service_fona_get_battery_percentage();
int /*<<< orphan*/ service_fona_get_gsm_signal_percentage();
int /*<<< orphan*/ service_proximity_get_level();
int /*<<< orphan*/ service_time_get_current_formatted_time();
void activity_header_refresh_in_main_loop() {
  display_header_show_time(service_time_get_current_formatted_time());
  display_header_show_proximity_level(service_proximity_get_level());
  display_header_show_battery_percentage(service_fona_get_battery_percentage());
  display_header_show_gsm_signal_percentage(
      service_fona_get_gsm_signal_percentage());
}


x86 assembly (clang, -O0):
<activity_header_refresh_in_main_loop>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <service_time_get_current_formatted_time@plt>
mov    %eax,%edi
call   1090 <display_header_show_time@plt>
mov    $0x0,%al
call   10a0 <service_proximity_get_level@plt>
mov    %eax,%edi
call   1040 <display_header_show_proximity_level@plt>
mov    $0x0,%al
call   1050 <service_fona_get_battery_percentage@plt>
mov    %eax,%edi
call   1030 <display_header_show_battery_percentage@plt>
mov    $0x0,%al
call   1080 <service_fona_get_gsm_signal_percentage@plt>
mov    %eax,%edi
call   1060 <display_header_show_gsm_signal_percentage@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<activity_header_refresh_in_main_loop>:
push   %rax
xor    %eax,%eax
call   1070 <service_time_get_current_formatted_time@plt>
mov    %eax,%edi
call   1090 <display_header_show_time@plt>
xor    %eax,%eax
call   10a0 <service_proximity_get_level@plt>
mov    %eax,%edi
call   1040 <display_header_show_proximity_level@plt>
xor    %eax,%eax
call   1050 <service_fona_get_battery_percentage@plt>
mov    %eax,%edi
call   1030 <display_header_show_battery_percentage@plt>
xor    %eax,%eax
call   1080 <service_fona_get_gsm_signal_percentage@plt>
mov    %eax,%edi
pop    %rax
jmp    1060 <display_header_show_gsm_signal_percentage@plt>

LLVM IR (-O0):
define void @activity_header_refresh_in_main_loop() {
%1 = call i32 (...) @service_time_get_current_formatted_time()
%2 = call i32 @display_header_show_time(i32 %1)
%3 = call i32 (...) @service_proximity_get_level()
%4 = call i32 @display_header_show_proximity_level(i32 %3)
%5 = call i32 (...) @service_fona_get_battery_percentage()
%6 = call i32 @display_header_show_battery_percentage(i32 %5)
%7 = call i32 (...) @service_fona_get_gsm_signal_percentage()
%8 = call i32 @display_header_show_gsm_signal_percentage(i32 %7)
ret void
}

LLVM IR (-O2):
define void @activity_header_refresh_in_main_loop() {
%1 = tail call i32 (...) @service_time_get_current_formatted_time()
%2 = tail call i32 @display_header_show_time(i32 %1)
%3 = tail call i32 (...) @service_proximity_get_level()
%4 = tail call i32 @display_header_show_proximity_level(i32 %3)
%5 = tail call i32 (...) @service_fona_get_battery_percentage()
%6 = tail call i32 @display_header_show_battery_percentage(i32 %5)
%7 = tail call i32 (...) @service_fona_get_gsm_signal_percentage()
%8 = tail call i32 @display_header_show_gsm_signal_percentage(i32 %7)
ret void
}