#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 */
struct sembuf {
  int sem_num;
  int sem_op;
  scalar_t__ sem_flg;
};
typedef scalar_t__ key_t;

/* Variables and functions */
scalar_t__ ftok(char *, int);
int /*<<< orphan*/ printf(char *);
int semget(scalar_t__, int, int);
int semop(int, struct sembuf *, int);
void *shmat(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int shmdt(void *);
int shmget(scalar_t__, int, int);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char *argv[]) {
  struct sembuf operations[2];
  void *shm_address;
  int semid, shmid, rc;
  key_t semkey, shmkey;
  semkey = ftok("/dev/null", 1);
  if (semkey == (key_t)-1) {
    printf("main: ftok() for sem failed\n");
    return -1;
  }
  shmkey = ftok("/dev/null", 1);
  if (shmkey == (key_t)-1) {
    printf("main: ftok() for shm failed\n");
    return -1;
  }
  semid = semget(semkey, 2, 0666);
  if (semid == -1) {
    printf("main: semget() failed\n");
    return -1;
  }
  shmid = shmget(shmkey, 50, 0666);
  if (shmid == -1) {
    printf("main: shmget() failed\n");
    return -1;
  }
  shm_address = shmat(shmid, NULL, 0);
  if (shm_address == NULL) {
    printf("main: shmat() failed\n");
    return -1;
  }
  operations[0].sem_num = 0;
  operations[0].sem_op = 0;
  operations[0].sem_flg = 0;
  operations[1].sem_num = 0;
  operations[1].sem_op = 1;
  operations[1].sem_flg = 0;
  rc = semop(semid, operations, 2);
  if (rc == -1) {
    printf("main: semop() failed\n");
    return -1;
  }
  strcpy((char *)shm_address, "Hello from Client");
  operations[0].sem_num = 0;
  operations[0].sem_op = -1;
  operations[0].sem_flg = 0;
  operations[1].sem_num = 1;
  operations[1].sem_op = 1;
  operations[1].sem_flg = 0;
  rc = semop(semid, operations, 2);
  if (rc == -1) {
    printf("main: semop() failed\n");
    return -1;
  }
  rc = shmdt(shm_address);
  if (rc == -1) {
    printf("main: shmdt() failed\n");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe63(%rip),%rdi
mov    $0x1,%esi
call   10a0 <ftok@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0xffffffffffffffff,-0x50(%rbp)
jne    11ce <main+0x4e>
lea    0xe4d(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
lea    0xe2b(%rip),%rdi
mov    $0x1,%esi
call   10a0 <ftok@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0xffffffffffffffff,-0x58(%rbp)
jne    1206 <main+0x86>
lea    0xe32(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
mov    -0x50(%rbp),%rdi
mov    $0x2,%esi
mov    $0x1b6,%edx
call   1030 <semget@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    123e <main+0xbe>
lea    0xe17(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
mov    -0x58(%rbp),%rdi
mov    $0x32,%esi
mov    $0x1b6,%edx
call   1080 <shmget@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0xffffffff,-0x40(%rbp)
jne    1276 <main+0xf6>
lea    0xdf6(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
mov    -0x40(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1070 <shmat@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12ab <main+0x12b>
lea    0xdd8(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x1c(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x3c(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x2,%edx
call   1090 <semop@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    130d <main+0x18d>
lea    0xd8c(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
mov    -0x38(%rbp),%rdi
lea    0xd86(%rip),%rsi
call   1040 <strcpy@plt>
movl   $0x0,-0x30(%rbp)
movl   $0xffffffff,-0x2c(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x1c(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x3c(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x2,%edx
call   1090 <semop@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    137f <main+0x1ff>
lea    0xd1a(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
mov    -0x38(%rbp),%rdi
call   1050 <shmdt@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    13ad <main+0x22d>
lea    0xd14(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b4 <main+0x234>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
lea    0xe71(%rip),%rdi
mov    $0x1,%esi
call   10a0 <ftok@plt>
cmp    $0xffffffffffffffff,%rax
je     12b6 <main+0x136>
mov    %rax,%rbp
lea    0xe53(%rip),%rdi
mov    $0x1,%esi
call   10a0 <ftok@plt>
cmp    $0xffffffffffffffff,%rax
je     12bf <main+0x13f>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    $0x2,%esi
mov    $0x1b6,%edx
call   1030 <semget@plt>
cmp    $0xffffffff,%eax
je     12c8 <main+0x148>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x32,%esi
mov    $0x1b6,%edx
call   1080 <shmget@plt>
cmp    $0xffffffff,%eax
je     12d1 <main+0x151>
mov    %eax,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <shmat@plt>
test   %rax,%rax
je     12e3 <main+0x163>
mov    %rax,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movabs $0x100000000,%rax
mov    %rax,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    %rsp,%rsi
mov    %ebp,%edi
mov    $0x2,%edx
call   1090 <semop@plt>
cmp    $0xffffffff,%eax
je     12da <main+0x15a>
lea    0xdb9(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
movabs $0xffffffff00000000,%rax
ff ff ff
mov    %rax,(%rsp)
movq   $0x0,0x8(%rsp)
movabs $0x100000001,%rax
mov    %rax,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    %rsp,%rsi
mov    %ebp,%edi
mov    $0x2,%edx
call   1090 <semop@plt>
cmp    $0xffffffff,%eax
je     12da <main+0x15a>
mov    %r14,%rdi
call   1060 <shmdt@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0xffffffff,%ecx
jne    12f4 <main+0x174>
lea    0xd68(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xde6(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xdc1(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xda2(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xd83(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xd50(%rip),%rdi
jmp    12ea <main+0x16a>
lea    0xd5c(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.sembuf = type { i32, i32, i64 }
@.str = [10 x i8] c"/dev/null\00"
@.str.1 = [29 x i8] c"main: ftok() for sem failed\0A\00"
@.str.2 = [29 x i8] c"main: ftok() for shm failed\0A\00"
@.str.3 = [23 x i8] c"main: semget() failed\0A\00"
@.str.4 = [23 x i8] c"main: shmget() failed\0A\00"
@.str.5 = [22 x i8] c"main: shmat() failed\0A\00"
@.str.6 = [22 x i8] c"main: semop() failed\0A\00"
@.str.7 = [18 x i8] c"Hello from Client\00"
@.str.8 = [22 x i8] c"main: shmdt() failed\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x %struct.sembuf]
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i64 @ftok(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
store i64 %13, i64* %11
%14 = load i64, i64* %11
%15 = icmp eq i64 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
18: ; preds = %2
%19 = call i64 @ftok(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
store i64 %19, i64* %12
%20 = load i64, i64* %12
%21 = icmp eq i64 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
24: ; preds = %18
%25 = load i64, i64* %11
%26 = call i32 @semget(i64 %25, i32 2, i32 438)
store i32 %26, i32* %8
%27 = load i32, i32* %8
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
31: ; preds = %24
%32 = load i64, i64* %12
%33 = call i32 @shmget(i64 %32, i32 50, i32 438)
store i32 %33, i32* %9
%34 = load i32, i32* %9
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
38: ; preds = %31
%39 = load i32, i32* %9
%40 = call i8* @shmat(i32 %39, i32* null, i32 0)
store i8* %40, i8** %7
%41 = load i8*, i8** %7
%42 = icmp eq i8* %41, null
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
45: ; preds = %38
%46 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%47 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %46, i32 0, i32 0
store i32 0, i32* %47
%48 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%49 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %48, i32 0, i32 1
store i32 0, i32* %49
%50 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%51 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %50, i32 0, i32 2
store i64 0, i64* %51
%52 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%53 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %52, i32 0, i32 0
store i32 0, i32* %53
%54 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%55 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %54, i32 0, i32 1
store i32 1, i32* %55
%56 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%57 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %56, i32 0, i32 2
store i64 0, i64* %57
%58 = load i32, i32* %8
%59 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%60 = call i32 @semop(i32 %58, %struct.sembuf* %59, i32 2)
store i32 %60, i32* %10
%61 = load i32, i32* %10
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %65
63: ; preds = %45
%64 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
65: ; preds = %45
%66 = load i8*, i8** %7
%67 = call i32 @strcpy(i8* %66, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%68 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%69 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %68, i32 0, i32 0
store i32 0, i32* %69
%70 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%71 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %70, i32 0, i32 1
store i32 -1, i32* %71
%72 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%73 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %72, i32 0, i32 2
store i64 0, i64* %73
%74 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%75 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %74, i32 0, i32 0
store i32 1, i32* %75
%76 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%77 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %76, i32 0, i32 1
store i32 1, i32* %77
%78 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 1
%79 = getelementptr inbounds %struct.sembuf, %struct.sembuf* %78, i32 0, i32 2
store i64 0, i64* %79
%80 = load i32, i32* %8
%81 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %6, i64 0, i64 0
%82 = call i32 @semop(i32 %80, %struct.sembuf* %81, i32 2)
store i32 %82, i32* %10
%83 = load i32, i32* %10
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %87
85: ; preds = %65
%86 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
87: ; preds = %65
%88 = load i8*, i8** %7
%89 = call i32 @shmdt(i8* %88)
store i32 %89, i32* %10
%90 = load i32, i32* %10
%91 = icmp eq i32 %90, -1
br i1 %91, label %92, label %94
92: ; preds = %87
%93 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
store i32 -1, i32* %3
br label %95
94: ; preds = %87
store i32 0, i32* %3
br label %95
95: ; preds = %94, %92, %85, %63, %43, %36, %29, %22, %16
%96 = load i32, i32* %3
ret i32 %96
}

LLVM IR (-O2):
%struct.sembuf = type { i32, i32, i64 }
@.str = [10 x i8] c"/dev/null\00"
@.str.7 = [18 x i8] c"Hello from Client\00"
@str = [21 x i8] c"main: shmdt() failed\00"
@str.10 = [21 x i8] c"main: semop() failed\00"
@str.11 = [21 x i8] c"main: shmat() failed\00"
@str.12 = [22 x i8] c"main: shmget() failed\00"
@str.13 = [22 x i8] c"main: semget() failed\00"
@str.14 = [28 x i8] c"main: ftok() for shm failed\00"
@str.15 = [28 x i8] c"main: ftok() for sem failed\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x %struct.sembuf]
%4 = bitcast [2 x %struct.sembuf]* %3 to i8*
%5 = tail call i64 @ftok(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = icmp eq i64 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.15, i64 0, i64 0))
br label %53
9: ; preds = %2
%10 = tail call i64 @ftok(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1)
%11 = icmp eq i64 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.14, i64 0, i64 0))
br label %53
14: ; preds = %9
%15 = tail call i32 @semget(i64 %5, i32 2, i32 438)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.13, i64 0, i64 0))
br label %53
19: ; preds = %14
%20 = tail call i32 @shmget(i64 %10, i32 50, i32 438)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.12, i64 0, i64 0))
br label %53
24: ; preds = %19
%25 = tail call i8* @shmat(i32 %20, i32* null, i32 0)
%26 = icmp eq i8* %25, null
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0))
br label %53
29: ; preds = %24
%30 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 0
%31 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 1, i32 1
%32 = bitcast [2 x %struct.sembuf]* %3 to i8*
store i32 1, i32* %31
%33 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 1, i32 2
store i64 0, i64* %33
%34 = call i32 @semop(i32 %15, %struct.sembuf* %30, i32 2)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
br label %53
38: ; preds = %29
%39 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 0, i32 0
%40 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 1, i32 0
%41 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 0, i32 2
%42 = getelementptr inbounds [2 x %struct.sembuf], [2 x %struct.sembuf]* %3, i64 0, i64 0, i32 1
%43 = call i32 @strcpy(i8* %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %39
store i32 -1, i32* %42
store i64 0, i64* %41
store i32 1, i32* %40
store i32 1, i32* %31
store i64 0, i64* %33
%44 = call i32 @semop(i32 %15, %struct.sembuf* %30, i32 2)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
br label %53
48: ; preds = %38
%49 = call i32 @shmdt(i8* %25)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %53
53: ; preds = %48, %51, %46, %36, %27, %22, %17, %12, %7
%54 = phi i32 [ -1, %7 ], [ -1, %12 ], [ -1, %17 ], [ -1, %22 ], [ -1, %27 ], [ -1, %36 ], [ -1, %46 ], [ -1, %51 ], [ 0, %48 ]
ret i32 %54
}