#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 *, int *);
int main() {
  int a;
  int b;
  int c;
  int sum;
  int difference;
  int product;
  double quotient;
  int mod;
  double a2;
  int bin[6] = {0, 0, 0, 0, 0, 0};
  printf("Enter first value\n");
  scanf("%d", &a);
  printf("Enter second value\n");
  scanf("%d", &b);
  printf("Enter third value\n");
  scanf("%d", &c);
  printf("Illustrate the following operators:\n");
  printf("Arithmetic operators: +, -, *, /, %\n");
  a2 = a;
  sum = a + b;
  difference = a - b;
  product = a * b;
  quotient = a2 / b;
  mod = a % b;
  printf("\n%d + %d = %d\n", a, b, sum);
  printf("%d - %d = %d\n", a, b, difference);
  printf("%d * %d = %d\n", a, b, product);
  printf("%d / %d = %g\n", a, b, quotient);
  printf("%d %% %d = %d\n\n", a, b, mod);
  printf("Relational operators: (1=true, 0=false)\n<\t>\t<=\t>=\t==\t!=\n");
  if (a < b) {
    bin[0] = 1;
  }
  if (a > b) {
    bin[1] = 1;
  }
  if (a <= b) {
    bin[2] = 1;
  }
  if (a >= b) {
    bin[3] = 1;
  }
  if (a == b) {
    bin[4] = 1;
  }
  if (a != b) {
    bin[5] = 1;
  }
  printf("%d\t%d\t%d\t%d\t%d\t%d\t\n\n", bin[0], bin[1], bin[2], bin[3], bin[4],
         bin[5]);
  printf("Logical operators: &&, ||, and !\n");
  printf("Testing && operator\nif a-b>0&&c>=0\n");
  if (a - b > 0 && c >= 0) {
    printf("true\n\n");
  } else {
    printf("false\n\n");
  }
  printf("Testing && operator\nif a-b>0||c>=0\n");
  if (a - b > 0 || c >= 0) {
    printf("true\n\n");
  } else {
    printf("false\n\n");
  }
  printf("Testing ! operator\nif a-b>0||!(c>=0)\n");
  if (a - b > 0 || !(c >= 0)) {
    printf("true\n\n");
  } else {
    printf("false\n\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe91(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,-0x2c(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movsd  -0x28(%rbp),%xmm0
lea    0xe53(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x2c(%rbp),%ecx
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    129e <main+0x16e>
movl   $0x1,-0x50(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12b1 <main+0x181>
movl   $0x1,-0x4c(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     12c4 <main+0x194>
movl   $0x1,-0x48(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     12d7 <main+0x1a7>
movl   $0x1,-0x44(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    12ea <main+0x1ba>
movl   $0x1,-0x40(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     12fd <main+0x1cd>
movl   $0x1,-0x3c(%rbp)
mov    -0x50(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x44(%rbp),%r8d
mov    -0x40(%rbp),%r9d
mov    -0x3c(%rbp),%eax
lea    0xdf1(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jle    136a <main+0x23a>
cmpl   $0x0,-0x10(%rbp)
jl     136a <main+0x23a>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1378 <main+0x248>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jg     139f <main+0x26f>
cmpl   $0x0,-0x10(%rbp)
jl     13b2 <main+0x282>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13c0 <main+0x290>
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jg     13e7 <main+0x2b7>
cmpl   $0x0,-0x10(%rbp)
jge    13fa <main+0x2ca>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1408 <main+0x2d8>
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rbx
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
cvtsi2sd %esi,%xmm1
mov    0x14(%rsp),%ebx
lea    (%rbx,%rsi,1),%ecx
mov    %esi,%ebp
sub    %ebx,%ebp
mov    %ebx,%r15d
cvtsi2sd %ebx,%xmm0
imul   %esi,%r15d
divsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
mov    %esi,%eax
cltd
idiv   %ebx
mov    %edx,%r14d
lea    0xe4b(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
lea    0xe42(%rip),%rdi
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
lea    0xe38(%rip),%rdi
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
lea    0xe2d(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
lea    0xe1f(%rip),%rdi
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8e(%rip),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%eax
xor    %r8d,%r8d
xor    %esi,%esi
xor    %ecx,%ecx
xor    %edx,%edx
xor    %edi,%edi
xor    %r9d,%r9d
cmp    0x14(%rsp),%eax
setge  %r8b
setl   %sil
setle  %cl
setg   %dl
setne  %dil
sete   %r9b
mov    %edi,(%rsp)
lea    0xde3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe92(%rip),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%eax
cmpl   $0x0,0x1c(%rsp)
lea    0xeef(%rip),%rbp
lea    0xee1(%rip),%rbx
mov    %rbx,%rdi
cmovns %rbp,%rdi
cmp    0x14(%rsp),%eax
cmovle %rbx,%rdi
call   1030 <puts@plt>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%eax
cmpl   $0x0,0x1c(%rsp)
mov    %rbx,%rdi
cmovns %rbp,%rdi
cmp    0x14(%rsp),%eax
cmovg  %rbp,%rdi
call   1030 <puts@plt>
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%eax
cmpl   $0x0,0x1c(%rsp)
cmovs  %rbp,%rbx
cmp    0x14(%rsp),%eax
cmovg  %rbp,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Enter first value\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"Enter second value\0A\00"
@.str.3 = [19 x i8] c"Enter third value\0A\00"
@.str.4 = [37 x i8] c"Illustrate the following operators:\0A\00"
@.str.5 = [37 x i8] c"Arithmetic operators: +, -, *, /, %\0A\00"
@.str.6 = [15 x i8] c"\0A%d + %d = %d\0A\00"
@.str.7 = [14 x i8] c"%d - %d = %d\0A\00"
@.str.8 = [14 x i8] c"%d * %d = %d\0A\00"
@.str.9 = [14 x i8] c"%d / %d = %g\0A\00"
@.str.10 = [16 x i8] c"%d %% %d = %d\0A\0A\00"
@.str.11 = [57 x i8] c"Relational operators: (1=true, 0=false)\0A<\09>\09<=\09>=\09==\09!=\0A\00"
@.str.12 = [21 x i8] c"%d\09%d\09%d\09%d\09%d\09%d\09\0A\0A\00"
@.str.13 = [34 x i8] c"Logical operators: &&, ||, and !\0A\00"
@.str.14 = [36 x i8] c"Testing && operator\0Aif a-b>0&&c>=0\0A\00"
@.str.15 = [7 x i8] c"true\0A\0A\00"
@.str.16 = [8 x i8] c"false\0A\0A\00"
@.str.17 = [36 x i8] c"Testing && operator\0Aif a-b>0||c>=0\0A\00"
@.str.18 = [38 x i8] c"Testing ! operator\0Aif a-b>0||!(c>=0)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca i32
%10 = alloca double
%11 = alloca [6 x i32]
store i32 0, i32* %1
%12 = bitcast [6 x i32]* %11 to i8*
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32, i32* %2
%22 = sitofp i32 %21 to double
store double %22, double* %10
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = add nsw i32 %23, %24
store i32 %25, i32* %5
%26 = load i32, i32* %2
%27 = load i32, i32* %3
%28 = sub nsw i32 %26, %27
store i32 %28, i32* %6
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = mul nsw i32 %29, %30
store i32 %31, i32* %7
%32 = load double, double* %10
%33 = load i32, i32* %3
%34 = sitofp i32 %33 to double
%35 = fdiv double %32, %34
store double %35, double* %8
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = srem i32 %36, %37
store i32 %38, i32* %9
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = load i32, i32* %5
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %39, i32 %40, i32 %41)
%43 = load i32, i32* %2
%44 = load i32, i32* %3
%45 = load i32, i32* %6
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %43, i32 %44, i32 %45)
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = load i32, i32* %7
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %47, i32 %48, i32 %49)
%51 = load i32, i32* %2
%52 = load i32, i32* %3
%53 = load double, double* %8
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %51, i32 %52, double %53)
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = load i32, i32* %9
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %55, i32 %56, i32 %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0))
%60 = load i32, i32* %2
%61 = load i32, i32* %3
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %65
63: ; preds = %0
%64 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 0
store i32 1, i32* %64
br label %65
65: ; preds = %63, %0
%66 = load i32, i32* %2
%67 = load i32, i32* %3
%68 = icmp sgt i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
store i32 1, i32* %70
br label %71
71: ; preds = %69, %65
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = icmp sle i32 %72, %73
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 2
store i32 1, i32* %76
br label %77
77: ; preds = %75, %71
%78 = load i32, i32* %2
%79 = load i32, i32* %3
%80 = icmp sge i32 %78, %79
br i1 %80, label %81, label %83
81: ; preds = %77
%82 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
store i32 1, i32* %82
br label %83
83: ; preds = %81, %77
%84 = load i32, i32* %2
%85 = load i32, i32* %3
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %89
87: ; preds = %83
%88 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 4
store i32 1, i32* %88
br label %89
89: ; preds = %87, %83
%90 = load i32, i32* %2
%91 = load i32, i32* %3
%92 = icmp ne i32 %90, %91
br i1 %92, label %93, label %95
93: ; preds = %89
%94 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
store i32 1, i32* %94
br label %95
95: ; preds = %93, %89
%96 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 0
%97 = load i32, i32* %96
%98 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%99 = load i32, i32* %98
%100 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 2
%101 = load i32, i32* %100
%102 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%103 = load i32, i32* %102
%104 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 4
%105 = load i32, i32* %104
%106 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%107 = load i32, i32* %106
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %97, i32 %99, i32 %101, i32 %103, i32 %105, i32 %107)
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%111 = load i32, i32* %2
%112 = load i32, i32* %3
%113 = sub nsw i32 %111, %112
%114 = icmp sgt i32 %113, 0
br i1 %114, label %115, label %120
115: ; preds = %95
%116 = load i32, i32* %4
%117 = icmp sge i32 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %115
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %122
120: ; preds = %115, %95
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %122
122: ; preds = %120, %118
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%124 = load i32, i32* %2
%125 = load i32, i32* %3
%126 = sub nsw i32 %124, %125
%127 = icmp sgt i32 %126, 0
br i1 %127, label %131, label %128
128: ; preds = %122
%129 = load i32, i32* %4
%130 = icmp sge i32 %129, 0
br i1 %130, label %131, label %133
131: ; preds = %128, %122
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %135
133: ; preds = %128
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %135
135: ; preds = %133, %131
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0))
%137 = load i32, i32* %2
%138 = load i32, i32* %3
%139 = sub nsw i32 %137, %138
%140 = icmp sgt i32 %139, 0
br i1 %140, label %144, label %141
141: ; preds = %135
%142 = load i32, i32* %4
%143 = icmp sge i32 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141, %135
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %148
146: ; preds = %141
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %148
148: ; preds = %146, %144
%149 = load i32, i32* %1
ret i32 %149
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.5 = [37 x i8] c"Arithmetic operators: +, -, *, /, %\0A\00"
@.str.6 = [15 x i8] c"\0A%d + %d = %d\0A\00"
@.str.7 = [14 x i8] c"%d - %d = %d\0A\00"
@.str.8 = [14 x i8] c"%d * %d = %d\0A\00"
@.str.9 = [14 x i8] c"%d / %d = %g\0A\00"
@.str.10 = [16 x i8] c"%d %% %d = %d\0A\0A\00"
@.str.12 = [21 x i8] c"%d\09%d\09%d\09%d\09%d\09%d\09\0A\0A\00"
@str = [18 x i8] c"Enter first value\00"
@str.19 = [19 x i8] c"Enter second value\00"
@str.20 = [18 x i8] c"Enter third value\00"
@str.21 = [36 x i8] c"Illustrate the following operators:\00"
@str.22 = [56 x i8] c"Relational operators: (1=true, 0=false)\0A<\09>\09<=\09>=\09==\09!=\00"
@str.23 = [33 x i8] c"Logical operators: &&, ||, and !\00"
@str.24 = [35 x i8] c"Testing && operator\0Aif a-b>0&&c>=0\00"
@str.26 = [35 x i8] c"Testing && operator\0Aif a-b>0||c>=0\00"
@str.28 = [37 x i8] c"Testing ! operator\0Aif a-b>0||!(c>=0)\00"
@str.30 = [7 x i8] c"false\0A\00"
@str.32 = [6 x i8] c"true\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.19, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.20, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.21, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* %1
%16 = sitofp i32 %15 to double
%17 = load i32, i32* %2
%18 = add nsw i32 %17, %15
%19 = sub nsw i32 %15, %17
%20 = mul nsw i32 %17, %15
%21 = sitofp i32 %17 to double
%22 = fdiv double %16, %21
%23 = srem i32 %15, %17
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %15, i32 %17, i32 %18)
%25 = load i32, i32* %1
%26 = load i32, i32* %2
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %25, i32 %26, i32 %19)
%28 = load i32, i32* %1
%29 = load i32, i32* %2
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %28, i32 %29, i32 %20)
%31 = load i32, i32* %1
%32 = load i32, i32* %2
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %31, i32 %32, double %22)
%34 = load i32, i32* %1
%35 = load i32, i32* %2
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %34, i32 %35, i32 %23)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%38 = load i32, i32* %1
%39 = load i32, i32* %2
%40 = icmp slt i32 %38, %39
%41 = zext i1 %40 to i32
%42 = icmp sgt i32 %38, %39
%43 = zext i1 %42 to i32
%44 = xor i1 %42, true
%45 = zext i1 %44 to i32
%46 = xor i1 %40, true
%47 = zext i1 %46 to i32
%48 = icmp eq i32 %38, %39
%49 = zext i1 %48 to i32
%50 = xor i1 %48, true
%51 = zext i1 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %41, i32 %43, i32 %45, i32 %47, i32 %49, i32 %51)
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.23, i64 0, i64 0))
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.24, i64 0, i64 0))
%55 = load i32, i32* %1
%56 = load i32, i32* %2
%57 = icmp sgt i32 %55, %56
%58 = load i32, i32* %3
%59 = icmp sgt i32 %58, -1
%60 = select i1 %57, i1 %59, i1 false
%61 = select i1 %60, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.30, i64 0, i64 0)
%62 = call i32 @puts(i8* dereferenceable(1) %61)
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.26, i64 0, i64 0))
%64 = load i32, i32* %1
%65 = load i32, i32* %2
%66 = icmp sgt i32 %64, %65
%67 = load i32, i32* %3
%68 = icmp sgt i32 %67, -1
%69 = select i1 %66, i1 true, i1 %68
%70 = select i1 %69, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.30, i64 0, i64 0)
%71 = call i32 @puts(i8* dereferenceable(1) %70)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.28, i64 0, i64 0))
%73 = load i32, i32* %1
%74 = load i32, i32* %2
%75 = icmp sle i32 %73, %74
%76 = load i32, i32* %3
%77 = icmp sgt i32 %76, -1
%78 = select i1 %75, i1 %77, i1 false
%79 = select i1 %78, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.30, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.32, i64 0, i64 0)
%80 = call i32 @puts(i8* dereferenceable(1) %79)
ret i32 0
}