#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*/ assert(int);
int /*<<< orphan*/ increase_with_no_restrict(int *, int *, int *);
int /*<<< orphan*/ increase_with_restrict(int *, int *, int *);
int main(int argc, char **argv) {
  int v1 = 1;
  int v2 = 2;
  int v3 = 1;
  v1 = 1;
  v2 = 2;
  v3 = 1;
  increase_with_no_restrict(&v1, &v2, &v3);
  assert(v1 == 2);
  assert(v2 == 3);
  v1 = 1;
  v2 = 2;
  v3 = 1;
  increase_with_restrict(&v1, &v2, &v3);
  assert(v1 == 2);
  assert(v2 == 3);
  v1 = 1;
  v2 = 2;
  v3 = 1;
  increase_with_no_restrict(&v1, &v2, &v1);
  assert(v1 == 2);
  assert(v2 == 4);
  v1 = 1;
  v2 = 2;
  v3 = 1;
  increase_with_restrict(&v1, &v2, &v1);
  assert(v1 == 2);
  assert(v2 == 4);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1050 <increase_with_no_restrict@plt>
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
cmpl   $0x3,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1030 <increase_with_restrict@plt>
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
cmpl   $0x3,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    -0x14(%rbp),%rdx
lea    -0x18(%rbp),%rsi
mov    %rdx,%rdi
call   1050 <increase_with_no_restrict@plt>
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
cmpl   $0x4,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    -0x14(%rbp),%rdx
lea    -0x18(%rbp),%rsi
mov    %rdx,%rdi
call   1030 <increase_with_restrict@plt>
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
cmpl   $0x4,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x1,0x8(%rsp)
movl   $0x2,0x4(%rsp)
movl   $0x1,0xc(%rsp)
lea    0x8(%rsp),%rbx
lea    0x4(%rsp),%r14
lea    0xc(%rsp),%r15
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1050 <increase_with_no_restrict@plt>
xor    %edi,%edi
cmpl   $0x2,0x8(%rsp)
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
cmpl   $0x3,0x4(%rsp)
sete   %dil
call   1040 <assert@plt>
movl   $0x1,0x8(%rsp)
movl   $0x2,0x4(%rsp)
movl   $0x1,0xc(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <increase_with_restrict@plt>
xor    %edi,%edi
cmpl   $0x2,0x8(%rsp)
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
cmpl   $0x3,0x4(%rsp)
sete   %dil
call   1040 <assert@plt>
movl   $0x1,0x8(%rsp)
movl   $0x2,0x4(%rsp)
movl   $0x1,0xc(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1050 <increase_with_no_restrict@plt>
xor    %edi,%edi
cmpl   $0x2,0x8(%rsp)
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
cmpl   $0x4,0x4(%rsp)
sete   %dil
call   1040 <assert@plt>
movl   $0x1,0x8(%rsp)
movl   $0x2,0x4(%rsp)
movl   $0x1,0xc(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <increase_with_restrict@plt>
xor    %edi,%edi
cmpl   $0x2,0x8(%rsp)
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
cmpl   $0x4,0x4(%rsp)
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 1, i32* %5
store i32 2, i32* %6
store i32 1, i32* %7
store i32 1, i32* %5
store i32 2, i32* %6
store i32 1, i32* %7
%8 = call i32 @increase_with_no_restrict(i32* %5, i32* %6, i32* %7)
%9 = load i32, i32* %5
%10 = icmp eq i32 %9, 2
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i32, i32* %6
%14 = icmp eq i32 %13, 3
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
store i32 1, i32* %5
store i32 2, i32* %6
store i32 1, i32* %7
%17 = call i32 @increase_with_restrict(i32* %5, i32* %6, i32* %7)
%18 = load i32, i32* %5
%19 = icmp eq i32 %18, 2
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 3
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
store i32 1, i32* %5
store i32 2, i32* %6
store i32 1, i32* %7
%26 = call i32 @increase_with_no_restrict(i32* %5, i32* %6, i32* %5)
%27 = load i32, i32* %5
%28 = icmp eq i32 %27, 2
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = load i32, i32* %6
%32 = icmp eq i32 %31, 4
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
store i32 1, i32* %5
store i32 2, i32* %6
store i32 1, i32* %7
%35 = call i32 @increase_with_restrict(i32* %5, i32* %6, i32* %5)
%36 = load i32, i32* %5
%37 = icmp eq i32 %36, 2
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load i32, i32* %6
%41 = icmp eq i32 %40, 4
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
store i32 1, i32* %3
store i32 2, i32* %4
store i32 1, i32* %5
%9 = call i32 @increase_with_no_restrict(i32* %3, i32* %4, i32* %5)
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 2
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 3
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
store i32 1, i32* %3
store i32 2, i32* %4
store i32 1, i32* %5
%18 = call i32 @increase_with_restrict(i32* %3, i32* %4, i32* %5)
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 2
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load i32, i32* %4
%24 = icmp eq i32 %23, 3
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
store i32 1, i32* %3
store i32 2, i32* %4
store i32 1, i32* %5
%27 = call i32 @increase_with_no_restrict(i32* %3, i32* %4, i32* %3)
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 2
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load i32, i32* %4
%33 = icmp eq i32 %32, 4
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
store i32 1, i32* %3
store i32 2, i32* %4
store i32 1, i32* %5
%36 = call i32 @increase_with_restrict(i32* %3, i32* %4, i32* %3)
%37 = load i32, i32* %3
%38 = icmp eq i32 %37, 2
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = load i32, i32* %4
%42 = icmp eq i32 %41, 4
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
ret i32 0
}