#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 subraster_struct {
  int dummy;
};

/* Variables and functions */
struct subraster_struct *noopsp;
int /*<<< orphan*/ subexpr;
struct subraster_struct *rastnoop(char **expression, int size,
                                  struct subraster_struct *basesp, int nargs,
                                  int arg2, int arg3) {
  char *texsubexpr(), subexpr[((((32768 - 1) + 1) / 2) - 1) + 1];
  struct subraster_struct *rasterize(), *noopsp = NULL;
  if (nargs != (-989898) && nargs > 0)
    while (--nargs >= 0)
      *expression = texsubexpr(*expression, subexpr, 0, "{", "}", 0, 0);
  return (noopsp);
}


x86 assembly (clang, -O0):
<rastnoop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4040,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movq   $0x0,-0x4038(%rbp)
cmpl   $0xfff0e536,-0x1c(%rbp)
je     11ae <rastnoop+0x9e>
cmpl   $0x0,-0x1c(%rbp)
jle    11ae <rastnoop+0x9e>
jmp    1158 <rastnoop+0x48>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
jl     11a9 <rastnoop+0x99>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    -0x4030(%rbp),%rsi
xor    %r9d,%r9d
lea    0xe7e(%rip),%rcx
lea    0xe79(%rip),%r8
mov    %r9d,%edx
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <texsubexpr@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    1158 <rastnoop+0x48>
jmp    11ae <rastnoop+0x9e>
mov    -0x4038(%rbp),%rax
add    $0x4040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rastnoop>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4010,%rsp
test   %ecx,%ecx
jle    117a <rastnoop+0x6a>
mov    %ecx,%ebx
mov    %rdi,%r14
mov    (%rdi),%rax
add    $0x1,%ebx
lea    0xeca(%rip),%r15
lea    0xec5(%rip),%r12
lea    0x10(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movl   $0x0,(%rsp)
mov    %rax,%rdi
mov    %r13,%rsi
xor    %edx,%edx
mov    %r15,%rcx
mov    %r12,%r8
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <texsubexpr@plt>
mov    %rax,(%r14)
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1150 <rastnoop+0x40>
xor    %eax,%eax
add    $0x4010,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.subraster_struct = type { i32 }
@.str = [2 x i8] c"{\00"
@.str.1 = [2 x i8] c"}\00"
@noopsp = global %struct.subraster_struct* null
@subexpr = global i32 0
define %struct.subraster_struct* @rastnoop(i8** %0, i32 %1, %struct.subraster_struct* %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i8**
%8 = alloca i32
%9 = alloca %struct.subraster_struct*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [16384 x i8]
%14 = alloca %struct.subraster_struct*
store i8** %0, i8*** %7
store i32 %1, i32* %8
store %struct.subraster_struct* %2, %struct.subraster_struct** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
store %struct.subraster_struct* null, %struct.subraster_struct** %14
%15 = load i32, i32* %10
%16 = icmp ne i32 %15, -989898
br i1 %16, label %17, label %32
17: ; preds = %6
%18 = load i32, i32* %10
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %32
20: ; preds = %17
br label %21
21: ; preds = %25, %20
%22 = load i32, i32* %10
%23 = add nsw i32 %22, -1
store i32 %23, i32* %10
%24 = icmp sge i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %21
%26 = load i8**, i8*** %7
%27 = load i8*, i8** %26
%28 = getelementptr inbounds [16384 x i8], [16384 x i8]* %13, i64 0, i64 0
%29 = call i8* (i8*, i8*, i32, i8*, i8*, i32, i32, ...) bitcast (i8* (...)* @texsubexpr to i8* (i8*, i8*, i32, i8*, i8*, i32, i32, ...)*)(i8* %27, i8* %28, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0)
%30 = load i8**, i8*** %7
store i8* %29, i8** %30
br label %21
31: ; preds = %21
br label %32
32: ; preds = %31, %17, %6
%33 = load %struct.subraster_struct*, %struct.subraster_struct** %14
ret %struct.subraster_struct* %33
}

LLVM IR (-O2):
%struct.subraster_struct = type { i32 }
@.str = [2 x i8] c"{\00"
@.str.1 = [2 x i8] c"}\00"
@noopsp = global %struct.subraster_struct* null
@subexpr = global i32 0
define %struct.subraster_struct* @rastnoop(i8** nocapture %0, i32 %1, %struct.subraster_struct* nocapture readnone %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca [16384 x i8]
%8 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%9 = icmp sgt i32 %3, 0
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i8*, i8** %0
br label %12
12: ; preds = %10, %12
%13 = phi i8* [ %16, %12 ], [ %11, %10 ]
%14 = phi i32 [ %15, %12 ], [ %3, %10 ]
%15 = add nsw i32 %14, -1
%16 = call i8* (i8*, i8*, i32, i8*, i8*, i32, i32, ...) bitcast (i8* (...)* @texsubexpr to i8* (i8*, i8*, i32, i8*, i8*, i32, i32, ...)*)(i8* %13, i8* %8, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0)
store i8* %16, i8** %0
%17 = icmp ugt i32 %14, 1
br i1 %17, label %12, label %18
18: ; preds = %12, %6
ret %struct.subraster_struct* null
}