int main() {
  int age;
  int married;
  int male_female;
  float normal_rate = 100;
  float daily_rate;
  printf("Are you married? \n (if maried enter 1, if unmarried enter 0)\n");
  scanf("%d", &married);
  printf("Are you male or female? \n (if female enter 1, if male enter 0) \n");
  scanf("%d", &male_female);
  printf("Please enter your age: ");
  scanf("%d", &age);
  if ((married == 1) && (male_female == 0) && (age >= 25)) {
    daily_rate = ((normal_rate - 10) * 1.5);
    printf("he daily rate for the customer is: %0.2f \n", daily_rate);
  } else if ((married == 0) && (male_female == 1) && (age < 25)) {
    daily_rate = ((normal_rate)*1.5);
    printf("he daily rate for the customer is: %0.2f \n", daily_rate);
  } else if ((married == 1) && (male_female == 1) && (age >= 25)) {
    daily_rate = (normal_rate - 10);
    printf("he daily rate for the customer is: %0.2f \n", daily_rate);
  } else if ((married == 1) && (male_female == 0) && (age < 25)) {
    daily_rate = ((normal_rate - 10) * 2);
    printf("The daily rate for the customer is: %0.2f \n", daily_rate);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xec9(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xef6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
jne    1200 <main+0xe0>
cmpl   $0x0,-0x10(%rbp)
jne    1200 <main+0xe0>
cmpl   $0x19,-0x8(%rbp)
jl     1200 <main+0xe0>
movss  -0x14(%rbp),%xmm0
movss  0xe41(%rip),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe39(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xebf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    130e <main+0x1ee>
cmpl   $0x0,-0xc(%rbp)
jne    1258 <main+0x138>
cmpl   $0x1,-0x10(%rbp)
jne    1258 <main+0x138>
cmpl   $0x19,-0x8(%rbp)
jge    1258 <main+0x138>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xde1(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe67(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1309 <main+0x1e9>
cmpl   $0x1,-0xc(%rbp)
jne    12a8 <main+0x188>
cmpl   $0x1,-0x10(%rbp)
jne    12a8 <main+0x188>
cmpl   $0x19,-0x8(%rbp)
jl     12a8 <main+0x188>
movss  -0x14(%rbp),%xmm0
movss  0xd85(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe17(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1304 <main+0x1e4>
cmpl   $0x1,-0xc(%rbp)
jne    12ff <main+0x1df>
cmpl   $0x0,-0x10(%rbp)
jne    12ff <main+0x1df>
cmpl   $0x19,-0x8(%rbp)
jge    12ff <main+0x1df>
movss  -0x14(%rbp),%xmm0
movss  0xd35(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xd25(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdba(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1304 <main+0x1e4>
jmp    1309 <main+0x1e9>
jmp    130e <main+0x1ee>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0xed8(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%esi
mov    %esi,%eax
xor    $0x1,%eax
mov    0x4(%rsp),%edx
or     %edx,%eax
sete   %al
mov    0xc(%rsp),%ecx
jne    11bd <main+0x8d>
cmp    $0x19,%ecx
jl     11bd <main+0x8d>
lea    0xe89(%rip),%rdi
movsd  0xe5d(%rip),%xmm0
jmp    1217 <main+0xe7>
test   %esi,%esi
jne    11dc <main+0xac>
cmp    $0x1,%edx
jne    11dc <main+0xac>
cmp    $0x18,%ecx
jg     11dc <main+0xac>
lea    0xe6a(%rip),%rdi
movsd  0xe36(%rip),%xmm0
jmp    1217 <main+0xe7>
cmp    $0x1,%esi
jne    11fc <main+0xcc>
cmp    $0x1,%edx
jne    11fc <main+0xcc>
cmp    $0x19,%ecx
jl     11fc <main+0xcc>
lea    0xe4a(%rip),%rdi
movsd  0xe0e(%rip),%xmm0
jmp    1217 <main+0xe7>
cmp    $0x19,%ecx
setl   %cl
and    %cl,%al
cmp    $0x1,%al
jne    121e <main+0xee>
lea    0xe2c(%rip),%rdi
movsd  0xde9(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [62 x i8] c"Are you married? \0A (if maried enter 1, if unmarried enter 0)\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [65 x i8] c"Are you male or female? \0A (if female enter 1, if male enter 0) \0A\00"
@.str.3 = [24 x i8] c"Please enter your age: \00"
@.str.4 = [43 x i8] c"he daily rate for the customer is: %0.2f \0A\00"
@.str.5 = [44 x i8] c"The daily rate for the customer is: %0.2f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
store float 1.000000e+02, float* %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %30
15: ; preds = %0
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %30
18: ; preds = %15
%19 = load i32, i32* %2
%20 = icmp sge i32 %19, 25
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load float, float* %5
%23 = fsub float %22, 1.000000e+01
%24 = fpext float %23 to double
%25 = fmul double %24, 1.500000e+00
%26 = fptrunc double %25 to float
store float %26, float* %6
%27 = load float, float* %6
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %28)
br label %81
30: ; preds = %18, %15, %0
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %47
33: ; preds = %30
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %47
36: ; preds = %33
%37 = load i32, i32* %2
%38 = icmp slt i32 %37, 25
br i1 %38, label %39, label %47
39: ; preds = %36
%40 = load float, float* %5
%41 = fpext float %40 to double
%42 = fmul double %41, 1.500000e+00
%43 = fptrunc double %42 to float
store float %43, float* %6
%44 = load float, float* %6
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %45)
br label %80
47: ; preds = %36, %33, %30
%48 = load i32, i32* %3
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = load i32, i32* %4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %62
53: ; preds = %50
%54 = load i32, i32* %2
%55 = icmp sge i32 %54, 25
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load float, float* %5
%58 = fsub float %57, 1.000000e+01
store float %58, float* %6
%59 = load float, float* %6
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %60)
br label %79
62: ; preds = %53, %50, %47
%63 = load i32, i32* %3
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %78
65: ; preds = %62
%66 = load i32, i32* %4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %78
68: ; preds = %65
%69 = load i32, i32* %2
%70 = icmp slt i32 %69, 25
br i1 %70, label %71, label %78
71: ; preds = %68
%72 = load float, float* %5
%73 = fsub float %72, 1.000000e+01
%74 = fmul float %73, 2.000000e+00
store float %74, float* %6
%75 = load float, float* %6
%76 = fpext float %75 to double
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), double %76)
br label %78
78: ; preds = %71, %68, %65, %62
br label %79
79: ; preds = %78, %56
br label %80
80: ; preds = %79, %39
br label %81
81: ; preds = %80, %21
%82 = load i32, i32* %1
ret i32 %82
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [24 x i8] c"Please enter your age: \00"
@.str.4 = [43 x i8] c"he daily rate for the customer is: %0.2f \0A\00"
@.str.5 = [44 x i8] c"The daily rate for the customer is: %0.2f \0A\00"
@str = [61 x i8] c"Are you married? \0A (if maried enter 1, if unmarried enter 0)\00"
@str.6 = [64 x i8] c"Are you male or female? \0A (if female enter 1, if male enter 0) \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 ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.6, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 1
%15 = load i32, i32* %3
%16 = icmp eq i32 %15, 0
%17 = select i1 %14, i1 %16, i1 false
%18 = load i32, i32* %1
%19 = icmp sgt i32 %18, 24
%20 = select i1 %17, i1 %19, i1 false
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double 1.350000e+02)
br label %40
23: ; preds = %0
%24 = icmp eq i32 %13, 0
%25 = icmp eq i32 %15, 1
%26 = select i1 %24, i1 %25, i1 false
%27 = icmp slt i32 %18, 25
%28 = select i1 %26, i1 %27, i1 false
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double 1.500000e+02)
br label %40
31: ; preds = %23
%32 = select i1 %14, i1 %25, i1 false
%33 = select i1 %32, i1 %19, i1 false
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double 9.000000e+01)
br label %40
36: ; preds = %31
%37 = select i1 %17, i1 %27, i1 false
br i1 %37, label %38, label %40
38: ; preds = %36
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), double 1.800000e+02)
br label %40
40: ; preds = %29, %36, %38, %34, %21
ret i32 0
}