#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*/ print(char *);
int /*<<< orphan*/ printl(long);
int /*<<< orphan*/ putchar(char);
void main() {
  long l;
  short s;
  char c;
  printl((long)9);
  putchar('\n');
  printl((long)89);
  putchar('\n');
  printl((long)789);
  putchar('\n');
  printl((long)6789);
  putchar('\n');
  printl((long)56789);
  putchar('\n');
  printl(456789);
  putchar('\n');
  printl(3456789);
  putchar('\n');
  printl(23456789);
  putchar('\n');
  printl(123456789);
  putchar('\n');
  printl(1234567890);
  putchar('\n');
  l = 12345678;
  printl(l++);
  print(" - 12345678 expected\n");
  printl(++l);
  print(" - 12345680 expected\n");
  printl(l--);
  print(" - 12345680 expected\n");
  printl(--l);
  print(" - 12345678 expected\n");
  c = 12;
  printl(l + c);
  print(" - 12345678 expected\n");
  printl(l - c);
  print(" - 12345678 expected\n");
  l += c;
  printl(l);
  print(" - 12345678 expected\n");
  l -= c;
  printl(l);
  print(" - 12345678 expected\n");
  s = 1234;
  printl(l + s);
  print(" - 12345678 expected\n");
  printl(l - s);
  print(" - 12345678 expected\n");
  l += s;
  printl(l);
  print(" - 12345678 expected\n");
  l -= s;
  printl(l);
  print(" - 12345678 expected\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x9,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x315,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1a85,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xddd5,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x6f855,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x34bf15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x165ec15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x75bcd15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x499602d2,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movq   $0xbc614e,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    %rdi,%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
call   1050 <printl@plt>
lea    0xddd(%rip),%rdi
call   1040 <print@plt>
mov    -0x8(%rbp),%rdi
add    $0x1,%rdi
mov    %rdi,-0x8(%rbp)
call   1050 <printl@plt>
lea    0xdd6(%rip),%rdi
call   1040 <print@plt>
mov    -0x8(%rbp),%rdi
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
call   1050 <printl@plt>
lea    0xdb6(%rip),%rdi
call   1040 <print@plt>
mov    -0x8(%rbp),%rdi
add    $0xffffffffffffffff,%rdi
mov    %rdi,-0x8(%rbp)
call   1050 <printl@plt>
lea    0xd83(%rip),%rdi
call   1040 <print@plt>
movb   $0xc,-0xb(%rbp)
mov    -0x8(%rbp),%rdi
movsbq -0xb(%rbp),%rax
add    %rax,%rdi
call   1050 <printl@plt>
lea    0xd62(%rip),%rdi
call   1040 <print@plt>
mov    -0x8(%rbp),%rdi
movsbq -0xb(%rbp),%rax
sub    %rax,%rdi
call   1050 <printl@plt>
lea    0xd45(%rip),%rdi
call   1040 <print@plt>
movsbq -0xb(%rbp),%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <printl@plt>
lea    0xd23(%rip),%rdi
call   1040 <print@plt>
movsbq -0xb(%rbp),%rcx
mov    -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <printl@plt>
lea    0xcfe(%rip),%rdi
call   1040 <print@plt>
movw   $0x4d2,-0xa(%rbp)
mov    -0x8(%rbp),%rdi
movswq -0xa(%rbp),%rax
add    %rax,%rdi
call   1050 <printl@plt>
lea    0xcdb(%rip),%rdi
call   1040 <print@plt>
mov    -0x8(%rbp),%rdi
movswq -0xa(%rbp),%rax
sub    %rax,%rdi
call   1050 <printl@plt>
lea    0xcbe(%rip),%rdi
call   1040 <print@plt>
movswq -0xa(%rbp),%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <printl@plt>
lea    0xc9c(%rip),%rdi
call   1040 <print@plt>
movswq -0xa(%rbp),%rcx
mov    -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <printl@plt>
lea    0xc77(%rip),%rdi
call   1040 <print@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x9,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x315,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1a85,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xddd5,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x6f855,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x34bf15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x165ec15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x75bcd15,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x499602d2,%edi
call   1050 <printl@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xbc614e,%edi
call   1050 <printl@plt>
lea    0xdf3(%rip),%rbx
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc6150,%edi
call   1050 <printl@plt>
lea    0xdf0(%rip),%r14
mov    %r14,%rdi
call   1040 <print@plt>
mov    $0xbc6150,%edi
call   1050 <printl@plt>
mov    %r14,%rdi
call   1040 <print@plt>
mov    $0xbc614e,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc615a,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc6142,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc615a,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc614e,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc6620,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc5c7c,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc6620,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    $0xbc614e,%edi
call   1050 <printl@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <print@plt>

LLVM IR (-O0):
@.str = [22 x i8] c" - 12345678 expected\0A\00"
@.str.1 = [22 x i8] c" - 12345680 expected\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca i16
%3 = alloca i8
%4 = call i32 @printl(i64 9)
%5 = call i32 @putchar(i8 signext 10)
%6 = call i32 @printl(i64 89)
%7 = call i32 @putchar(i8 signext 10)
%8 = call i32 @printl(i64 789)
%9 = call i32 @putchar(i8 signext 10)
%10 = call i32 @printl(i64 6789)
%11 = call i32 @putchar(i8 signext 10)
%12 = call i32 @printl(i64 56789)
%13 = call i32 @putchar(i8 signext 10)
%14 = call i32 @printl(i64 456789)
%15 = call i32 @putchar(i8 signext 10)
%16 = call i32 @printl(i64 3456789)
%17 = call i32 @putchar(i8 signext 10)
%18 = call i32 @printl(i64 23456789)
%19 = call i32 @putchar(i8 signext 10)
%20 = call i32 @printl(i64 123456789)
%21 = call i32 @putchar(i8 signext 10)
%22 = call i32 @printl(i64 1234567890)
%23 = call i32 @putchar(i8 signext 10)
store i64 12345678, i64* %1
%24 = load i64, i64* %1
%25 = add nsw i64 %24, 1
store i64 %25, i64* %1
%26 = call i32 @printl(i64 %24)
%27 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%28 = load i64, i64* %1
%29 = add nsw i64 %28, 1
store i64 %29, i64* %1
%30 = call i32 @printl(i64 %29)
%31 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%32 = load i64, i64* %1
%33 = add nsw i64 %32, -1
store i64 %33, i64* %1
%34 = call i32 @printl(i64 %32)
%35 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%36 = load i64, i64* %1
%37 = add nsw i64 %36, -1
store i64 %37, i64* %1
%38 = call i32 @printl(i64 %37)
%39 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i8 12, i8* %3
%40 = load i64, i64* %1
%41 = load i8, i8* %3
%42 = sext i8 %41 to i64
%43 = add nsw i64 %40, %42
%44 = call i32 @printl(i64 %43)
%45 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%46 = load i64, i64* %1
%47 = load i8, i8* %3
%48 = sext i8 %47 to i64
%49 = sub nsw i64 %46, %48
%50 = call i32 @printl(i64 %49)
%51 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%52 = load i8, i8* %3
%53 = sext i8 %52 to i64
%54 = load i64, i64* %1
%55 = add nsw i64 %54, %53
store i64 %55, i64* %1
%56 = load i64, i64* %1
%57 = call i32 @printl(i64 %56)
%58 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%59 = load i8, i8* %3
%60 = sext i8 %59 to i64
%61 = load i64, i64* %1
%62 = sub nsw i64 %61, %60
store i64 %62, i64* %1
%63 = load i64, i64* %1
%64 = call i32 @printl(i64 %63)
%65 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i16 1234, i16* %2
%66 = load i64, i64* %1
%67 = load i16, i16* %2
%68 = sext i16 %67 to i64
%69 = add nsw i64 %66, %68
%70 = call i32 @printl(i64 %69)
%71 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%72 = load i64, i64* %1
%73 = load i16, i16* %2
%74 = sext i16 %73 to i64
%75 = sub nsw i64 %72, %74
%76 = call i32 @printl(i64 %75)
%77 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%78 = load i16, i16* %2
%79 = sext i16 %78 to i64
%80 = load i64, i64* %1
%81 = add nsw i64 %80, %79
store i64 %81, i64* %1
%82 = load i64, i64* %1
%83 = call i32 @printl(i64 %82)
%84 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%85 = load i16, i16* %2
%86 = sext i16 %85 to i64
%87 = load i64, i64* %1
%88 = sub nsw i64 %87, %86
store i64 %88, i64* %1
%89 = load i64, i64* %1
%90 = call i32 @printl(i64 %89)
%91 = call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c" - 12345678 expected\0A\00"
@.str.1 = [22 x i8] c" - 12345680 expected\0A\00"
define void @main() {
%1 = tail call i32 @printl(i64 9)
%2 = tail call i32 @putchar(i8 signext 10)
%3 = tail call i32 @printl(i64 89)
%4 = tail call i32 @putchar(i8 signext 10)
%5 = tail call i32 @printl(i64 789)
%6 = tail call i32 @putchar(i8 signext 10)
%7 = tail call i32 @printl(i64 6789)
%8 = tail call i32 @putchar(i8 signext 10)
%9 = tail call i32 @printl(i64 56789)
%10 = tail call i32 @putchar(i8 signext 10)
%11 = tail call i32 @printl(i64 456789)
%12 = tail call i32 @putchar(i8 signext 10)
%13 = tail call i32 @printl(i64 3456789)
%14 = tail call i32 @putchar(i8 signext 10)
%15 = tail call i32 @printl(i64 23456789)
%16 = tail call i32 @putchar(i8 signext 10)
%17 = tail call i32 @printl(i64 123456789)
%18 = tail call i32 @putchar(i8 signext 10)
%19 = tail call i32 @printl(i64 1234567890)
%20 = tail call i32 @putchar(i8 signext 10)
%21 = tail call i32 @printl(i64 12345678)
%22 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @printl(i64 12345680)
%24 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @printl(i64 12345680)
%26 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%27 = tail call i32 @printl(i64 12345678)
%28 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%29 = tail call i32 @printl(i64 12345690)
%30 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%31 = tail call i32 @printl(i64 12345666)
%32 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%33 = tail call i32 @printl(i64 12345690)
%34 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%35 = tail call i32 @printl(i64 12345678)
%36 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%37 = tail call i32 @printl(i64 12346912)
%38 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%39 = tail call i32 @printl(i64 12344444)
%40 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%41 = tail call i32 @printl(i64 12346912)
%42 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%43 = tail call i32 @printl(i64 12345678)
%44 = tail call i32 @print(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}