#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*/ execv(char *, char **);
int /*<<< orphan*/ logInfoMessage(char *);
void push_changes(char *directory) {
  char *args[] = {"find",    directory,
                  "-type",   "f",
                  "-cmin",   "-5",
                  "-printf", "'%TY-%Tm-%Td  %TT %u %p\n'",
                  ">",       "/root/logs/text.txt",
                  NULL};
  execv("/bin/find", args);
  logInfoMessage("push to live completed");
}


x86 assembly (clang, -O0):
<push_changes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xf19(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    0xeba(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xec4(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xeaa(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xea5(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe9d(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xe9a(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xea9(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xea0(%rip),%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x10(%rbp)
lea    -0x60(%rbp),%rsi
lea    0xe9d(%rip),%rdi
call   1040 <execv@plt>
lea    0xe9b(%rip),%rdi
call   1030 <logInfoMessage@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<push_changes>:
sub    $0x58,%rsp
lea    0xf21(%rip),%rax
mov    %rax,(%rsp)
mov    %rdi,0x8(%rsp)
lea    0xec5(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xece(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xeb3(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xead(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0xea4(%rip),%rax
mov    %rax,0x30(%rsp)
lea    0xea0(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xeae(%rip),%rax
mov    %rax,0x40(%rsp)
lea    0xea4(%rip),%rax
mov    %rax,0x48(%rsp)
movq   $0x0,0x50(%rsp)
lea    0xea3(%rip),%rdi
mov    %rsp,%rsi
call   1040 <execv@plt>
lea    0xe9e(%rip),%rdi
call   1030 <logInfoMessage@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"find\00"
@.str.1 = [6 x i8] c"-type\00"
@.str.2 = [2 x i8] c"f\00"
@.str.3 = [6 x i8] c"-cmin\00"
@.str.4 = [3 x i8] c"-5\00"
@.str.5 = [8 x i8] c"-printf\00"
@.str.6 = [26 x i8] c"'%TY-%Tm-%Td %TT %u %p\0A'\00"
@.str.7 = [2 x i8] c">\00"
@.str.8 = [20 x i8] c"/root/logs/text.txt\00"
@.str.9 = [10 x i8] c"/bin/find\00"
@.str.10 = [23 x i8] c"push to live completed\00"
define void @push_changes(i8* %0) {
%2 = alloca i8*
%3 = alloca [11 x i8*]
store i8* %0, i8** %2
%4 = getelementptr inbounds [11 x i8*], [11 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds i8*, i8** %4, i64 1
%6 = load i8*, i8** %2
store i8* %6, i8** %5
%7 = getelementptr inbounds i8*, i8** %5, i64 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds i8*, i8** %7, i64 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds i8*, i8** %8, i64 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds i8*, i8** %9, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds i8*, i8** %10, i64 1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds i8*, i8** %11, i64 1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds i8*, i8** %12, i64 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds i8*, i8** %13, i64 1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds i8*, i8** %14, i64 1
store i8* null, i8** %15
%16 = getelementptr inbounds [11 x i8*], [11 x i8*]* %3, i64 0, i64 0
%17 = call i32 @execv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8** %16)
%18 = call i32 @logInfoMessage(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"find\00"
@.str.1 = [6 x i8] c"-type\00"
@.str.2 = [2 x i8] c"f\00"
@.str.3 = [6 x i8] c"-cmin\00"
@.str.4 = [3 x i8] c"-5\00"
@.str.5 = [8 x i8] c"-printf\00"
@.str.6 = [26 x i8] c"'%TY-%Tm-%Td %TT %u %p\0A'\00"
@.str.7 = [2 x i8] c">\00"
@.str.8 = [20 x i8] c"/root/logs/text.txt\00"
@.str.9 = [10 x i8] c"/bin/find\00"
@.str.10 = [23 x i8] c"push to live completed\00"
define void @push_changes(i8* %0) {
%2 = alloca [11 x i8*]
%3 = bitcast [11 x i8*]* %2 to i8*
%4 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 1
store i8* %0, i8** %5
%6 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 4
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 5
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 6
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 7
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 8
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 9
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 10
store i8* null, i8** %14
%15 = call i32 @execv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8** %4)
%16 = call i32 @logInfoMessage(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
ret void
}