#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*/ assignment(char *, char *, char *, char *);
int /*<<< orphan*/ field_assignment(char *, char *, char *);
int /*<<< orphan*/ handle_intersection(char *, char *, char *);
int /*<<< orphan*/ handle_subtraction(char *, char *, char *);
int /*<<< orphan*/ handle_union(char *, char *, char *);
int /*<<< orphan*/ help_scanner(char *);
int /*<<< orphan*/ minus_equals(char *, char *, char *, char *);
int /*<<< orphan*/ plus_equals(char *, char *, char *, char *);
scalar_t__ protected_set(char *);
int /*<<< orphan*/ set_error1(char *);
int /*<<< orphan*/ simple_set_copy(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *);
int sscanf(char *, char *, char *, char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ times_equals(char *, char *, char *, char *);
int pdb_command(char command_line[255]) {
  int nw;
  char command__line[100];
  char setname[64], setname1[64];
  char setname2[64], setname3[64];
  char field[64], operator[64];
  char value[64];
  char message[255];
  strcpy(command__line, command_line);
  help_scanner(command__line);
  nw = sscanf(command__line, "%s *= %s %s %s", setname, field, operator, value);
  if (nw == 4) {
    times_equals(setname, field, operator, value);
    return (1);
  }
  nw = sscanf(command__line, "%s += %s %s %s", setname, field, operator, value);
  if (nw == 4) {
    if (protected_set(setname)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    plus_equals(setname, field, operator, value);
    return (1);
  }
  nw = sscanf(command__line, "%s -= %s %s %s", setname, field, operator, value);
  if (nw == 4) {
    if (protected_set(setname)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    minus_equals(setname, field, operator, value);
    return (1);
  }
  nw = sscanf(command__line, "%s %s = %s", setname, field, value);
  if (nw == 3) {
    field_assignment(setname, field, value);
    return (1);
  }
  nw = sscanf(command__line, "%s = %s * %s", setname1, setname2, setname3);
  if (nw == 3) {
    if (protected_set(setname1)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    handle_intersection(setname1, setname2, setname3);
    return (1);
  }
  nw = sscanf(command__line, "%s = %s + %s", setname1, setname2, setname3);
  if (nw == 3) {
    if (protected_set(setname1)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    handle_union(setname1, setname2, setname3);
    return (1);
  }
  nw = sscanf(command__line, "%s = %s - %s", setname1, setname2, setname3);
  if (nw == 3) {
    if (protected_set(setname1)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    handle_subtraction(setname1, setname2, setname3);
    return (1);
  }
  nw = sscanf(command__line, "%s = %s %s %s", setname, field, operator, value);
  if (nw == 4) {
    if (protected_set(setname)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    assignment(setname, field, operator, value);
    return (1);
  } else if (nw == 2) {
    if (protected_set(setname1)) {
      sprintf(message, "pdb_command: user not allowed to modify protected set");
      set_error1(message);
      return (0);
    }
    simple_set_copy(setname1, setname2);
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<pdb_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x80(%rbp),%rdi
call   1040 <help_scanner@plt>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
lea    -0x200(%rbp),%r8
lea    -0x240(%rbp),%r9
lea    0xdc4(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    127d <pdb_command+0x8d>
lea    -0xc0(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
lea    -0x200(%rbp),%rdx
lea    -0x240(%rbp),%rcx
call   10c0 <times_equals@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
lea    -0x200(%rbp),%r8
lea    -0x240(%rbp),%r9
lea    0xd6b(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    1326 <pdb_command+0x136>
lea    -0xc0(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     12f9 <pdb_command+0x109>
lea    -0x340(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0xc0(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
lea    -0x200(%rbp),%rdx
lea    -0x240(%rbp),%rcx
call   1060 <plus_equals@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
lea    -0x200(%rbp),%r8
lea    -0x240(%rbp),%r9
lea    0xd07(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    13cf <pdb_command+0x1df>
lea    -0xc0(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     13a2 <pdb_command+0x1b2>
lea    -0x340(%rbp),%rdi
lea    0xc99(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0xc0(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
lea    -0x200(%rbp),%rdx
lea    -0x240(%rbp),%rcx
call   1090 <minus_equals@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
lea    -0x240(%rbp),%r8
lea    0xc74(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jne    1429 <pdb_command+0x239>
lea    -0xc0(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
lea    -0x240(%rbp),%rdx
call   1110 <field_assignment@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0x100(%rbp),%rdx
lea    -0x140(%rbp),%rcx
lea    -0x180(%rbp),%r8
lea    0xc25(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jne    14c4 <pdb_command+0x2d4>
lea    -0x100(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     149e <pdb_command+0x2ae>
lea    -0x340(%rbp),%rdi
lea    0xb9d(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x100(%rbp),%rdi
lea    -0x140(%rbp),%rsi
lea    -0x180(%rbp),%rdx
call   10b0 <handle_intersection@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0x100(%rbp),%rdx
lea    -0x140(%rbp),%rcx
lea    -0x180(%rbp),%r8
lea    0xb97(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jne    155f <pdb_command+0x36f>
lea    -0x100(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     1539 <pdb_command+0x349>
lea    -0x340(%rbp),%rdi
lea    0xb02(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x100(%rbp),%rdi
lea    -0x140(%rbp),%rsi
lea    -0x180(%rbp),%rdx
call   1080 <handle_union@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0x100(%rbp),%rdx
lea    -0x140(%rbp),%rcx
lea    -0x180(%rbp),%r8
lea    0xb09(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jne    15fa <pdb_command+0x40a>
lea    -0x100(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     15d4 <pdb_command+0x3e4>
lea    -0x340(%rbp),%rdi
lea    0xa67(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x100(%rbp),%rdi
lea    -0x140(%rbp),%rsi
lea    -0x180(%rbp),%rdx
call   1050 <handle_subtraction@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
lea    -0x200(%rbp),%r8
lea    -0x240(%rbp),%r9
lea    0xa74(%rip),%rsi
mov    $0x0,%al
call   10e0 <sscanf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    16a3 <pdb_command+0x4b3>
lea    -0xc0(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     1676 <pdb_command+0x486>
lea    -0x340(%rbp),%rdi
lea    0x9c5(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0xc0(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
lea    -0x200(%rbp),%rdx
lea    -0x240(%rbp),%rcx
call   10a0 <assignment@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
cmpl   $0x2,-0x14(%rbp)
jne    170d <pdb_command+0x51d>
lea    -0x100(%rbp),%rdi
call   10d0 <protected_set@plt>
cmp    $0x0,%rax
je     16ee <pdb_command+0x4fe>
lea    -0x340(%rbp),%rdi
lea    0x94d(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x340(%rbp),%rdi
call   10f0 <set_error1@plt>
movl   $0x0,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
lea    -0x100(%rbp),%rdi
lea    -0x140(%rbp),%rsi
call   1070 <simple_set_copy@plt>
movl   $0x1,-0x4(%rbp)
jmp    1719 <pdb_command+0x529>
jmp    1712 <pdb_command+0x522>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pdb_command>:
push   %rbx
sub    $0x330,%rsp
mov    %rdi,%rsi
lea    0x2c0(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1040 <help_scanner@plt>
lea    0xdf6(%rip),%rsi
mov    %rsp,%rdx
lea    0xc0(%rsp),%rcx
lea    0x200(%rsp),%r8
lea    0x80(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x4,%eax
jne    125e <pdb_command+0x7e>
mov    %rsp,%rdi
lea    0xc0(%rsp),%rsi
lea    0x200(%rsp),%rdx
lea    0x80(%rsp),%rcx
call   10c0 <times_equals@plt>
mov    $0x1,%ebx
jmp    146d <pdb_command+0x28d>
lea    0xdaa(%rip),%rsi
lea    0x2c0(%rsp),%rdi
mov    %rsp,%rdx
lea    0xc0(%rsp),%rcx
lea    0x200(%rsp),%r8
lea    0x80(%rsp),%r9
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x4,%eax
jne    12c7 <pdb_command+0xe7>
mov    %rsp,%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
jne    141f <pdb_command+0x23f>
mov    %rsp,%rdi
lea    0xc0(%rsp),%rsi
lea    0x200(%rsp),%rdx
lea    0x80(%rsp),%rcx
call   1060 <plus_equals@plt>
jmp    1254 <pdb_command+0x74>
lea    0xd86(%rip),%rsi
lea    0x2c0(%rsp),%rdi
mov    %rsp,%rdx
lea    0xc0(%rsp),%rcx
lea    0x200(%rsp),%r8
lea    0x80(%rsp),%r9
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x4,%eax
jne    1333 <pdb_command+0x153>
mov    %rsp,%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
jne    141f <pdb_command+0x23f>
mov    %rsp,%rdi
lea    0xc0(%rsp),%rsi
lea    0x200(%rsp),%rdx
lea    0x80(%rsp),%rcx
call   1090 <minus_equals@plt>
jmp    1254 <pdb_command+0x74>
lea    0xd29(%rip),%rsi
lea    0x2c0(%rsp),%rdi
mov    %rsp,%rdx
lea    0xc0(%rsp),%rcx
lea    0x80(%rsp),%r8
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    137e <pdb_command+0x19e>
mov    %rsp,%rdi
lea    0xc0(%rsp),%rsi
lea    0x80(%rsp),%rdx
call   1100 <field_assignment@plt>
jmp    1254 <pdb_command+0x74>
lea    0xce9(%rip),%rsi
lea    0x2c0(%rsp),%rdi
lea    0x40(%rsp),%rdx
lea    0x240(%rsp),%rcx
lea    0x280(%rsp),%r8
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    13dc <pdb_command+0x1fc>
lea    0x40(%rsp),%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
jne    141f <pdb_command+0x23f>
lea    0x40(%rsp),%rdi
lea    0x240(%rsp),%rsi
lea    0x280(%rsp),%rdx
call   10b0 <handle_intersection@plt>
jmp    1254 <pdb_command+0x74>
lea    0xc98(%rip),%rsi
lea    0x2c0(%rsp),%rdi
lea    0x40(%rsp),%rdx
lea    0x240(%rsp),%rcx
lea    0x280(%rsp),%r8
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    1478 <pdb_command+0x298>
lea    0x40(%rsp),%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
je     154d <pdb_command+0x36d>
movups 0xc18(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movups 0xbf9(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movups 0xbda(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movabs $0x74657320646574,%rax
mov    %rax,0x12e(%rsp)
lea    0x100(%rsp),%rdi
call   10f0 <set_error1@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x330,%rsp
pop    %rbx
ret
lea    0xc09(%rip),%rsi
xor    %ebx,%ebx
lea    0x2c0(%rsp),%rdi
lea    0x40(%rsp),%rdx
lea    0x240(%rsp),%rcx
lea    0x280(%rsp),%r8
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    14dc <pdb_command+0x2fc>
lea    0x40(%rsp),%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
jne    157b <pdb_command+0x39b>
lea    0x40(%rsp),%rdi
lea    0x240(%rsp),%rsi
lea    0x280(%rsp),%rdx
call   1050 <handle_subtraction@plt>
jmp    1254 <pdb_command+0x74>
lea    0xbb2(%rip),%rsi
lea    0x2c0(%rsp),%rdi
mov    %rsp,%rdx
lea    0xc0(%rsp),%rcx
lea    0x200(%rsp),%r8
lea    0x80(%rsp),%r9
xor    %eax,%eax
call   10e0 <sscanf@plt>
cmp    $0x2,%eax
je     156c <pdb_command+0x38c>
cmp    $0x4,%eax
jne    146d <pdb_command+0x28d>
mov    %rsp,%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
jne    157b <pdb_command+0x39b>
mov    %rsp,%rdi
lea    0xc0(%rsp),%rsi
lea    0x200(%rsp),%rdx
lea    0x80(%rsp),%rcx
call   10a0 <assignment@plt>
jmp    1254 <pdb_command+0x74>
lea    0x40(%rsp),%rdi
lea    0x240(%rsp),%rsi
lea    0x280(%rsp),%rdx
call   1080 <handle_union@plt>
jmp    1254 <pdb_command+0x74>
lea    0x40(%rsp),%rdi
call   10d0 <protected_set@plt>
test   %rax,%rax
je     15cc <pdb_command+0x3ec>
movups 0xabc(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movups 0xa9d(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movups 0xa7e(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movabs $0x74657320646574,%rax
mov    %rax,0x12e(%rsp)
lea    0x100(%rsp),%rdi
call   10f0 <set_error1@plt>
jmp    146d <pdb_command+0x28d>
lea    0x40(%rsp),%rdi
lea    0x240(%rsp),%rsi
call   1070 <simple_set_copy@plt>
jmp    1254 <pdb_command+0x74>

LLVM IR (-O0):
@.str = [15 x i8] c"%s *= %s %s %s\00"
@.str.1 = [15 x i8] c"%s += %s %s %s\00"
@.str.2 = [54 x i8] c"pdb_command: user not allowed to modify protected set\00"
@.str.3 = [15 x i8] c"%s -= %s %s %s\00"
@.str.4 = [11 x i8] c"%s %s = %s\00"
@.str.5 = [13 x i8] c"%s = %s * %s\00"
@.str.6 = [13 x i8] c"%s = %s + %s\00"
@.str.7 = [13 x i8] c"%s = %s - %s\00"
@.str.8 = [14 x i8] c"%s = %s %s %s\00"
define i32 @pdb_command(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [100 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [64 x i8]
%9 = alloca [64 x i8]
%10 = alloca [64 x i8]
%11 = alloca [64 x i8]
%12 = alloca [64 x i8]
%13 = alloca [255 x i8]
store i8* %0, i8** %3
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%15 = load i8*, i8** %3
%16 = call i32 @strcpy(i8* %14, i8* %15)
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%18 = call i32 @help_scanner(i8* %17)
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%20 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%21 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%22 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%23 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%24 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %20, i8* %21, i8* %22, i8* %23)
store i32 %24, i32* %4
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 4
br i1 %26, label %27, label %33
27: ; preds = %1
%28 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%29 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%30 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%31 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%32 = call i32 @times_equals(i8* %28, i8* %29, i8* %30, i8* %31)
store i32 1, i32* %2
br label %202
33: ; preds = %1
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%35 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%36 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%37 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%38 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%39 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %34, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %35, i8* %36, i8* %37, i8* %38)
store i32 %39, i32* %4
%40 = load i32, i32* %4
%41 = icmp eq i32 %40, 4
br i1 %41, label %42, label %57
42: ; preds = %33
%43 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%44 = call i64 @protected_set(i8* %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%48 = call i32 @sprintf(i8* %47, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%49 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%50 = call i32 @set_error1(i8* %49)
store i32 0, i32* %2
br label %202
51: ; preds = %42
%52 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%53 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%54 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%55 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%56 = call i32 @plus_equals(i8* %52, i8* %53, i8* %54, i8* %55)
store i32 1, i32* %2
br label %202
57: ; preds = %33
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%59 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%60 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%61 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%63 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %59, i8* %60, i8* %61, i8* %62)
store i32 %63, i32* %4
%64 = load i32, i32* %4
%65 = icmp eq i32 %64, 4
br i1 %65, label %66, label %81
66: ; preds = %57
%67 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%68 = call i64 @protected_set(i8* %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %66
%71 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%72 = call i32 @sprintf(i8* %71, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%73 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%74 = call i32 @set_error1(i8* %73)
store i32 0, i32* %2
br label %202
75: ; preds = %66
%76 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%77 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%78 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%79 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%80 = call i32 @minus_equals(i8* %76, i8* %77, i8* %78, i8* %79)
store i32 1, i32* %2
br label %202
81: ; preds = %57
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%83 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%84 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%85 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%86 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %82, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %83, i8* %84, i8* %85)
store i32 %86, i32* %4
%87 = load i32, i32* %4
%88 = icmp eq i32 %87, 3
br i1 %88, label %89, label %94
89: ; preds = %81
%90 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%91 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%92 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%93 = call i32 @field_assignment(i8* %90, i8* %91, i8* %92)
store i32 1, i32* %2
br label %202
94: ; preds = %81
%95 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%96 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%97 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%98 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%99 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %95, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %96, i8* %97, i8* %98)
store i32 %99, i32* %4
%100 = load i32, i32* %4
%101 = icmp eq i32 %100, 3
br i1 %101, label %102, label %116
102: ; preds = %94
%103 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%104 = call i64 @protected_set(i8* %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %111
106: ; preds = %102
%107 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%108 = call i32 @sprintf(i8* %107, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%109 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%110 = call i32 @set_error1(i8* %109)
store i32 0, i32* %2
br label %202
111: ; preds = %102
%112 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%113 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%114 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%115 = call i32 @handle_intersection(i8* %112, i8* %113, i8* %114)
store i32 1, i32* %2
br label %202
116: ; preds = %94
%117 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%118 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%119 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%120 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%121 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %117, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %118, i8* %119, i8* %120)
store i32 %121, i32* %4
%122 = load i32, i32* %4
%123 = icmp eq i32 %122, 3
br i1 %123, label %124, label %138
124: ; preds = %116
%125 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%126 = call i64 @protected_set(i8* %125)
%127 = icmp ne i64 %126, 0
br i1 %127, label %128, label %133
128: ; preds = %124
%129 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%130 = call i32 @sprintf(i8* %129, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%131 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%132 = call i32 @set_error1(i8* %131)
store i32 0, i32* %2
br label %202
133: ; preds = %124
%134 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%135 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%136 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%137 = call i32 @handle_union(i8* %134, i8* %135, i8* %136)
store i32 1, i32* %2
br label %202
138: ; preds = %116
%139 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%140 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%141 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%142 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%143 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %139, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %140, i8* %141, i8* %142)
store i32 %143, i32* %4
%144 = load i32, i32* %4
%145 = icmp eq i32 %144, 3
br i1 %145, label %146, label %160
146: ; preds = %138
%147 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%148 = call i64 @protected_set(i8* %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %155
150: ; preds = %146
%151 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%152 = call i32 @sprintf(i8* %151, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%153 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%154 = call i32 @set_error1(i8* %153)
store i32 0, i32* %2
br label %202
155: ; preds = %146
%156 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%157 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%158 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%159 = call i32 @handle_subtraction(i8* %156, i8* %157, i8* %158)
store i32 1, i32* %2
br label %202
160: ; preds = %138
%161 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%162 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%163 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%164 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%165 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%166 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %161, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %162, i8* %163, i8* %164, i8* %165)
store i32 %166, i32* %4
%167 = load i32, i32* %4
%168 = icmp eq i32 %167, 4
br i1 %168, label %169, label %184
169: ; preds = %160
%170 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%171 = call i64 @protected_set(i8* %170)
%172 = icmp ne i64 %171, 0
br i1 %172, label %173, label %178
173: ; preds = %169
%174 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%175 = call i32 @sprintf(i8* %174, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%176 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%177 = call i32 @set_error1(i8* %176)
store i32 0, i32* %2
br label %202
178: ; preds = %169
%179 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%180 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%181 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%182 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%183 = call i32 @assignment(i8* %179, i8* %180, i8* %181, i8* %182)
store i32 1, i32* %2
br label %202
184: ; preds = %160
%185 = load i32, i32* %4
%186 = icmp eq i32 %185, 2
br i1 %186, label %187, label %200
187: ; preds = %184
%188 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%189 = call i64 @protected_set(i8* %188)
%190 = icmp ne i64 %189, 0
br i1 %190, label %191, label %196
191: ; preds = %187
%192 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%193 = call i32 @sprintf(i8* %192, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%194 = getelementptr inbounds [255 x i8], [255 x i8]* %13, i64 0, i64 0
%195 = call i32 @set_error1(i8* %194)
store i32 0, i32* %2
br label %202
196: ; preds = %187
%197 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%198 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%199 = call i32 @simple_set_copy(i8* %197, i8* %198)
store i32 1, i32* %2
br label %202
200: ; preds = %184
br label %201
201: ; preds = %200
store i32 0, i32* %2
br label %202
202: ; preds = %201, %196, %191, %178, %173, %155, %150, %133, %128, %111, %106, %89, %75, %70, %51, %46, %27
%203 = load i32, i32* %2
ret i32 %203
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s *= %s %s %s\00"
@.str.1 = [15 x i8] c"%s += %s %s %s\00"
@.str.2 = [54 x i8] c"pdb_command: user not allowed to modify protected set\00"
@.str.3 = [15 x i8] c"%s -= %s %s %s\00"
@.str.4 = [11 x i8] c"%s %s = %s\00"
@.str.5 = [13 x i8] c"%s = %s * %s\00"
@.str.6 = [13 x i8] c"%s = %s + %s\00"
@.str.7 = [13 x i8] c"%s = %s - %s\00"
@.str.8 = [14 x i8] c"%s = %s %s %s\00"
define i32 @pdb_command(i8* %0) {
%2 = alloca [100 x i8]
%3 = alloca [64 x i8]
%4 = alloca [64 x i8]
%5 = alloca [64 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [64 x i8]
%9 = alloca [64 x i8]
%10 = alloca [255 x i8]
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%19 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%20 = call i32 @strcpy(i8* %11, i8* %0)
%21 = call i32 @help_scanner(i8* %11)
%22 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %16, i8* %17, i8* %18)
%23 = icmp eq i32 %22, 4
br i1 %23, label %24, label %26
24: ; preds = %1
%25 = call i32 @times_equals(i8* %12, i8* %16, i8* %17, i8* %18)
br label %97
26: ; preds = %1
%27 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %12, i8* %16, i8* %17, i8* %18)
%28 = icmp eq i32 %27, 4
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = call i64 @protected_set(i8* %12)
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %29
%33 = call i32 @set_error1(i8* %19)
br label %97
34: ; preds = %29
%35 = call i32 @plus_equals(i8* %12, i8* %16, i8* %17, i8* %18)
br label %97
36: ; preds = %26
%37 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %12, i8* %16, i8* %17, i8* %18)
%38 = icmp eq i32 %37, 4
br i1 %38, label %39, label %46
39: ; preds = %36
%40 = call i64 @protected_set(i8* %12)
%41 = icmp eq i64 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = call i32 @set_error1(i8* %19)
br label %97
44: ; preds = %39
%45 = call i32 @minus_equals(i8* %12, i8* %16, i8* %17, i8* %18)
br label %97
46: ; preds = %36
%47 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %12, i8* %16, i8* %18)
%48 = icmp eq i32 %47, 3
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @field_assignment(i8* %12, i8* %16, i8* %18)
br label %97
51: ; preds = %46
%52 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %13, i8* %14, i8* %15)
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = call i64 @protected_set(i8* %13)
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %54
%58 = call i32 @set_error1(i8* %19)
br label %97
59: ; preds = %54
%60 = call i32 @handle_intersection(i8* %13, i8* %14, i8* %15)
br label %97
61: ; preds = %51
%62 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %13, i8* %14, i8* %15)
%63 = icmp eq i32 %62, 3
br i1 %63, label %64, label %71
64: ; preds = %61
%65 = call i64 @protected_set(i8* %13)
%66 = icmp eq i64 %65, 0
br i1 %66, label %69, label %67
67: ; preds = %64
%68 = call i32 @set_error1(i8* %19)
br label %97
69: ; preds = %64
%70 = call i32 @handle_union(i8* %13, i8* %14, i8* %15)
br label %97
71: ; preds = %61
%72 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %13, i8* %14, i8* %15)
%73 = icmp eq i32 %72, 3
br i1 %73, label %74, label %81
74: ; preds = %71
%75 = call i64 @protected_set(i8* %13)
%76 = icmp eq i64 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = call i32 @set_error1(i8* %19)
br label %97
79: ; preds = %74
%80 = call i32 @handle_subtraction(i8* %13, i8* %14, i8* %15)
br label %97
81: ; preds = %71
%82 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %12, i8* %16, i8* %17, i8* %18)
switch i32 %82, label %97 [
i32 4, label %83
i32 2, label %90
]
83: ; preds = %81
%84 = call i64 @protected_set(i8* %12)
%85 = icmp eq i64 %84, 0
br i1 %85, label %88, label %86
86: ; preds = %83
%87 = call i32 @set_error1(i8* %19)
br label %97
88: ; preds = %83
%89 = call i32 @assignment(i8* %12, i8* %16, i8* %17, i8* %18)
br label %97
90: ; preds = %81
%91 = call i64 @protected_set(i8* %13)
%92 = icmp eq i64 %91, 0
br i1 %92, label %95, label %93
93: ; preds = %90
%94 = call i32 @set_error1(i8* %19)
br label %97
95: ; preds = %90
%96 = call i32 @simple_set_copy(i8* %13, i8* %14)
br label %97
97: ; preds = %81, %95, %93, %88, %86, %79, %77, %69, %67, %59, %57, %49, %44, %42, %34, %32, %24
%98 = phi i32 [ 1, %24 ], [ 0, %32 ], [ 1, %34 ], [ 0, %42 ], [ 1, %44 ], [ 1, %49 ], [ 0, %57 ], [ 1, %59 ], [ 0, %67 ], [ 1, %69 ], [ 0, %77 ], [ 1, %79 ], [ 0, %86 ], [ 1, %88 ], [ 0, %93 ], [ 1, %95 ], [ 0, %81 ]
ret i32 %98
}