#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, ...);
int main(int argc, char *argv[]) {
  int xs[3];
  int *xp;
  int i;
  xp = xs;
  xp = xs;
  xp = xs;
  *(xp ? xp++ : xs + 2) = 15;
  *(xp ? xp++ : xs + 1) = 25;
  *(xp ? xp++ : xs + 0) = 35;
  printf("%d,%d,%d\n", xs[0], xs[1], xs[2]);
  xp = NULL;
  *(xp ? xp++ : xs + 2) = 15;
  *(xp ? xp++ : xs + 1) = 25;
  *(xp ? xp++ : xs + 0) = 35;
  printf("%d,%d,%d\n", xs[0], xs[1], xs[2]);
  i = 0;
  xp = NULL;
  *(xp ? &xp[i++] : xs + 2) = 15;
  *(xp ? &xp[i++] : xs + 1) = 25;
  *(xp ? &xp[i++] : xs + 0) = 35;
  printf("%d,%d,%d; i=%d\n", xs[0], xs[1], xs[2], i);
  i = 0;
  xp = xs;
  *(xp ? &xp[i++] : xs + 2) = 15;
  *(xp ? &xp[i++] : xs + 1) = 25;
  *(xp ? &xp[i++] : xs + 0) = 35;
  printf("%d,%d,%d; i=%d\n", xs[0], xs[1], xs[2], i);
  xp = xs;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1c(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x1c(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x1c(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1164 <main+0x54>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x38(%rbp)
jmp    1170 <main+0x60>
lea    -0x1c(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movl   $0xf,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     119d <main+0x8d>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x40(%rbp)
jmp    11a9 <main+0x99>
lea    -0x1c(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movl   $0x19,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     11d6 <main+0xc6>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x48(%rbp)
jmp    11de <main+0xce>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movl   $0x23,(%rax)
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     122a <main+0x11a>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x50(%rbp)
jmp    1236 <main+0x126>
lea    -0x1c(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movl   $0xf,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1263 <main+0x153>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x58(%rbp)
jmp    126f <main+0x15f>
lea    -0x1c(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
movl   $0x19,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     129c <main+0x18c>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x60(%rbp)
jmp    12a4 <main+0x194>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
movl   $0x23,(%rax)
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1301 <main+0x1f1>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
jmp    130d <main+0x1fd>
lea    -0x1c(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
movl   $0xf,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1344 <main+0x234>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
jmp    1350 <main+0x240>
lea    -0x1c(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
movl   $0x19,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1387 <main+0x277>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
jmp    138f <main+0x27f>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
movl   $0x23,(%rax)
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
lea    -0x1c(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     13f0 <main+0x2e0>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
jmp    13fc <main+0x2ec>
lea    -0x1c(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
movl   $0xf,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1436 <main+0x326>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
jmp    1445 <main+0x335>
lea    -0x1c(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
movl   $0x19,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1482 <main+0x372>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
jmp    148d <main+0x37d>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
movl   $0x23,(%rax)
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xb5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x28(%rbp)
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0x19,%edx
mov    $0x23,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x23,%esi
mov    $0x19,%edx
mov    $0xf,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb9(%rip),%rbx
mov    %rbx,%rdi
mov    $0x23,%esi
mov    $0x19,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0x19,%edx
mov    $0x23,%ecx
mov    $0x3,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%d,%d,%d\0A\00"
@.str.1 = [16 x i8] c"%d,%d,%d; i=%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x i32]
%7 = alloca i32*
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32* %9, i32** %7
%10 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32* %10, i32** %7
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32* %11, i32** %7
%12 = load i32*, i32** %7
%13 = icmp ne i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32*, i32** %7
%16 = getelementptr inbounds i32, i32* %15, i32 1
store i32* %16, i32** %7
br label %20
17: ; preds = %2
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%19 = getelementptr inbounds i32, i32* %18, i64 2
br label %20
20: ; preds = %17, %14
%21 = phi i32* [ %15, %14 ], [ %19, %17 ]
store i32 15, i32* %21
%22 = load i32*, i32** %7
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32*, i32** %7
%26 = getelementptr inbounds i32, i32* %25, i32 1
store i32* %26, i32** %7
br label %30
27: ; preds = %20
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%29 = getelementptr inbounds i32, i32* %28, i64 1
br label %30
30: ; preds = %27, %24
%31 = phi i32* [ %25, %24 ], [ %29, %27 ]
store i32 25, i32* %31
%32 = load i32*, i32** %7
%33 = icmp ne i32* %32, null
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32*, i32** %7
%36 = getelementptr inbounds i32, i32* %35, i32 1
store i32* %36, i32** %7
br label %40
37: ; preds = %30
%38 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%39 = getelementptr inbounds i32, i32* %38, i64 0
br label %40
40: ; preds = %37, %34
%41 = phi i32* [ %35, %34 ], [ %39, %37 ]
store i32 35, i32* %41
%42 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%43 = load i32, i32* %42
%44 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%45 = load i32, i32* %44
%46 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%47 = load i32, i32* %46
%48 = call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %43, i32 %45, i32 %47)
store i32* null, i32** %7
%49 = load i32*, i32** %7
%50 = icmp ne i32* %49, null
br i1 %50, label %51, label %54
51: ; preds = %40
%52 = load i32*, i32** %7
%53 = getelementptr inbounds i32, i32* %52, i32 1
store i32* %53, i32** %7
br label %57
54: ; preds = %40
%55 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%56 = getelementptr inbounds i32, i32* %55, i64 2
br label %57
57: ; preds = %54, %51
%58 = phi i32* [ %52, %51 ], [ %56, %54 ]
store i32 15, i32* %58
%59 = load i32*, i32** %7
%60 = icmp ne i32* %59, null
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = load i32*, i32** %7
%63 = getelementptr inbounds i32, i32* %62, i32 1
store i32* %63, i32** %7
br label %67
64: ; preds = %57
%65 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%66 = getelementptr inbounds i32, i32* %65, i64 1
br label %67
67: ; preds = %64, %61
%68 = phi i32* [ %62, %61 ], [ %66, %64 ]
store i32 25, i32* %68
%69 = load i32*, i32** %7
%70 = icmp ne i32* %69, null
br i1 %70, label %71, label %74
71: ; preds = %67
%72 = load i32*, i32** %7
%73 = getelementptr inbounds i32, i32* %72, i32 1
store i32* %73, i32** %7
br label %77
74: ; preds = %67
%75 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%76 = getelementptr inbounds i32, i32* %75, i64 0
br label %77
77: ; preds = %74, %71
%78 = phi i32* [ %72, %71 ], [ %76, %74 ]
store i32 35, i32* %78
%79 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%80 = load i32, i32* %79
%81 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%82 = load i32, i32* %81
%83 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%84 = load i32, i32* %83
%85 = call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %80, i32 %82, i32 %84)
store i32 0, i32* %8
store i32* null, i32** %7
%86 = load i32*, i32** %7
%87 = icmp ne i32* %86, null
br i1 %87, label %88, label %94
88: ; preds = %77
%89 = load i32*, i32** %7
%90 = load i32, i32* %8
%91 = add nsw i32 %90, 1
store i32 %91, i32* %8
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i32, i32* %89, i64 %92
br label %97
94: ; preds = %77
%95 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%96 = getelementptr inbounds i32, i32* %95, i64 2
br label %97
97: ; preds = %94, %88
%98 = phi i32* [ %93, %88 ], [ %96, %94 ]
store i32 15, i32* %98
%99 = load i32*, i32** %7
%100 = icmp ne i32* %99, null
br i1 %100, label %101, label %107
101: ; preds = %97
%102 = load i32*, i32** %7
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds i32, i32* %102, i64 %105
br label %110
107: ; preds = %97
%108 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%109 = getelementptr inbounds i32, i32* %108, i64 1
br label %110
110: ; preds = %107, %101
%111 = phi i32* [ %106, %101 ], [ %109, %107 ]
store i32 25, i32* %111
%112 = load i32*, i32** %7
%113 = icmp ne i32* %112, null
br i1 %113, label %114, label %120
114: ; preds = %110
%115 = load i32*, i32** %7
%116 = load i32, i32* %8
%117 = add nsw i32 %116, 1
store i32 %117, i32* %8
%118 = sext i32 %116 to i64
%119 = getelementptr inbounds i32, i32* %115, i64 %118
br label %123
120: ; preds = %110
%121 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%122 = getelementptr inbounds i32, i32* %121, i64 0
br label %123
123: ; preds = %120, %114
%124 = phi i32* [ %119, %114 ], [ %122, %120 ]
store i32 35, i32* %124
%125 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%126 = load i32, i32* %125
%127 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%128 = load i32, i32* %127
%129 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%130 = load i32, i32* %129
%131 = load i32, i32* %8
%132 = call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %126, i32 %128, i32 %130, i32 %131)
store i32 0, i32* %8
%133 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32* %133, i32** %7
%134 = load i32*, i32** %7
%135 = icmp ne i32* %134, null
br i1 %135, label %136, label %142
136: ; preds = %123
%137 = load i32*, i32** %7
%138 = load i32, i32* %8
%139 = add nsw i32 %138, 1
store i32 %139, i32* %8
%140 = sext i32 %138 to i64
%141 = getelementptr inbounds i32, i32* %137, i64 %140
br label %145
142: ; preds = %123
%143 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%144 = getelementptr inbounds i32, i32* %143, i64 2
br label %145
145: ; preds = %142, %136
%146 = phi i32* [ %141, %136 ], [ %144, %142 ]
store i32 15, i32* %146
%147 = load i32*, i32** %7
%148 = icmp ne i32* %147, null
br i1 %148, label %149, label %155
149: ; preds = %145
%150 = load i32*, i32** %7
%151 = load i32, i32* %8
%152 = add nsw i32 %151, 1
store i32 %152, i32* %8
%153 = sext i32 %151 to i64
%154 = getelementptr inbounds i32, i32* %150, i64 %153
br label %158
155: ; preds = %145
%156 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%157 = getelementptr inbounds i32, i32* %156, i64 1
br label %158
158: ; preds = %155, %149
%159 = phi i32* [ %154, %149 ], [ %157, %155 ]
store i32 25, i32* %159
%160 = load i32*, i32** %7
%161 = icmp ne i32* %160, null
br i1 %161, label %162, label %168
162: ; preds = %158
%163 = load i32*, i32** %7
%164 = load i32, i32* %8
%165 = add nsw i32 %164, 1
store i32 %165, i32* %8
%166 = sext i32 %164 to i64
%167 = getelementptr inbounds i32, i32* %163, i64 %166
br label %171
168: ; preds = %158
%169 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%170 = getelementptr inbounds i32, i32* %169, i64 0
br label %171
171: ; preds = %168, %162
%172 = phi i32* [ %167, %162 ], [ %170, %168 ]
store i32 35, i32* %172
%173 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%174 = load i32, i32* %173
%175 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%176 = load i32, i32* %175
%177 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%178 = load i32, i32* %177
%179 = load i32, i32* %8
%180 = call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %174, i32 %176, i32 %178, i32 %179)
%181 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32* %181, i32** %7
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%d,%d,%d\0A\00"
@.str.1 = [16 x i8] c"%d,%d,%d; i=%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 15, i32 25, i32 35)
%4 = tail call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 35, i32 25, i32 15)
%5 = tail call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 35, i32 25, i32 15, i32 0)
%6 = tail call i32 (i8*, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 15, i32 25, i32 35, i32 3)
ret i32 0
}