#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*/ printf(char *);
int /*<<< orphan*/ remove(char *);
int system(char *);
int main() {
  system("cp /usr/share/doc/o-notice/.onotice ~/.onotice");
  int dwnsus = 0;
  printf(
      "*******************  Obuntu NOTICE Board  ************************\n");
  dwnsus = system("wget http://www.bishnu.comli.com/osacnotice.zip -o log.txt");
  if (dwnsus == 0) {
    system(" mv -f osacnotice.zip ~/.onotice");
  }
  system(" cat ~/.onotice");
  printf(
      "************************************ Customized by OSAC Lerners **\n");
  remove("log.txt");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1040 <system@plt>
movl   $0x0,-0x8(%rbp)
lea    0xed6(%rip),%rdi
call   1050 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1040 <system@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1183 <main+0x53>
lea    0xf30(%rip),%rdi
call   1040 <system@plt>
lea    0xf45(%rip),%rdi
call   1040 <system@plt>
lea    0xf49(%rip),%rdi
call   1050 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <remove@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1050 <system@plt>
lea    0xf57(%rip),%rdi
call   1040 <puts@plt>
lea    0xedf(%rip),%rdi
call   1050 <system@plt>
test   %eax,%eax
jne    1165 <main+0x35>
lea    0xf0a(%rip),%rdi
call   1050 <system@plt>
lea    0xf1f(%rip),%rdi
call   1050 <system@plt>
lea    0xf66(%rip),%rdi
call   1040 <puts@plt>
lea    0xede(%rip),%rdi
call   1030 <remove@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [47 x i8] c"cp /usr/share/doc/o-notice/.onotice ~/.onotice\00"
@.str.1 = [68 x i8] c"******************* Obuntu NOTICE Board ************************\0A\00"
@.str.2 = [59 x i8] c"wget http://www.bishnu.comli.com/osacnotice.zip -o log.txt\00"
@.str.3 = [33 x i8] c" mv -f osacnotice.zip ~/.onotice\00"
@.str.4 = [16 x i8] c" cat ~/.onotice\00"
@.str.5 = [68 x i8] c"************************************ Customized by OSAC Lerners **\0A\00"
@.str.6 = [8 x i8] c"log.txt\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @system(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @system(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %10
10: ; preds = %8, %0
%11 = call i32 @system(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @remove(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [47 x i8] c"cp /usr/share/doc/o-notice/.onotice ~/.onotice\00"
@.str.2 = [59 x i8] c"wget http://www.bishnu.comli.com/osacnotice.zip -o log.txt\00"
@.str.3 = [33 x i8] c" mv -f osacnotice.zip ~/.onotice\00"
@.str.4 = [16 x i8] c" cat ~/.onotice\00"
@.str.6 = [8 x i8] c"log.txt\00"
@str = [67 x i8] c"******************* Obuntu NOTICE Board ************************\00"
@str.7 = [67 x i8] c"************************************ Customized by OSAC Lerners **\00"
define i32 @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %7
7: ; preds = %5, %0
%8 = tail call i32 @system(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.7, i64 0, i64 0))
%10 = tail call i32 @remove(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}