#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
char *strerror(int /*<<< orphan*/);
void grafico_duas_linhas(char *data1, char *data2, char *xtitle, char *ytitle,
                         char *title, char *legend1, char *legend2,
                         char *filename) {
  FILE *gnuplotPipe = popen("gnuplot -persistent", "w");
  if (!gnuplotPipe) {
    printf("ERROR in gnuplotPipe!\n");
    printf("Something went wrong with popen()! %s\n", strerror(errno));
    return;
  }
  char filename_data1[255];
  sprintf(filename_data1, "%s_%s.data", filename, legend1);
  FILE *f_data = fopen(filename_data1, "w");
  fputs(data1, f_data);
  fflush(f_data);
  fclose(f_data);
  free(data1);
  char filename_data2[255];
  sprintf(filename_data2, "%s_%s.data", filename, legend2);
  FILE *f_data2 = fopen(filename_data2, "w");
  fputs(data2, f_data2);
  fflush(f_data2);
  fclose(f_data2);
  free(data2);
  fputs(" set bmargin 7 \n", gnuplotPipe);
  fputs(" unset colorbox \n", gnuplotPipe);
  fputs(" set terminal png enhanced font 'Verdana,10' \n", gnuplotPipe);
  fputs(" set output '", gnuplotPipe);
  fputs(filename, gnuplotPipe);
  fputs(".png' \n", gnuplotPipe);
  fputs(" set style line 2  lc rgb '#0404E9' lt 1 pt 7 \n", gnuplotPipe);
  fputs(" set style line 3  lc rgb '#B22C2C' lt 1 pt 7 \n", gnuplotPipe);
  char paramaxis[1024];
  sprintf(paramaxis, " set xlabel '%s' \n set ylabel '%s' \n", xtitle, ytitle);
  fputs(paramaxis, gnuplotPipe);
  char paramtitle[1024];
  sprintf(paramtitle, " set title '%s'\n ", title);
  fputs(paramtitle, gnuplotPipe);
  char paramplot1[1024];
  sprintf(paramplot1, " plot '%s' using 1:2 title '%s' ls 2 with lines, ",
          filename_data1, legend1);
  char paramplot2[1024];
  sprintf(paramplot2, " '%s' using 1:2 title '%s' ls 3 with lines\n ",
          filename_data2, legend2);
  fputs(paramplot1, gnuplotPipe);
  fputs(paramplot2, gnuplotPipe);
  fputs("\nquit", gnuplotPipe);
  fflush(gnuplotPipe);
  fclose(gnuplotPipe);
}


x86 assembly (clang, -O0):
<grafico_duas_linhas>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1260,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    0xe3e(%rip),%rdi
lea    0xe4b(%rip),%rsi
call   1080 <popen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    120f <grafico_duas_linhas+0x7f>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %rax,%rsi
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1434 <grafico_duas_linhas+0x2a4>
lea    -0x140(%rbp),%rdi
mov    0x18(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x140(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x148(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x148(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x148(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x148(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
lea    -0x250(%rbp),%rdi
mov    0x18(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x250(%rbp),%rdi
lea    0xd72(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x258(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x258(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x258(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x258(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rsi
lea    0xd75(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xd76(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xd78(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xd97(%rip),%rdi
call   1060 <fputs@plt>
mov    0x18(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xd88(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xd80(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xda0(%rip),%rdi
call   1060 <fputs@plt>
lea    -0x660(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xdb5(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x660(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1060 <fputs@plt>
lea    -0xa60(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xdb1(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0xa60(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1060 <fputs@plt>
lea    -0xe60(%rbp),%rdi
lea    -0x140(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x1260(%rbp),%rdi
lea    -0x250(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    0xda5(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0xe60(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1060 <fputs@plt>
lea    -0x1260(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rsi
lea    0xda0(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x1260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<grafico_duas_linhas>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1238,%rsp
mov    %r9,%rbp
mov    %r8,0x28(%rsp)
mov    %rcx,%r12
mov    %rdx,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,%rbx
mov    0x1278(%rsp),%r15
mov    0x1270(%rsp),%r14
lea    0xe10(%rip),%rdi
lea    0xe1d(%rip),%rsi
call   1090 <popen@plt>
test   %rax,%rax
je     1468 <grafico_duas_linhas+0x2b8>
mov    %rax,%r13
lea    0xe2e(%rip),%rsi
lea    0x130(%rsp),%rdi
mov    %r12,0x8(%rsp)
mov    %rdi,%r12
mov    %r15,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   10b0 <sprintf@plt>
lea    0xde1(%rip),%rsi
mov    %r12,%rdi
call   10a0 <fopen@plt>
mov    %r14,%r12
mov    %rbp,0x10(%rsp)
mov    %rax,%r14
mov    %rbx,%rdi
mov    %rax,%rsi
call   1070 <fputs@plt>
mov    %r14,%rdi
call   1080 <fflush@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
lea    0xdc5(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %rbx,%rdi
lea    0xd85(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbp
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1070 <fputs@plt>
mov    %rbp,%rdi
call   1080 <fflush@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xd82(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd7a(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd73(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd89(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
mov    %r15,%rdi
mov    %r13,%rsi
call   1070 <fputs@plt>
lea    0xd73(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd62(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd79(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
lea    0xd90(%rip),%rsi
lea    0xe30(%rsp),%rbp
mov    %rbp,%rdi
mov    0x20(%rsp),%rdx
mov    0x8(%rsp),%rcx
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1070 <fputs@plt>
lea    0xd87(%rip),%rsi
lea    0xa30(%rsp),%rbp
mov    %rbp,%rdi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1070 <fputs@plt>
lea    0xd70(%rip),%rsi
lea    0x630(%rsp),%r14
mov    %r14,%rdi
lea    0x130(%rsp),%rdx
mov    0x10(%rsp),%rcx
xor    %eax,%eax
call   10b0 <sprintf@plt>
lea    0xd7c(%rip),%rsi
lea    0x230(%rsp),%rbp
mov    %rbp,%rdi
lea    0x30(%rsp),%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1070 <fputs@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1070 <fputs@plt>
lea    0xd72(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
mov    %r13,%rdi
call   1080 <fflush@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
add    $0x1238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd3d(%rip),%rdi
call   1040 <puts@plt>
mov    0x2b65(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xb8d(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
add    $0x1238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <printf@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"gnuplot -persistent\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [23 x i8] c"ERROR in gnuplotPipe!\0A\00"
@.str.3 = [39 x i8] c"Something went wrong with popen()! %s\0A\00"
@errno = global i32 0
@.str.4 = [11 x i8] c"%s_%s.data\00"
@.str.5 = [17 x i8] c" set bmargin 7 \0A\00"
@.str.6 = [18 x i8] c" unset colorbox \0A\00"
@.str.7 = [47 x i8] c" set terminal png enhanced font 'Verdana,10' \0A\00"
@.str.8 = [14 x i8] c" set output '\00"
@.str.9 = [8 x i8] c".png' \0A\00"
@.str.10 = [48 x i8] c" set style line 2 lc rgb 'E9' lt 1 pt 7 \0A\00"
@.str.11 = [48 x i8] c" set style line 3 lc rgb '#B22C2C' lt 1 pt 7 \0A\00"
@.str.12 = [37 x i8] c" set xlabel '%s' \0A set ylabel '%s' \0A\00"
@.str.13 = [18 x i8] c" set title '%s'\0A \00"
@.str.14 = [50 x i8] c" plot '%s' using 1:2 title '%s' ls 2 with lines, \00"
@.str.15 = [45 x i8] c" '%s' using 1:2 title '%s' ls 3 with lines\0A \00"
@.str.16 = [6 x i8] c"\0Aquit\00"
define void @grafico_duas_linhas(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32*
%18 = alloca [255 x i8]
%19 = alloca i32*
%20 = alloca [255 x i8]
%21 = alloca i32*
%22 = alloca [1024 x i8]
%23 = alloca [1024 x i8]
%24 = alloca [1024 x i8]
%25 = alloca [1024 x i8]
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%26 = call i32* @popen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %26, i32** %17
%27 = load i32*, i32** %17
%28 = icmp ne i32* %27, null
br i1 %28, label %34, label %29
29: ; preds = %8
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%31 = load i32, i32* @errno
%32 = call i8* @strerror(i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* %32)
br label %115
34: ; preds = %8
%35 = getelementptr inbounds [255 x i8], [255 x i8]* %18, i64 0, i64 0
%36 = load i8*, i8** %16
%37 = load i8*, i8** %14
%38 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %36, i8* %37)
%39 = getelementptr inbounds [255 x i8], [255 x i8]* %18, i64 0, i64 0
%40 = call i32* @fopen(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %40, i32** %19
%41 = load i8*, i8** %9
%42 = load i32*, i32** %19
%43 = call i32 @fputs(i8* %41, i32* %42)
%44 = load i32*, i32** %19
%45 = call i32 @fflush(i32* %44)
%46 = load i32*, i32** %19
%47 = call i32 @fclose(i32* %46)
%48 = load i8*, i8** %9
%49 = call i32 @free(i8* %48)
%50 = getelementptr inbounds [255 x i8], [255 x i8]* %20, i64 0, i64 0
%51 = load i8*, i8** %16
%52 = load i8*, i8** %15
%53 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %50, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %51, i8* %52)
%54 = getelementptr inbounds [255 x i8], [255 x i8]* %20, i64 0, i64 0
%55 = call i32* @fopen(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %55, i32** %21
%56 = load i8*, i8** %10
%57 = load i32*, i32** %21
%58 = call i32 @fputs(i8* %56, i32* %57)
%59 = load i32*, i32** %21
%60 = call i32 @fflush(i32* %59)
%61 = load i32*, i32** %21
%62 = call i32 @fclose(i32* %61)
%63 = load i8*, i8** %10
%64 = call i32 @free(i8* %63)
%65 = load i32*, i32** %17
%66 = call i32 @fputs(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32* %65)
%67 = load i32*, i32** %17
%68 = call i32 @fputs(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32* %67)
%69 = load i32*, i32** %17
%70 = call i32 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i32* %69)
%71 = load i32*, i32** %17
%72 = call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32* %71)
%73 = load i8*, i8** %16
%74 = load i32*, i32** %17
%75 = call i32 @fputs(i8* %73, i32* %74)
%76 = load i32*, i32** %17
%77 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32* %76)
%78 = load i32*, i32** %17
%79 = call i32 @fputs(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.10, i64 0, i64 0), i32* %78)
%80 = load i32*, i32** %17
%81 = call i32 @fputs(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32* %80)
%82 = getelementptr inbounds [1024 x i8], [1024 x i8]* %22, i64 0, i64 0
%83 = load i8*, i8** %11
%84 = load i8*, i8** %12
%85 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %82, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %83, i8* %84)
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %22, i64 0, i64 0
%87 = load i32*, i32** %17
%88 = call i32 @fputs(i8* %86, i32* %87)
%89 = getelementptr inbounds [1024 x i8], [1024 x i8]* %23, i64 0, i64 0
%90 = load i8*, i8** %13
%91 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %89, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8* %90)
%92 = getelementptr inbounds [1024 x i8], [1024 x i8]* %23, i64 0, i64 0
%93 = load i32*, i32** %17
%94 = call i32 @fputs(i8* %92, i32* %93)
%95 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%96 = getelementptr inbounds [255 x i8], [255 x i8]* %18, i64 0, i64 0
%97 = load i8*, i8** %14
%98 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %95, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0), i8* %96, i8* %97)
%99 = getelementptr inbounds [1024 x i8], [1024 x i8]* %25, i64 0, i64 0
%100 = getelementptr inbounds [255 x i8], [255 x i8]* %20, i64 0, i64 0
%101 = load i8*, i8** %15
%102 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %99, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.15, i64 0, i64 0), i8* %100, i8* %101)
%103 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%104 = load i32*, i32** %17
%105 = call i32 @fputs(i8* %103, i32* %104)
%106 = getelementptr inbounds [1024 x i8], [1024 x i8]* %25, i64 0, i64 0
%107 = load i32*, i32** %17
%108 = call i32 @fputs(i8* %106, i32* %107)
%109 = load i32*, i32** %17
%110 = call i32 @fputs(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i32* %109)
%111 = load i32*, i32** %17
%112 = call i32 @fflush(i32* %111)
%113 = load i32*, i32** %17
%114 = call i32 @fclose(i32* %113)
br label %115
115: ; preds = %34, %29
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"gnuplot -persistent\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [39 x i8] c"Something went wrong with popen()! %s\0A\00"
@errno = global i32 0
@.str.4 = [11 x i8] c"%s_%s.data\00"
@.str.5 = [17 x i8] c" set bmargin 7 \0A\00"
@.str.6 = [18 x i8] c" unset colorbox \0A\00"
@.str.7 = [47 x i8] c" set terminal png enhanced font 'Verdana,10' \0A\00"
@.str.8 = [14 x i8] c" set output '\00"
@.str.9 = [8 x i8] c".png' \0A\00"
@.str.10 = [48 x i8] c" set style line 2 lc rgb 'E9' lt 1 pt 7 \0A\00"
@.str.11 = [48 x i8] c" set style line 3 lc rgb '#B22C2C' lt 1 pt 7 \0A\00"
@.str.12 = [37 x i8] c" set xlabel '%s' \0A set ylabel '%s' \0A\00"
@.str.13 = [18 x i8] c" set title '%s'\0A \00"
@.str.14 = [50 x i8] c" plot '%s' using 1:2 title '%s' ls 2 with lines, \00"
@.str.15 = [45 x i8] c" '%s' using 1:2 title '%s' ls 3 with lines\0A \00"
@.str.16 = [6 x i8] c"\0Aquit\00"
@str = [22 x i8] c"ERROR in gnuplotPipe!\00"
define void @grafico_duas_linhas(i8* nocapture %0, i8* nocapture %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca [255 x i8]
%10 = alloca [255 x i8]
%11 = alloca [1024 x i8]
%12 = alloca [1024 x i8]
%13 = alloca [1024 x i8]
%14 = alloca [1024 x i8]
%15 = tail call i32* @popen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %22
17: ; preds = %8
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%19 = load i32, i32* @errno
%20 = tail call i8* @strerror(i32 %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* %20)
br label %60
22: ; preds = %8
%23 = getelementptr inbounds [255 x i8], [255 x i8]* %9, i64 0, i64 0
%24 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %23, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %7, i8* %5)
%25 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32 @fputs(i8* %0, i32* %25)
%27 = tail call i32 @fflush(i32* %25)
%28 = tail call i32 @fclose(i32* %25)
%29 = tail call i32 @free(i8* %0)
%30 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%31 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %30, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %7, i8* %6)
%32 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = tail call i32 @fputs(i8* %1, i32* %32)
%34 = tail call i32 @fflush(i32* %32)
%35 = tail call i32 @fclose(i32* %32)
%36 = tail call i32 @free(i8* %1)
%37 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i64 16, i64 1, i32* %15)
%38 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i64 17, i64 1, i32* %15)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i64 46, i64 1, i32* %15)
%40 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i64 13, i64 1, i32* %15)
%41 = tail call i32 @fputs(i8* %7, i32* %15)
%42 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i64 7, i64 1, i32* %15)
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.10, i64 0, i64 0), i64 47, i64 1, i32* %15)
%44 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i64 47, i64 1, i32* %15)
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%46 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %45, i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %2, i8* %3)
%47 = call i32 @fputs(i8* %45, i32* %15)
%48 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%49 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %48, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8* %4)
%50 = call i32 @fputs(i8* %48, i32* %15)
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%52 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %51, i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0), i8* %23, i8* %5)
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%54 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %53, i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.15, i64 0, i64 0), i8* %30, i8* %6)
%55 = call i32 @fputs(i8* %51, i32* %15)
%56 = call i32 @fputs(i8* %53, i32* %15)
%57 = call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i64 5, i64 1, i32* %15)
%58 = call i32 @fflush(i32* %15)
%59 = call i32 @fclose(i32* %15)
br label %60
60: ; preds = %22, %17
ret void
}