#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 main(int argc, char const *argv[]) {
  int COQ, COQV, Credit, SV;
  if ((COQ < SV) && (Credit >= COQV)) {
    printf("Supply successfull\n");
  } else if ((COQ < SV) && (Credit < COQV)) {
    printf("Amount given is less than value of stock supplied.");
  } else if ((COQ > SV) && (Credit >= COQV)) {
    printf("Whatever in stock is given. Remaining balance would be returned in "
           "two days.\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    114f <main+0x3f>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     114f <main+0x3f>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
jmp    11a6 <main+0x96>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1178 <main+0x68>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1178 <main+0x68>
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
jmp    11a1 <main+0x91>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jle    119c <main+0x8c>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     119c <main+0x8c>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
jmp    11a1 <main+0x91>
jmp    11a6 <main+0x96>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Supply successfull\0A\00"
@.str.1 = [51 x i8] c"Amount given is less than value of stock supplied.\00"
@.str.2 = [78 x i8] c"Whatever in stock is given. Remaining balance would be returned in two days.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %6
%11 = load i32, i32* %9
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, i32* %8
%15 = load i32, i32* %7
%16 = icmp sge i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %41
19: ; preds = %13, %2
%20 = load i32, i32* %6
%21 = load i32, i32* %9
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load i32, i32* %8
%25 = load i32, i32* %7
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
br label %40
29: ; preds = %23, %19
%30 = load i32, i32* %6
%31 = load i32, i32* %9
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %39
33: ; preds = %29
%34 = load i32, i32* %8
%35 = load i32, i32* %7
%36 = icmp sge i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.2, i64 0, i64 0))
br label %39
39: ; preds = %37, %33, %29
br label %40
40: ; preds = %39, %27
br label %41
41: ; preds = %40, %17
%42 = load i32, i32* %3
ret i32 %42
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}