#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*/ system(char *);
void resume_service(void) {
  system("/etc/init.d/apache start");
  system("/etc/init.d/samba start");
  system("/etc/init.d/ushare start");
  system("/etc/init.d/telnet start");
  system("/etc/init.d/dnsmasq start");
  system("/usr/mips/cgi-bin/script/auto_connect.sh  &");
  system("/usr/mips/cgi-bin/script/config_dns.sh  &");
  system("/usr/mips/cgi-bin/script/control_newshair.sh  start");
  system("/usr/mips/cgi-bin/script/check_shair.sh &");
  system("dm_server &");
  system("dm_monitor &");
}


x86 assembly (clang, -O0):
<resume_service>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <system@plt>
lea    0xef2(%rip),%rdi
call   1030 <system@plt>
lea    0xefe(%rip),%rdi
call   1030 <system@plt>
lea    0xf0b(%rip),%rdi
call   1030 <system@plt>
lea    0xf18(%rip),%rdi
call   1030 <system@plt>
lea    0xf26(%rip),%rdi
call   1030 <system@plt>
lea    0xf46(%rip),%rdi
call   1030 <system@plt>
lea    0xf64(%rip),%rdi
call   1030 <system@plt>
lea    0xf8c(%rip),%rdi
call   1030 <system@plt>
lea    0xfaa(%rip),%rdi
call   1030 <system@plt>
lea    0xfaa(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<resume_service>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <system@plt>
lea    0xef5(%rip),%rdi
call   1030 <system@plt>
lea    0xf01(%rip),%rdi
call   1030 <system@plt>
lea    0xf0e(%rip),%rdi
call   1030 <system@plt>
lea    0xf1b(%rip),%rdi
call   1030 <system@plt>
lea    0xf29(%rip),%rdi
call   1030 <system@plt>
lea    0xf49(%rip),%rdi
call   1030 <system@plt>
lea    0xf67(%rip),%rdi
call   1030 <system@plt>
lea    0xf8f(%rip),%rdi
call   1030 <system@plt>
lea    0xfad(%rip),%rdi
call   1030 <system@plt>
lea    0xfad(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"/etc/init.d/apache start\00"
@.str.1 = [24 x i8] c"/etc/init.d/samba start\00"
@.str.2 = [25 x i8] c"/etc/init.d/ushare start\00"
@.str.3 = [25 x i8] c"/etc/init.d/telnet start\00"
@.str.4 = [26 x i8] c"/etc/init.d/dnsmasq start\00"
@.str.5 = [44 x i8] c"/usr/mips/cgi-bin/script/auto_connect.sh &\00"
@.str.6 = [42 x i8] c"/usr/mips/cgi-bin/script/config_dns.sh &\00"
@.str.7 = [52 x i8] c"/usr/mips/cgi-bin/script/control_newshair.sh start\00"
@.str.8 = [42 x i8] c"/usr/mips/cgi-bin/script/check_shair.sh &\00"
@.str.9 = [12 x i8] c"dm_server &\00"
@.str.10 = [13 x i8] c"dm_monitor &\00"
define void @resume_service() {
%1 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @system(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"/etc/init.d/apache start\00"
@.str.1 = [24 x i8] c"/etc/init.d/samba start\00"
@.str.2 = [25 x i8] c"/etc/init.d/ushare start\00"
@.str.3 = [25 x i8] c"/etc/init.d/telnet start\00"
@.str.4 = [26 x i8] c"/etc/init.d/dnsmasq start\00"
@.str.5 = [44 x i8] c"/usr/mips/cgi-bin/script/auto_connect.sh &\00"
@.str.6 = [42 x i8] c"/usr/mips/cgi-bin/script/config_dns.sh &\00"
@.str.7 = [52 x i8] c"/usr/mips/cgi-bin/script/control_newshair.sh start\00"
@.str.8 = [42 x i8] c"/usr/mips/cgi-bin/script/check_shair.sh &\00"
@.str.9 = [12 x i8] c"dm_server &\00"
@.str.10 = [13 x i8] c"dm_monitor &\00"
define void @resume_service() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
ret void
}