int main(int argc, char *argv[]) {
  char commitCommand[150] = {"git commit -m "};
  strcat(commitCommand, "'");
  strcat(commitCommand, argv[1]);
  strcat(commitCommand, "'");
  printf("git add *\n");
  system("git add *");
  printf("%s\n", commitCommand);
  system(commitCommand);
  printf("git push origin master\n");
  system("git push origin master");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xea0(%rip),%rsi
mov    $0x96,%edx
call   1050 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
lea    0xf1e(%rip),%rsi
call   1060 <strcat@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1060 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xef7(%rip),%rsi
call   1060 <strcat@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <system@plt>
lea    -0xb0(%rbp),%rsi
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x0,%al
call   1030 <system@plt>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <system@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%r14
lea    0xe9c(%rip),%rsi
mov    %rsp,%rbx
mov    $0x96,%edx
mov    %rbx,%rdi
call   1060 <memcpy@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
movw   $0x27,(%rsp,%rax,1)
mov    0x8(%r14),%rsi
mov    %rbx,%rdi
call   1070 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
movw   $0x27,(%rsp,%rax,1)
lea    0xef3(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xed2(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.commitCommand = [150 x i8] c"git commit -m \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [2 x i8] c"'\00"
@.str.1 = [11 x i8] c"git add *\0A\00"
@.str.2 = [10 x i8] c"git add *\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [24 x i8] c"git push origin master\0A\00"
@.str.5 = [23 x i8] c"git push origin master\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [150 x i8]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = bitcast [150 x i8]* %5 to i8*
%7 = getelementptr inbounds [150 x i8], [150 x i8]* %5, i64 0, i64 0
%8 = call i8* @strcat(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [150 x i8], [150 x i8]* %5, i64 0, i64 0
%10 = load i8**, i8*** %4
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i8* @strcat(i8* %9, i8* %12)
%14 = getelementptr inbounds [150 x i8], [150 x i8]* %5, i64 0, i64 0
%15 = call i8* @strcat(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%18 = getelementptr inbounds [150 x i8], [150 x i8]* %5, i64 0, i64 0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [150 x i8], [150 x i8]* %5, i64 0, i64 0
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.commitCommand = [150 x i8] c"git commit -m \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@str = [10 x i8] c"git add *\00"
@str.6 = [23 x i8] c"git push origin master\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [150 x i8]
%4 = getelementptr inbounds [150 x i8], [150 x i8]* %3, i64 0, i64 0
%5 = call i64 @strlen(i8* %4)
%6 = getelementptr [150 x i8], [150 x i8]* %3, i64 0, i64 %5
%7 = bitcast i8* %6 to i16*
store i16 39, i16* %7
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = call i8* @strcat(i8* %4, i8* dereferenceable(1) %9)
%11 = call i64 @strlen(i8* %4)
%12 = getelementptr [150 x i8], [150 x i8]* %3, i64 0, i64 %11
%13 = bitcast i8* %12 to i16*
store i16 39, i16* %13
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%16 = call i32 @puts(i8* %4)
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @str.6, i64 0, i64 0))
ret i32 0
}