#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
void ReadInput(char *exp_minterms, char *exp_dontCare) {
  printf("\n32bit Quine-McCluskey and Petrick's Method in C v5.03");
  printf("\nCreated by Es1chUb.Jyan9@gmail.com");
  printf("\n\n#################################################################"
         "########\n");
  printf("################   Quine-McCluskey Algorithm is Started  "
         "################\n");
  printf("#####################################################################"
         "####\n\n");
  printf("Please enter the minterms(Divided by ,):\n\t>> ");
  scanf("%s", exp_minterms);
  printf("\nPlease enter the don't care(Divided by ,):\n!!! If you don't need "
         "don't care, Please enter -1 !!!\n\t>> ");
  scanf("%s", exp_dontCare);
}


x86 assembly (clang, -O0):
<ReadInput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfea(%rip),%rdi
call   1040 <scanf@plt>
lea    0xfe1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xfce(%rip),%rdi
call   1040 <scanf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReadInput>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
lea    0xebe(%rip),%rdi
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
call   1040 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1017(%rip),%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
call   1040 <printf@plt>
lea    0xeff(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
lea    0xef0(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <scanf@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"\0A32bit Quine-McCluskey and Petrick's Method in C v5.03\00"
@.str.1 = [36 x i8] c"\0ACreated by Es1chUb.Jyan9@gmail.com\00"
@.str.2 = [77 x i8] c"\0A\0A#########################################################################\0A\00"
@.str.3 = [75 x i8] c"################ Quine-McCluskey Algorithm is Started ################\0A\00"
@.str.4 = [76 x i8] c"#########################################################################\0A\0A\00"
@.str.5 = [46 x i8] c"Please enter the minterms(Divided by ,):\0A\09>> \00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [103 x i8] c"\0APlease enter the don't care(Divided by ,):\0A!!! If you don't need don't care, Please enter -1 !!!\0A\09>> \00"
define void @ReadInput(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%11 = load i8*, i8** %3
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.7, i64 0, i64 0))
%14 = load i8*, i8** %4
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %14)
ret void
}

LLVM IR (-O2):
@.str = [55 x i8] c"\0A32bit Quine-McCluskey and Petrick's Method in C v5.03\00"
@.str.1 = [36 x i8] c"\0ACreated by Es1chUb.Jyan9@gmail.com\00"
@.str.5 = [46 x i8] c"Please enter the minterms(Divided by ,):\0A\09>> \00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [103 x i8] c"\0APlease enter the don't care(Divided by ,):\0A!!! If you don't need don't care, Please enter -1 !!!\0A\09>> \00"
@str = [76 x i8] c"\0A\0A#########################################################################\00"
@str.8 = [74 x i8] c"################ Quine-McCluskey Algorithm is Started ################\00"
@str.9 = [75 x i8] c"#########################################################################\0A\00"
define void @ReadInput(i8* %0, i8* %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.8, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %1)
ret void
}