#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*/ strcat(char *, char *);
int /*<<< orphan*/ system(char *);
void pgp_Befehle_aufrufen(char *id) {
  char syscall_null[30] = "gpg --recv-keys ";
  strcat(syscall_null, id);
  system(syscall_null);
  char syscall_eins[55] = "gpg --fingerprint ";
  strcat(syscall_eins, id);
  strcat(syscall_eins, " | grep = > fingerprint");
  system(syscall_eins);
  char syscall_name[60] = "gpg --fingerprint ";
  strcat(syscall_name, id);
  strcat(syscall_name, " | grep uid | head -1 > name");
  system(syscall_name);
}


x86 assembly (clang, -O0):
<pgp_Befehle_aufrufen>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeb2(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xeac(%rip),%ax
mov    %ax,-0x14(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0x30(%rbp),%rdi
call   1030 <system@plt>
lea    -0x70(%rbp),%rdi
lea    0xe8b(%rip),%rsi
mov    $0x37,%edx
call   1040 <memcpy@plt>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0x70(%rbp),%rdi
lea    0xee5(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x70(%rbp),%rdi
call   1030 <system@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x3c,%edx
call   1040 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1050 <strcat@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <system@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pgp_Befehle_aufrufen>:
push   %r14
push   %rbx
sub    $0xa8,%rsp
mov    %rdi,%rbx
movups 0xeda(%rip),%xmm0
movups %xmm0,0xe(%rsp)
movaps 0xec0(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <strcat@plt>
mov    %r14,%rdi
call   1030 <system@plt>
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movq   $0x0,0x4f(%rsp)
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <strcat@plt>
lea    0xefe(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcat@plt>
mov    %r14,%rdi
call   1030 <system@plt>
movups 0xed7(%rip),%xmm0
movups %xmm0,0x8c(%rsp)
movaps 0xebc(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe81(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
lea    0x60(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <strcat@plt>
lea    0xeb9(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcat@plt>
mov    %r14,%rdi
call   1030 <system@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.pgp_Befehle_aufrufen.syscall_null = [30 x i8] c"gpg --recv-keys \00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.pgp_Befehle_aufrufen.syscall_eins = [55 x i8] c"gpg --fingerprint \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 = [24 x i8] c" | grep = > fingerprint\00"
@__const.pgp_Befehle_aufrufen.syscall_name = [60 x i8] c"gpg --fingerprint \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.1 = [29 x i8] c" | grep uid | head -1 > name\00"
define void @pgp_Befehle_aufrufen(i8* %0) {
%2 = alloca i8*
%3 = alloca [30 x i8]
%4 = alloca [55 x i8]
%5 = alloca [60 x i8]
store i8* %0, i8** %2
%6 = bitcast [30 x i8]* %3 to i8*
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%8 = load i8*, i8** %2
%9 = call i32 @strcat(i8* %7, i8* %8)
%10 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%11 = call i32 @system(i8* %10)
%12 = bitcast [55 x i8]* %4 to i8*
%13 = getelementptr inbounds [55 x i8], [55 x i8]* %4, i64 0, i64 0
%14 = load i8*, i8** %2
%15 = call i32 @strcat(i8* %13, i8* %14)
%16 = getelementptr inbounds [55 x i8], [55 x i8]* %4, i64 0, i64 0
%17 = call i32 @strcat(i8* %16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%18 = getelementptr inbounds [55 x i8], [55 x i8]* %4, i64 0, i64 0
%19 = call i32 @system(i8* %18)
%20 = bitcast [60 x i8]* %5 to i8*
%21 = getelementptr inbounds [60 x i8], [60 x i8]* %5, i64 0, i64 0
%22 = load i8*, i8** %2
%23 = call i32 @strcat(i8* %21, i8* %22)
%24 = getelementptr inbounds [60 x i8], [60 x i8]* %5, i64 0, i64 0
%25 = call i32 @strcat(i8* %24, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%26 = getelementptr inbounds [60 x i8], [60 x i8]* %5, i64 0, i64 0
%27 = call i32 @system(i8* %26)
ret void
}

LLVM IR (-O2):
@__const.pgp_Befehle_aufrufen.syscall_null = [30 x i8] c"gpg --recv-keys \00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.pgp_Befehle_aufrufen.syscall_eins = [55 x i8] c"gpg --fingerprint \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 = [24 x i8] c" | grep = > fingerprint\00"
@__const.pgp_Befehle_aufrufen.syscall_name = [60 x i8] c"gpg --fingerprint \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.1 = [29 x i8] c" | grep uid | head -1 > name\00"
define void @pgp_Befehle_aufrufen(i8* %0) {
%2 = alloca [30 x i8]
%3 = alloca [55 x i8]
%4 = alloca [60 x i8]
%5 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%6 = call i32 @strcat(i8* %5, i8* %0)
%7 = call i32 @system(i8* %5)
%8 = getelementptr inbounds [55 x i8], [55 x i8]* %3, i64 0, i64 0
%9 = call i32 @strcat(i8* %8, i8* %0)
%10 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @system(i8* %8)
%12 = getelementptr inbounds [60 x i8], [60 x i8]* %4, i64 0, i64 0
%13 = call i32 @strcat(i8* %12, i8* %0)
%14 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @system(i8* %12)
ret void
}