#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*/ printfunc(char *, char *, char *, char *);
int /*<<< orphan*/ scaninput(char *);
int /*<<< orphan*/ seperation(char *, char *, char *, char *);
int main(void) {
  char procode[100], ware[100], pro[100], quali[100];
  while (*procode != 'q') {
    scaninput(procode);
    seperation(procode, ware, pro, quali);
    printfunc(procode, ware, pro, quali);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
movsbl -0x70(%rbp),%eax
cmp    $0x71,%eax
je     1199 <main+0x69>
lea    -0x70(%rbp),%rdi
call   1030 <scaninput@plt>
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
call   1050 <seperation@plt>
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
call   1040 <printfunc@plt>
jmp    1142 <main+0x12>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1b8,%rsp
mov    %rsp,%rbx
lea    0x150(%rsp),%r14
lea    0xe0(%rsp),%r15
lea    0x70(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <scaninput@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1050 <seperation@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1040 <printfunc@plt>
cmpb   $0x71,(%rsp)
jne    1160 <main+0x30>
xor    %eax,%eax
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
store i32 0, i32* %1
br label %6
6: ; preds = %11, %0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 113
br i1 %10, label %11, label %24
11: ; preds = %6
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%13 = call i32 @scaninput(i8* %12)
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%18 = call i32 @seperation(i8* %14, i8* %15, i8* %16, i8* %17)
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%23 = call i32 @printfunc(i8* %19, i8* %20, i8* %21, i8* %22)
br label %6
24: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
br label %9
9: ; preds = %0, %9
%10 = call i32 @scaninput(i8* %5)
%11 = call i32 @seperation(i8* %5, i8* %6, i8* %7, i8* %8)
%12 = call i32 @printfunc(i8* %5, i8* %6, i8* %7, i8* %8)
%13 = load i8, i8* %5
%14 = icmp eq i8 %13, 113
br i1 %14, label %15, label %9
15: ; preds = %9
ret i32 0
}