#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 */
typedef int /*<<< orphan*/ start_cmd;
typedef int /*<<< orphan*/ content;

/* Variables and functions */
int IPC_CREAT;
int /*<<< orphan*/ IPC_RMID;
int getopt(int, char **, char *);
int /*<<< orphan*/ memcpy(char *, char *, scalar_t__);
int /*<<< orphan*/ optarg;
int optind;
int /*<<< orphan*/ printf(char *, ...);
char *shmat(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ shmctl(int, int /*<<< orphan*/, int /*<<< orphan*/ *);
int shmget(int, int, int);
int /*<<< orphan*/ show_help();
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ strncpy(char *, int /*<<< orphan*/, int);
int main(int argc, char **argv) {
  char start_cmd[20] = {0};
  char content[1024] = {0};
  char *ptr;
  int c;
  while ((c = getopt(argc, argv, "s:c:")) != -1) {
    switch (c) {
    case 's':
      strncpy(start_cmd, optarg, sizeof(start_cmd));
      break;
    case 'c':
      strncpy(content, optarg, sizeof(content));
      break;
    case '?':
      show_help();
      return -1;
    }
  }
  if (optind == 1) {
    show_help();
    return -1;
  }
  if (strcmp(start_cmd, "") == 0) {
    printf("error: please use -s option to set start_cmd\n");
    return -1;
  } else if (strcmp(start_cmd, "create") == 0) {
    int shm_id = shmget(0x1, 1024, 0640 | IPC_CREAT);
    ptr = shmat(shm_id, NULL, 0);
  } else if (strcmp(start_cmd, "close") == 0) {
    int shm_id = shmget(0x1, 0, 0640 | IPC_CREAT);
    shmctl(shm_id, IPC_RMID, NULL);
  } else if (strcmp(start_cmd, "write") == 0) {
    int shm_id = shmget(0x1, 0, 0640 | IPC_CREAT);
    ptr = shmat(shm_id, NULL, 0);
    memcpy(ptr, content, strlen(content) + 1);
  } else if (strcmp(start_cmd, "read") == 0) {
    int shm_id = shmget(0x1, 0, 0640 | IPC_CREAT);
    ptr = shmat(shm_id, NULL, 0);
    printf("%s\n", ptr);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe06(%rip),%rdx
call   10b0 <getopt@plt>
mov    %eax,-0x43c(%rbp)
cmp    $0xffffffff,%eax
je     12a3 <main+0xf3>
mov    -0x43c(%rbp),%eax
mov    %eax,-0x450(%rbp)
sub    $0x3f,%eax
je     128b <main+0xdb>
jmp    1228 <main+0x78>
mov    -0x450(%rbp),%eax
sub    $0x63,%eax
je     126c <main+0xbc>
jmp    123c <main+0x8c>
mov    -0x450(%rbp),%eax
sub    $0x73,%eax
jne    129e <main+0xee>
jmp    1250 <main+0xa0>
lea    -0x30(%rbp),%rdi
mov    0x2d9d(%rip),%rax
mov    (%rax),%esi
mov    $0x14,%edx
call   1030 <strncpy@plt>
jmp    129e <main+0xee>
lea    -0x430(%rbp),%rdi
mov    0x2d7e(%rip),%rax
mov    (%rax),%esi
mov    $0x400,%edx
call   1030 <strncpy@plt>
jmp    129e <main+0xee>
mov    $0x0,%al
call   1090 <show_help@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14ca <main+0x31a>
jmp    11ec <main+0x3c>
mov    0x2d36(%rip),%rax
cmpl   $0x1,(%rax)
jne    12c6 <main+0x116>
mov    $0x0,%al
call   1090 <show_help@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14ca <main+0x31a>
lea    -0x30(%rbp),%rdi
lea    0xd61(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12fa <main+0x14a>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14ca <main+0x31a>
lea    -0x30(%rbp),%rdi
lea    0xd2e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1355 <main+0x1a5>
mov    0x2cad(%rip),%rax
mov    (%rax),%edx
or     $0x1a0,%edx
mov    $0x1,%edi
mov    $0x400,%esi
call   10d0 <shmget@plt>
mov    %eax,-0x440(%rbp)
mov    -0x440(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
mov    %rax,-0x438(%rbp)
jmp    14be <main+0x30e>
lea    -0x30(%rbp),%rdi
lea    0xcda(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <main+0x1fd>
mov    0x2c52(%rip),%rax
mov    (%rax),%edx
or     $0x1a0,%edx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    %eax,-0x444(%rbp)
mov    -0x444(%rbp),%edi
mov    0x2c33(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
mov    %eax,%edx
call   10a0 <shmctl@plt>
jmp    14b9 <main+0x309>
lea    -0x30(%rbp),%rdi
lea    0xc88(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1447 <main+0x297>
mov    0x2bfa(%rip),%rax
mov    (%rax),%edx
or     $0x1a0,%edx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    %eax,-0x448(%rbp)
mov    -0x448(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rax
mov    %rax,-0x460(%rbp)
lea    -0x430(%rbp),%rax
mov    %rax,-0x458(%rbp)
lea    -0x430(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x460(%rbp),%rdi
mov    -0x458(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1080 <memcpy@plt>
jmp    14b4 <main+0x304>
lea    -0x30(%rbp),%rdi
lea    0xbf4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    14af <main+0x2ff>
mov    0x2b60(%rip),%rax
mov    (%rax),%edx
or     $0x1a0,%edx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    %eax,-0x44c(%rbp)
mov    -0x44c(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rsi
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14b4 <main+0x304>
jmp    14b9 <main+0x309>
jmp    14be <main+0x30e>
jmp    14c3 <main+0x313>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
lea    0x20(%rsp),%r14
mov    $0x400,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xe10(%rip),%r15
mov    0x2e01(%rip),%r13
mov    %rsp,%r12
jmp    1216 <main+0x66>
nopl   0x0(%rax)
cmp    $0x63,%eax
jne    1240 <main+0x90>
mov    0x0(%r13),%esi
mov    %r14,%rdi
mov    $0x400,%edx
call   1030 <strncpy@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   10b0 <getopt@plt>
cmp    $0x72,%eax
jle    1200 <main+0x50>
cmp    $0x73,%eax
jne    1216 <main+0x66>
mov    0x0(%r13),%esi
mov    %r12,%rdi
mov    $0x14,%edx
call   1030 <strncpy@plt>
jmp    1216 <main+0x66>
cmp    $0xffffffff,%eax
je     124c <main+0x9c>
cmp    $0x3f,%eax
jne    1216 <main+0x66>
jmp    1258 <main+0xa8>
mov    0x2d8d(%rip),%rax
cmpl   $0x1,(%rax)
jne    1278 <main+0xc8>
xor    %eax,%eax
call   1090 <show_help@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd85(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1326 <main+0x176>
lea    0xd6e(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1337 <main+0x187>
lea    0xd5d(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1366 <main+0x1b6>
lea    0xd4b(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1399 <main+0x1e9>
lea    0xd39(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    1264 <main+0xb4>
mov    0x2ccf(%rip),%rax
mov    $0x1a0,%edx
or     (%rax),%edx
xor    %ebx,%ebx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    %eax,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
mov    %rax,%rdi
call   1040 <puts@plt>
jmp    1264 <main+0xb4>
lea    0xcf0(%rip),%rdi
call   1040 <puts@plt>
jmp    125f <main+0xaf>
mov    0x2c8a(%rip),%rax
mov    $0x1a0,%edx
or     (%rax),%edx
mov    $0x1,%edi
mov    $0x400,%esi
call   10d0 <shmget@plt>
xor    %ebx,%ebx
mov    %eax,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
jmp    1264 <main+0xb4>
mov    0x2c5b(%rip),%rax
mov    $0x1a0,%edx
or     (%rax),%edx
xor    %ebx,%ebx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    0x2c47(%rip),%rcx
mov    (%rcx),%esi
mov    %eax,%edi
xor    %edx,%edx
call   10a0 <shmctl@plt>
jmp    1264 <main+0xb4>
mov    0x2c28(%rip),%rax
mov    $0x1a0,%edx
or     (%rax),%edx
xor    %ebx,%ebx
mov    $0x1,%edi
xor    %esi,%esi
call   10d0 <shmget@plt>
mov    %eax,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10c0 <shmat@plt>
mov    %rax,%rbp
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %rbp,%rdi
mov    %r14,%rsi
call   1080 <memcpy@plt>
jmp    1264 <main+0xb4>

LLVM IR (-O0):
@.str = [5 x i8] c"s:c:\00"
@optarg = global i32 0
@optind = global i32 0
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [46 x i8] c"error: please use -s option to set start_cmd\0A\00"
@.str.3 = [7 x i8] c"create\00"
@IPC_CREAT = global i32 0
@.str.4 = [6 x i8] c"close\00"
@IPC_RMID = global i32 0
@.str.5 = [6 x i8] c"write\00"
@.str.6 = [5 x i8] c"read\00"
@.str.7 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20 x i8]
%7 = alloca [1024 x i8]
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = bitcast [20 x i8]* %6 to i8*
%15 = bitcast [1024 x i8]* %7 to i8*
br label %16
16: ; preds = %33, %2
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = call i32 @getopt(i32 %17, i8** %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %19, i32* %9
%20 = icmp ne i32 %19, -1
br i1 %20, label %21, label %34
21: ; preds = %16
%22 = load i32, i32* %9
switch i32 %22, label %33 [
i32 115, label %23
i32 99, label %27
i32 63, label %31
]
23: ; preds = %21
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%25 = load i32, i32* @optarg
%26 = call i32 @strncpy(i8* %24, i32 %25, i32 20)
br label %33
27: ; preds = %21
%28 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%29 = load i32, i32* @optarg
%30 = call i32 @strncpy(i8* %28, i32 %29, i32 1024)
br label %33
31: ; preds = %21
%32 = call i32 (...) @show_help()
store i32 -1, i32* %3
br label %99
33: ; preds = %21, %27, %23
br label %16
34: ; preds = %16
%35 = load i32, i32* @optind
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 (...) @show_help()
store i32 -1, i32* %3
br label %99
39: ; preds = %34
%40 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %99
45: ; preds = %39
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, i32* @IPC_CREAT
%51 = or i32 416, %50
%52 = call i32 @shmget(i32 1, i32 1024, i32 %51)
store i32 %52, i32* %10
%53 = load i32, i32* %10
%54 = call i8* @shmat(i32 %53, i32* null, i32 0)
store i8* %54, i8** %8
br label %97
55: ; preds = %45
%56 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %66
59: ; preds = %55
%60 = load i32, i32* @IPC_CREAT
%61 = or i32 416, %60
%62 = call i32 @shmget(i32 1, i32 0, i32 %61)
store i32 %62, i32* %11
%63 = load i32, i32* %11
%64 = load i32, i32* @IPC_RMID
%65 = call i32 @shmctl(i32 %63, i32 %64, i32* null)
br label %96
66: ; preds = %55
%67 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %66
%71 = load i32, i32* @IPC_CREAT
%72 = or i32 416, %71
%73 = call i32 @shmget(i32 1, i32 0, i32 %72)
store i32 %73, i32* %12
%74 = load i32, i32* %12
%75 = call i8* @shmat(i32 %74, i32* null, i32 0)
store i8* %75, i8** %8
%76 = load i8*, i8** %8
%77 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%78 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%79 = call i64 @strlen(i8* %78)
%80 = add nsw i64 %79, 1
%81 = call i32 @memcpy(i8* %76, i8* %77, i64 %80)
br label %95
82: ; preds = %66
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %94
86: ; preds = %82
%87 = load i32, i32* @IPC_CREAT
%88 = or i32 416, %87
%89 = call i32 @shmget(i32 1, i32 0, i32 %88)
store i32 %89, i32* %13
%90 = load i32, i32* %13
%91 = call i8* @shmat(i32 %90, i32* null, i32 0)
store i8* %91, i8** %8
%92 = load i8*, i8** %8
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %92)
br label %94
94: ; preds = %86, %82
br label %95
95: ; preds = %94, %70
br label %96
96: ; preds = %95, %59
br label %97
97: ; preds = %96, %49
br label %98
98: ; preds = %97
store i32 0, i32* %3
br label %99
99: ; preds = %98, %43, %37, %31
%100 = load i32, i32* %3
ret i32 %100
}

LLVM IR (-O2):
@.str = [5 x i8] c"s:c:\00"
@optarg = global i32 0
@optind = global i32 0
@.str.1 = [1 x i8] zeroinitializer
@.str.3 = [7 x i8] c"create\00"
@IPC_CREAT = global i32 0
@.str.4 = [6 x i8] c"close\00"
@IPC_RMID = global i32 0
@.str.5 = [6 x i8] c"write\00"
@.str.6 = [5 x i8] c"read\00"
@str = [45 x i8] c"error: please use -s option to set start_cmd\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [20 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
br label %7
7: ; preds = %9, %2
%8 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
switch i32 %8, label %9 [
i32 -1, label %18
i32 115, label %10
i32 99, label %13
i32 63, label %16
]
9: ; preds = %7, %13, %10
br label %7
10: ; preds = %7
%11 = load i32, i32* @optarg
%12 = call i32 @strncpy(i8* %5, i32 %11, i32 20)
br label %9
13: ; preds = %7
%14 = load i32, i32* @optarg
%15 = call i32 @strncpy(i8* %6, i32 %14, i32 1024)
br label %9
16: ; preds = %7
%17 = call i32 (...) @show_help()
br label %65
18: ; preds = %7
%19 = load i32, i32* @optind
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 (...) @show_help()
br label %65
23: ; preds = %18
%24 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
br label %65
28: ; preds = %23
%29 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = load i32, i32* @IPC_CREAT
%33 = or i32 %32, 416
%34 = call i32 @shmget(i32 1, i32 1024, i32 %33)
%35 = call i8* @shmat(i32 %34, i32* null, i32 0)
br label %65
36: ; preds = %28
%37 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %36
%40 = load i32, i32* @IPC_CREAT
%41 = or i32 %40, 416
%42 = call i32 @shmget(i32 1, i32 0, i32 %41)
%43 = load i32, i32* @IPC_RMID
%44 = call i32 @shmctl(i32 %42, i32 %43, i32* null)
br label %65
45: ; preds = %36
%46 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %45
%49 = load i32, i32* @IPC_CREAT
%50 = or i32 %49, 416
%51 = call i32 @shmget(i32 1, i32 0, i32 %50)
%52 = call i8* @shmat(i32 %51, i32* null, i32 0)
%53 = call i64 @strlen(i8* %6)
%54 = add nsw i64 %53, 1
%55 = call i32 @memcpy(i8* %52, i8* %6, i64 %54)
br label %65
56: ; preds = %45
%57 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %56
%60 = load i32, i32* @IPC_CREAT
%61 = or i32 %60, 416
%62 = call i32 @shmget(i32 1, i32 0, i32 %61)
%63 = call i8* @shmat(i32 %62, i32* null, i32 0)
%64 = call i32 @puts(i8* dereferenceable(1) %63)
br label %65
65: ; preds = %39, %56, %59, %48, %31, %26, %21, %16
%66 = phi i32 [ -1, %16 ], [ -1, %21 ], [ -1, %26 ], [ 0, %31 ], [ 0, %48 ], [ 0, %59 ], [ 0, %56 ], [ 0, %39 ]
ret i32 %66
}