#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*/ puts(char *);
int /*<<< orphan*/ scanf(char *, unsigned int *);
int main(void) {
  unsigned int oreInSecondi(unsigned int oreTempoInput,
                            unsigned int minutiTempoInput,
                            unsigned int secondiTempoInput);
  unsigned int oreTempoInput;
  unsigned int minutiTempoInput;
  unsigned int secondiTempoInput;
  unsigned int secondiPrimoOrario;
  unsigned int secondiSecondoOrario;
  unsigned int valoreSentinella = 0;
  puts("Inserisci il Primo Orario: ");
  do {
    printf("%s", "Inserire le ore che compongono l'orario ( quadrante 12h ): ");
    scanf("%u", &oreTempoInput);
    if (oreTempoInput >= 0 && oreTempoInput <= 11) {
      printf("%s", "Inserire i minuti che compongono l'orario: ");
      scanf("%u", &minutiTempoInput);
      if (minutiTempoInput >= 0 && minutiTempoInput <= 59) {
        printf("%s", "Inserire i secondiTempoInput che compongono l'orario: ");
        scanf("%u", &secondiTempoInput);
        if (secondiTempoInput >= 0 && secondiTempoInput <= 59) {
          valoreSentinella = 1;
        } else {
          puts("Attenzione non e' stato inserito un valore in secondi valido.");
        }
      } else {
        puts("Attenzione non e' stato inserito un valore in minuti valido.");
      }
    } else {
      puts("Attenzione non e' stato inserito un valore in ore valido.");
    }
  } while (valoreSentinella != 1);
  secondiPrimoOrario =
      oreInSecondi(oreTempoInput, minutiTempoInput, secondiTempoInput);
  puts("Secondo Orario:");
  do {
    printf("%s", "Inserire le ore che compongono l'orario ( quadrante 12h ): ");
    scanf("%u", &oreTempoInput);
    if (oreTempoInput >= 0 && oreTempoInput <= 11) {
      printf("%s", "Inserire i minuti che compongono l'orario: ");
      scanf("%u", &minutiTempoInput);
      if (minutiTempoInput >= 0 && minutiTempoInput <= 59) {
        printf("%s", "Inserire i secondiTempoInput che compongono l'orario: ");
        scanf("%u", &secondiTempoInput);
        if (secondiTempoInput >= 0 && secondiTempoInput <= 59) {
          valoreSentinella = 1;
        } else {
          puts("Attenzione non e' stato inserito un valore in secondi valido.");
        }
      } else {
        puts("Attenzione non e' stato inserito un valore in minuti valido.");
      }
    } else {
      puts("Attenzione non e' stato inserito un valore in ore valido.");
    }
  } while (valoreSentinella != 1);
  secondiSecondoOrario =
      oreInSecondi(oreTempoInput, minutiTempoInput, secondiTempoInput);
  printf("%s", "La differenza in secondi tra i due orari e' di: ");
  if (secondiPrimoOrario >= secondiSecondoOrario) {
    printf("%d", secondiPrimoOrario - secondiSecondoOrario);
  } else {
    printf("%d", secondiSecondoOrario - secondiPrimoOrario);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jb     123b <main+0xfb>
cmpl   $0xb,-0x8(%rbp)
ja     123b <main+0xfb>
lea    0xe7a(%rip),%rdi
lea    0xeb5(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jb     122a <main+0xea>
cmpl   $0x3b,-0xc(%rbp)
ja     122a <main+0xea>
lea    0xe41(%rip),%rdi
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe6b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x10(%rbp)
jb     1219 <main+0xd9>
cmpl   $0x3b,-0x10(%rbp)
ja     1219 <main+0xd9>
movl   $0x1,-0x1c(%rbp)
jmp    1225 <main+0xe5>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
jmp    1236 <main+0xf6>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
jmp    1247 <main+0x107>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
jmp    124c <main+0x10c>
cmpl   $0x1,-0x1c(%rbp)
jne    1162 <main+0x22>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1060 <oreInSecondi@plt>
mov    %eax,-0x14(%rbp)
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xda2(%rip),%rdi
lea    0xd9e(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdcc(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jb     134c <main+0x20c>
cmpl   $0xb,-0x8(%rbp)
ja     134c <main+0x20c>
lea    0xd69(%rip),%rdi
lea    0xda4(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd93(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jb     133b <main+0x1fb>
cmpl   $0x3b,-0xc(%rbp)
ja     133b <main+0x1fb>
lea    0xd30(%rip),%rdi
lea    0xd97(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd5a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x10(%rbp)
jb     132a <main+0x1ea>
cmpl   $0x3b,-0x10(%rbp)
ja     132a <main+0x1ea>
movl   $0x1,-0x1c(%rbp)
jmp    1336 <main+0x1f6>
lea    0xd90(%rip),%rdi
call   1030 <puts@plt>
jmp    1347 <main+0x207>
lea    0xdbd(%rip),%rdi
call   1030 <puts@plt>
jmp    1358 <main+0x218>
lea    0xde9(%rip),%rdi
call   1030 <puts@plt>
jmp    135d <main+0x21d>
cmpl   $0x1,-0x1c(%rbp)
jne    1273 <main+0x133>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1060 <oreInSecondi@plt>
mov    %eax,-0x18(%rbp)
lea    0xc9d(%rip),%rdi
lea    0xe00(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jb     13b2 <main+0x272>
mov    -0x14(%rbp),%esi
sub    -0x18(%rbp),%esi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13c6 <main+0x286>
mov    -0x18(%rbp),%esi
sub    -0x14(%rbp),%esi
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xeab(%rip),%rdi
call   1030 <puts@plt>
lea    0xebb(%rip),%r15
lea    0xeb7(%rip),%r14
lea    0xeec(%rip),%rbx
lea    0x10(%rsp),%r12
lea    0xfc1(%rip),%r13
lea    0xf7d(%rip),%rbp
jmp    1195 <main+0x55>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
cmpl   $0xb,0x10(%rsp)
mov    %r13,%rdi
ja     1190 <main+0x50>
mov    %r15,%rdi
lea    0xe9d(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x3b,0xc(%rsp)
mov    %rbp,%rdi
ja     1190 <main+0x50>
mov    %r15,%rdi
lea    0xea1(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x14(%rsp),%edx
lea    0xeb9(%rip),%rdi
cmp    $0x3c,%edx
jae    1190 <main+0x50>
mov    0x10(%rsp),%edi
mov    0xc(%rsp),%esi
call   1060 <oreInSecondi@plt>
mov    %eax,%ebx
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xded(%rip),%rdi
lea    0xde9(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe17(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0xb,0x10(%rsp)
ja     12b8 <main+0x178>
lea    0xdc0(%rip),%rdi
lea    0xdfb(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdea(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x3b,0xc(%rsp)
ja     12c1 <main+0x181>
lea    0xd93(%rip),%rdi
lea    0xdfa(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdbd(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x3c,0x14(%rsp)
jb     12cd <main+0x18d>
lea    0xe0b(%rip),%rdi
jmp    12c8 <main+0x188>
lea    0xe7d(%rip),%rdi
jmp    12c8 <main+0x188>
lea    0xe37(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%edi
mov    0xc(%rsp),%esi
mov    0x14(%rsp),%edx
call   1060 <oreInSecondi@plt>
mov    %ebx,%ecx
sub    %eax,%ecx
neg    %ecx
sub    %eax,%ebx
lea    0xe99(%rip),%rsi
lea    0xd28(%rip),%rdi
cmovb  %ecx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Inserisci il Primo Orario: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [60 x i8] c"Inserire le ore che compongono l'orario ( quadrante 12h ): \00"
@.str.3 = [3 x i8] c"%u\00"
@.str.4 = [44 x i8] c"Inserire i minuti che compongono l'orario: \00"
@.str.5 = [55 x i8] c"Inserire i secondiTempoInput che compongono l'orario: \00"
@.str.6 = [62 x i8] c"Attenzione non e' stato inserito un valore in secondi valido.\00"
@.str.7 = [61 x i8] c"Attenzione non e' stato inserito un valore in minuti valido.\00"
@.str.8 = [58 x i8] c"Attenzione non e' stato inserito un valore in ore valido.\00"
@.str.9 = [16 x i8] c"Secondo Orario:\00"
@.str.10 = [49 x i8] c"La differenza in secondi tra i due orari e' di: \00"
@.str.11 = [3 x i8] c"%d\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
store i32 0, i32* %1
store i32 0, i32* %7
%8 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %43, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%12 = load i32, i32* %2
%13 = icmp uge i32 %12, 0
br i1 %13, label %14, label %40
14: ; preds = %9
%15 = load i32, i32* %2
%16 = icmp ule i32 %15, 11
br i1 %16, label %17, label %40
17: ; preds = %14
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%20 = load i32, i32* %3
%21 = icmp uge i32 %20, 0
br i1 %21, label %22, label %37
22: ; preds = %17
%23 = load i32, i32* %3
%24 = icmp ule i32 %23, 59
br i1 %24, label %25, label %37
25: ; preds = %22
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%28 = load i32, i32* %4
%29 = icmp uge i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load i32, i32* %4
%32 = icmp ule i32 %31, 59
br i1 %32, label %33, label %34
33: ; preds = %30
store i32 1, i32* %7
br label %36
34: ; preds = %30, %25
%35 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %33
br label %39
37: ; preds = %22, %17
%38 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
br label %39
39: ; preds = %37, %36
br label %42
40: ; preds = %14, %9
%41 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
br label %42
42: ; preds = %40, %39
br label %43
43: ; preds = %42
%44 = load i32, i32* %7
%45 = icmp ne i32 %44, 1
br i1 %45, label %9, label %46
46: ; preds = %43
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = load i32, i32* %4
%50 = call i32 @oreInSecondi(i32 %47, i32 %48, i32 %49)
store i32 %50, i32* %5
%51 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
br label %52
52: ; preds = %86, %46
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%55 = load i32, i32* %2
%56 = icmp uge i32 %55, 0
br i1 %56, label %57, label %83
57: ; preds = %52
%58 = load i32, i32* %2
%59 = icmp ule i32 %58, 11
br i1 %59, label %60, label %83
60: ; preds = %57
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%63 = load i32, i32* %3
%64 = icmp uge i32 %63, 0
br i1 %64, label %65, label %80
65: ; preds = %60
%66 = load i32, i32* %3
%67 = icmp ule i32 %66, 59
br i1 %67, label %68, label %80
68: ; preds = %65
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%70 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%71 = load i32, i32* %4
%72 = icmp uge i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %68
%74 = load i32, i32* %4
%75 = icmp ule i32 %74, 59
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 1, i32* %7
br label %79
77: ; preds = %73, %68
%78 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
br label %79
79: ; preds = %77, %76
br label %82
80: ; preds = %65, %60
%81 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
br label %82
82: ; preds = %80, %79
br label %85
83: ; preds = %57, %52
%84 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
br label %85
85: ; preds = %83, %82
br label %86
86: ; preds = %85
%87 = load i32, i32* %7
%88 = icmp ne i32 %87, 1
br i1 %88, label %52, label %89
89: ; preds = %86
%90 = load i32, i32* %2
%91 = load i32, i32* %3
%92 = load i32, i32* %4
%93 = call i32 @oreInSecondi(i32 %90, i32 %91, i32 %92)
store i32 %93, i32* %6
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%95 = load i32, i32* %5
%96 = load i32, i32* %6
%97 = icmp uge i32 %95, %96
br i1 %97, label %98, label %103
98: ; preds = %89
%99 = load i32, i32* %5
%100 = load i32, i32* %6
%101 = sub i32 %99, %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %101)
br label %108
103: ; preds = %89
%104 = load i32, i32* %6
%105 = load i32, i32* %5
%106 = sub i32 %104, %105
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %106)
br label %108
108: ; preds = %103, %98
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Inserisci il Primo Orario: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [60 x i8] c"Inserire le ore che compongono l'orario ( quadrante 12h ): \00"
@.str.3 = [3 x i8] c"%u\00"
@.str.4 = [44 x i8] c"Inserire i minuti che compongono l'orario: \00"
@.str.5 = [55 x i8] c"Inserire i secondiTempoInput che compongono l'orario: \00"
@.str.6 = [62 x i8] c"Attenzione non e' stato inserito un valore in secondi valido.\00"
@.str.7 = [61 x i8] c"Attenzione non e' stato inserito un valore in minuti valido.\00"
@.str.8 = [58 x i8] c"Attenzione non e' stato inserito un valore in ore valido.\00"
@.str.9 = [16 x i8] c"Secondo Orario:\00"
@.str.10 = [49 x i8] c"La differenza in secondi tra i due orari e' di: \00"
@.str.11 = [3 x i8] c"%d\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 ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %23, %0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = icmp ult i32 %11, 12
br i1 %12, label %13, label %23
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%16 = load i32, i32* %2
%17 = icmp ult i32 %16, 60
br i1 %17, label %18, label %23
18: ; preds = %13
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%21 = load i32, i32* %3
%22 = icmp ult i32 %21, 60
br i1 %22, label %26, label %23
23: ; preds = %8, %13, %18
%24 = phi i8* [ getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), %18 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0), %13 ], [ getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), %8 ]
%25 = call i32 @puts(i8* dereferenceable(1) %24)
br label %8
26: ; preds = %18
%27 = load i32, i32* %1
%28 = load i32, i32* %2
%29 = call i32 @oreInSecondi(i32 %27, i32 %28, i32 %21)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%33 = load i32, i32* %1
%34 = icmp ult i32 %33, 12
br i1 %34, label %35, label %45
35: ; preds = %26
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%38 = load i32, i32* %2
%39 = icmp ult i32 %38, 60
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%43 = load i32, i32* %3
%44 = icmp ult i32 %43, 60
br i1 %44, label %48, label %45
45: ; preds = %26, %35, %40
%46 = phi i8* [ getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), %40 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0), %35 ], [ getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), %26 ]
%47 = call i32 @puts(i8* dereferenceable(1) %46)
br label %48
48: ; preds = %45, %40
%49 = load i32, i32* %1
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = call i32 @oreInSecondi(i32 %49, i32 %50, i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%54 = icmp ult i32 %29, %52
%55 = sub i32 %52, %29
%56 = sub i32 %29, %52
%57 = select i1 %54, i32 %55, i32 %56
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %57)
ret i32 0
}