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


x86 assembly (clang, -O0):
<suspend_service>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <system@plt>
lea    0xef1(%rip),%rdi
call   1030 <system@plt>
lea    0xefc(%rip),%rdi
call   1030 <system@plt>
lea    0xf08(%rip),%rdi
call   1030 <system@plt>
lea    0xf14(%rip),%rdi
call   1030 <system@plt>
lea    0xf21(%rip),%rdi
call   1030 <system@plt>
lea    0xf2d(%rip),%rdi
call   1030 <system@plt>
lea    0xf37(%rip),%rdi
call   1030 <system@plt>
lea    0xf42(%rip),%rdi
call   1030 <system@plt>
lea    0xf69(%rip),%rdi
call   1030 <system@plt>
lea    0xf70(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<suspend_service>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <system@plt>
lea    0xef4(%rip),%rdi
call   1030 <system@plt>
lea    0xeff(%rip),%rdi
call   1030 <system@plt>
lea    0xf0b(%rip),%rdi
call   1030 <system@plt>
lea    0xf17(%rip),%rdi
call   1030 <system@plt>
lea    0xf24(%rip),%rdi
call   1030 <system@plt>
lea    0xf30(%rip),%rdi
call   1030 <system@plt>
lea    0xf3a(%rip),%rdi
call   1030 <system@plt>
lea    0xf45(%rip),%rdi
call   1030 <system@plt>
lea    0xf6c(%rip),%rdi
call   1030 <system@plt>
lea    0xf73(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

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

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