#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*/ test(char *, char *);
void TEST_break_and_continue(void) {
  test("bar", "main(){int i=1; while (1) { if (i) { break; } printf(\"foo\"); "
              "} printf(\"bar\");}");
  test("aac", "main(){int i=2; while (i) { if (i) { printf(\"a\"); i=i-1; "
              "continue; } printf(\"b\"); } printf(\"c\");}");
  test("32a", "main(){for (int i=3;i;i=i-1) { printf(\"%d\", i); if (i==2) { "
              "break; } } printf(\"a\");}");
  test("321a", "main(){for (int i=3;i;i) { if (i) { printf(\"%d\", i); i=i-1; "
               "continue; } } printf(\"a\");}");
}


x86 assembly (clang, -O0):
<TEST_break_and_continue>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1030 <test@plt>
lea    0xf25(%rip),%rdi
lea    0xf22(%rip),%rsi
call   1030 <test@plt>
lea    0xf78(%rip),%rdi
lea    0xf75(%rip),%rsi
call   1030 <test@plt>
lea    0xfbe(%rip),%rdi
lea    0xfbc(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_break_and_continue>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee5(%rip),%rsi
call   1030 <test@plt>
lea    0xf28(%rip),%rdi
lea    0xf25(%rip),%rsi
call   1030 <test@plt>
lea    0xf7b(%rip),%rdi
lea    0xf78(%rip),%rsi
call   1030 <test@plt>
lea    0xfc1(%rip),%rdi
lea    0xfbf(%rip),%rsi
pop    %rax
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"bar\00"
@.str.1 = [79 x i8] c"main(){int i=1; while (1) { if (i) { break; } printf(\22foo\22); } printf(\22bar\22);}\00"
@.str.2 = [4 x i8] c"aac\00"
@.str.3 = [98 x i8] c"main(){int i=2; while (i) { if (i) { printf(\22a\22); i=i-1; continue; } printf(\22b\22); } printf(\22c\22);}\00"
@.str.4 = [4 x i8] c"32a\00"
@.str.5 = [85 x i8] c"main(){for (int i=3;i;i=i-1) { printf(\22%d\22, i); if (i==2) { break; } } printf(\22a\22);}\00"
@.str.6 = [5 x i8] c"321a\00"
@.str.7 = [88 x i8] c"main(){for (int i=3;i;i) { if (i) { printf(\22%d\22, i); i=i-1; continue; } } printf(\22a\22);}\00"
define void @TEST_break_and_continue() {
%1 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"bar\00"
@.str.1 = [79 x i8] c"main(){int i=1; while (1) { if (i) { break; } printf(\22foo\22); } printf(\22bar\22);}\00"
@.str.2 = [4 x i8] c"aac\00"
@.str.3 = [98 x i8] c"main(){int i=2; while (i) { if (i) { printf(\22a\22); i=i-1; continue; } printf(\22b\22); } printf(\22c\22);}\00"
@.str.4 = [4 x i8] c"32a\00"
@.str.5 = [85 x i8] c"main(){for (int i=3;i;i=i-1) { printf(\22%d\22, i); if (i==2) { break; } } printf(\22a\22);}\00"
@.str.6 = [5 x i8] c"321a\00"
@.str.7 = [88 x i8] c"main(){for (int i=3;i;i) { if (i) { printf(\22%d\22, i); i=i-1; continue; } } printf(\22a\22);}\00"
define void @TEST_break_and_continue() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.7, i64 0, i64 0))
ret void
}