#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*/ free(char *);
char getNonBlank();
char *getSimpleCommand();
char getTexChar();
int /*<<< orphan*/ newDefinition(char *, int /*<<< orphan*/ *, char *,
                                 int /*<<< orphan*/);
void CmdIgnoreLet(int code) {
  char t[100];
  char cThis;
  int i;
  char *s;
  s = getSimpleCommand();
  cThis = getNonBlank();
  if (cThis == '=')
    cThis = getNonBlank();
  t[0] = cThis;
  for (i = 1; i < 100; i++) {
    t[i] = getTexChar();
    if (t[i] == ' ' || t[i] == '\n')
      break;
  }
  t[i] = '\0';
  newDefinition(s + 1, NULL, t, 0);
  free(s);
}


x86 assembly (clang, -O0):
<CmdIgnoreLet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1060 <getSimpleCommand@plt>
mov    %rax,-0x80(%rbp)
mov    $0x0,%al
call   1040 <getNonBlank@plt>
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%eax
cmp    $0x3d,%eax
jne    118a <CmdIgnoreLet+0x3a>
mov    $0x0,%al
call   1040 <getNonBlank@plt>
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
mov    %al,-0x70(%rbp)
movl   $0x1,-0x78(%rbp)
cmpl   $0x64,-0x78(%rbp)
jge    11ee <CmdIgnoreLet+0x9e>
mov    $0x0,%al
call   1050 <getTexChar@plt>
mov    %al,%cl
movslq -0x78(%rbp),%rax
mov    %cl,-0x70(%rbp,%rax,1)
movslq -0x78(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x20,%eax
je     11d6 <CmdIgnoreLet+0x86>
movslq -0x78(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0xa,%eax
jne    11db <CmdIgnoreLet+0x8b>
jmp    11ee <CmdIgnoreLet+0x9e>
jmp    11e0 <CmdIgnoreLet+0x90>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    1197 <CmdIgnoreLet+0x47>
movslq -0x78(%rbp),%rax
movb   $0x0,-0x70(%rbp,%rax,1)
mov    -0x80(%rbp),%rdi
add    $0x1,%rdi
lea    -0x70(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%esi
xor    %ecx,%ecx
call   1070 <newDefinition@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdIgnoreLet>:
push   %r14
push   %rbx
sub    $0x68,%rsp
xor    %eax,%eax
call   1060 <getSimpleCommand@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1040 <getNonBlank@plt>
cmp    $0x3d,%al
jne    1173 <CmdIgnoreLet+0x23>
xor    %eax,%eax
call   1040 <getNonBlank@plt>
mov    %al,(%rsp)
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <getTexChar@plt>
mov    %al,(%rsp,%rbx,1)
cmp    $0xa,%al
je     11a1 <CmdIgnoreLet+0x51>
cmp    $0x20,%al
je     11a1 <CmdIgnoreLet+0x51>
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    1180 <CmdIgnoreLet+0x30>
mov    $0x64,%ebx
mov    %ebx,%eax
movb   $0x0,(%rsp,%rax,1)
mov    %r14,%rdi
add    $0x1,%rdi
mov    %rsp,%rdx
xor    %esi,%esi
xor    %ecx,%ecx
call   1070 <newDefinition@plt>
mov    %r14,%rdi
call   1030 <free@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @CmdIgnoreLet(i32 %0) {
%2 = alloca i32
%3 = alloca [100 x i8]
%4 = alloca i8
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %2
%7 = call i8* (...) @getSimpleCommand()
store i8* %7, i8** %6
%8 = call signext i8 (...) @getNonBlank()
store i8 %8, i8* %4
%9 = load i8, i8* %4
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 61
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call signext i8 (...) @getNonBlank()
store i8 %13, i8* %4
br label %14
14: ; preds = %12, %1
%15 = load i8, i8* %4
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
store i8 %15, i8* %16
store i32 1, i32* %5
br label %17
17: ; preds = %40, %14
%18 = load i32, i32* %5
%19 = icmp slt i32 %18, 100
br i1 %19, label %20, label %43
20: ; preds = %17
%21 = call signext i8 (...) @getTexChar()
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %23
store i8 %21, i8* %24
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 32
br i1 %30, label %38, label %31
31: ; preds = %20
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %33
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %39
38: ; preds = %31, %20
br label %43
39: ; preds = %31
br label %40
40: ; preds = %39
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %17
43: ; preds = %38, %17
%44 = load i32, i32* %5
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %45
store i8 0, i8* %46
%47 = load i8*, i8** %6
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%50 = call i32 @newDefinition(i8* %48, i32* null, i8* %49, i32 0)
%51 = load i8*, i8** %6
%52 = call i32 @free(i8* %51)
ret void
}

LLVM IR (-O2):
define void @CmdIgnoreLet(i32 %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = tail call i8* (...) @getSimpleCommand()
%5 = tail call signext i8 (...) @getNonBlank()
%6 = icmp eq i8 %5, 61
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call signext i8 (...) @getNonBlank()
br label %9
9: ; preds = %7, %1
%10 = phi i8 [ %8, %7 ], [ %5, %1 ]
store i8 %10, i8* %3
br label %11
11: ; preds = %9, %15
%12 = phi i64 [ 1, %9 ], [ %16, %15 ]
%13 = tail call signext i8 (...) @getTexChar()
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %12
store i8 %13, i8* %14
switch i8 %13, label %15 [
i8 32, label %18
i8 10, label %18
]
15: ; preds = %11
%16 = add nuw nsw i64 %12, 1
%17 = icmp eq i64 %16, 100
br i1 %17, label %18, label %11
18: ; preds = %11, %11, %15
%19 = phi i64 [ %12, %11 ], [ %12, %11 ], [ 100, %15 ]
%20 = and i64 %19, 4294967295
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %20
store i8 0, i8* %21
%22 = getelementptr inbounds i8, i8* %4, i64 1
%23 = call i32 @newDefinition(i8* %22, i32* null, i8* %3, i32 0)
%24 = call i32 @free(i8* %4)
ret void
}