#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, int, int, float);
int main() {
  int a = 250, b = 85, c = 25;
  float x;
  x = a / (b - c);
  printf("For A = %d, B = %d, C = %d, X is: %f\n", a, b, c, x);
  a = 300;
  b = 70;
  c = 60;
  x = a / (b - c);
  printf("For A = %d, B = %d, C = %d, X is: %f\n", a, b, c, x);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xfa,-0x8(%rbp)
movl   $0x55,-0xc(%rbp)
movl   $0x19,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
movss  -0x14(%rbp),%xmm0
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
movl   $0x12c,-0x8(%rbp)
movl   $0x46,-0xc(%rbp)
movl   $0x3c,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
movss  -0x14(%rbp),%xmm0
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef0(%rip),%rbx
movss  0xee0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xfa,%esi
mov    $0x55,%edx
mov    $0x19,%ecx
call   1030 <printf@plt>
movss  0xec5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
mov    $0x46,%edx
mov    $0x3c,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"For A = %d, B = %d, C = %d, X is: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
store i32 0, i32* %1
store i32 250, i32* %2
store i32 85, i32* %3
store i32 25, i32* %4
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = sub nsw i32 %7, %8
%10 = sdiv i32 %6, %9
%11 = sitofp i32 %10 to float
store float %11, float* %5
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = load float, float* %5
%16 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13, i32 %14, float %15)
store i32 300, i32* %2
store i32 70, i32* %3
store i32 60, i32* %4
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = sub nsw i32 %18, %19
%21 = sdiv i32 %17, %20
%22 = sitofp i32 %21 to float
store float %22, float* %5
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = load i32, i32* %4
%26 = load float, float* %5
%27 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %23, i32 %24, i32 %25, float %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"For A = %d, B = %d, C = %d, X is: %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 250, i32 85, i32 25, float 4.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 300, i32 70, i32 60, float 3.000000e+01)
ret i32 0
}