; ModuleID = 'LFortran'
source_filename = "LFortran"

%complex_4 = type { float, float }

@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@3 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@5 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1

define i32 @main(i32 %0, i8** %1) {
.entry:
  call void @_lpython_call_initial_functions(i32 %0, i8** %1)
  %x = alloca %complex_4, align 8
  %2 = alloca %complex_4, align 8
  %3 = getelementptr %complex_4, %complex_4* %2, i32 0, i32 0
  %4 = getelementptr %complex_4, %complex_4* %2, i32 0, i32 1
  store float 3.000000e+00, float* %3, align 4
  store float 4.000000e+00, float* %4, align 4
  %5 = load %complex_4, %complex_4* %2, align 4
  store %complex_4 %5, %complex_4* %x, align 4
  %6 = load %complex_4, %complex_4* %x, align 4
  %7 = alloca %complex_4, align 8
  %8 = getelementptr %complex_4, %complex_4* %7, i32 0, i32 0
  %9 = getelementptr %complex_4, %complex_4* %7, i32 0, i32 1
  store float 4.000000e+00, float* %8, align 4
  store float 0.000000e+00, float* %9, align 4
  %10 = load %complex_4, %complex_4* %7, align 4
  %11 = alloca %complex_4, align 8
  store %complex_4 %6, %complex_4* %11, align 4
  %12 = alloca %complex_4, align 8
  store %complex_4 %10, %complex_4* %12, align 4
  %13 = alloca %complex_4, align 8
  call void @_lfortran_complex_sub_32(%complex_4* %11, %complex_4* %12, %complex_4* %13)
  %14 = load %complex_4, %complex_4* %13, align 4
  store %complex_4 %14, %complex_4* %x, align 4
  %15 = alloca %complex_4, align 8
  %16 = getelementptr %complex_4, %complex_4* %15, i32 0, i32 0
  %17 = getelementptr %complex_4, %complex_4* %15, i32 0, i32 1
  store float 4.000000e+00, float* %16, align 4
  store float 0.000000e+00, float* %17, align 4
  %18 = load %complex_4, %complex_4* %15, align 4
  %19 = load %complex_4, %complex_4* %x, align 4
  %20 = alloca %complex_4, align 8
  store %complex_4 %18, %complex_4* %20, align 4
  %21 = alloca %complex_4, align 8
  store %complex_4 %19, %complex_4* %21, align 4
  %22 = alloca %complex_4, align 8
  call void @_lfortran_complex_sub_32(%complex_4* %20, %complex_4* %21, %complex_4* %22)
  %23 = load %complex_4, %complex_4* %22, align 4
  store %complex_4 %23, %complex_4* %x, align 4
  %24 = load %complex_4, %complex_4* %x, align 4
  %25 = alloca %complex_4, align 8
  store %complex_4 %24, %complex_4* %25, align 4
  %26 = getelementptr %complex_4, %complex_4* %25, i32 0, i32 0
  %27 = load float, float* %26, align 4
  %28 = fpext float %27 to double
  %29 = alloca %complex_4, align 8
  store %complex_4 %24, %complex_4* %29, align 4
  %30 = getelementptr %complex_4, %complex_4* %29, i32 0, i32 1
  %31 = load float, float* %30, align 4
  %32 = fpext float %31 to double
  %33 = call i8* (i32, i8*, ...) @_lcompilers_string_format_fortran(i32 4, i8* null, i32 6, double %28, i32 6, double %32)
  call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0))
  %34 = alloca %complex_4, align 8
  %35 = getelementptr %complex_4, %complex_4* %34, i32 0, i32 0
  %36 = getelementptr %complex_4, %complex_4* %34, i32 0, i32 1
  store float 2.000000e+00, float* %35, align 4
  store float 0.000000e+00, float* %36, align 4
  %37 = load %complex_4, %complex_4* %34, align 4
  %38 = load %complex_4, %complex_4* %x, align 4
  %39 = alloca %complex_4, align 8
  store %complex_4 %37, %complex_4* %39, align 4
  %40 = alloca %complex_4, align 8
  store %complex_4 %38, %complex_4* %40, align 4
  %41 = alloca %complex_4, align 8
  call void @_lfortran_complex_sub_32(%complex_4* %39, %complex_4* %40, %complex_4* %41)
  %42 = load %complex_4, %complex_4* %41, align 4
  store %complex_4 %42, %complex_4* %x, align 4
  %43 = load %complex_4, %complex_4* %x, align 4
  %44 = alloca %complex_4, align 8
  store %complex_4 %43, %complex_4* %44, align 4
  %45 = getelementptr %complex_4, %complex_4* %44, i32 0, i32 0
  %46 = load float, float* %45, align 4
  %47 = fpext float %46 to double
  %48 = alloca %complex_4, align 8
  store %complex_4 %43, %complex_4* %48, align 4
  %49 = getelementptr %complex_4, %complex_4* %48, i32 0, i32 1
  %50 = load float, float* %49, align 4
  %51 = fpext float %50 to double
  %52 = call i8* (i32, i8*, ...) @_lcompilers_string_format_fortran(i32 4, i8* null, i32 6, double %47, i32 6, double %51)
  call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @3, i32 0, i32 0), i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @2, i32 0, i32 0))
  %53 = load %complex_4, %complex_4* %x, align 4
  %54 = alloca %complex_4, align 8
  %55 = getelementptr %complex_4, %complex_4* %54, i32 0, i32 0
  %56 = getelementptr %complex_4, %complex_4* %54, i32 0, i32 1
  store float 0.000000e+00, float* %55, align 4
  store float 3.000000e+00, float* %56, align 4
  %57 = load %complex_4, %complex_4* %54, align 4
  %58 = alloca %complex_4, align 8
  store %complex_4 %53, %complex_4* %58, align 4
  %59 = alloca %complex_4, align 8
  store %complex_4 %57, %complex_4* %59, align 4
  %60 = alloca %complex_4, align 8
  call void @_lfortran_complex_sub_32(%complex_4* %58, %complex_4* %59, %complex_4* %60)
  %61 = load %complex_4, %complex_4* %60, align 4
  store %complex_4 %61, %complex_4* %x, align 4
  %62 = load %complex_4, %complex_4* %x, align 4
  %63 = alloca %complex_4, align 8
  store %complex_4 %62, %complex_4* %63, align 4
  %64 = getelementptr %complex_4, %complex_4* %63, i32 0, i32 0
  %65 = load float, float* %64, align 4
  %66 = fpext float %65 to double
  %67 = alloca %complex_4, align 8
  store %complex_4 %62, %complex_4* %67, align 4
  %68 = getelementptr %complex_4, %complex_4* %67, i32 0, i32 1
  %69 = load float, float* %68, align 4
  %70 = fpext float %69 to double
  %71 = call i8* (i32, i8*, ...) @_lcompilers_string_format_fortran(i32 4, i8* null, i32 6, double %66, i32 6, double %70)
  call void (i8*, ...) @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @5, i32 0, i32 0), i8* %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @4, i32 0, i32 0))
  call void @_lpython_free_argv()
  br label %return

return:                                           ; preds = %.entry
  ret i32 0
}

declare void @_lpython_call_initial_functions(i32, i8**)

declare void @_lfortran_complex_sub_32(%complex_4*, %complex_4*, %complex_4*)

declare i8* @_lcompilers_string_format_fortran(i32, i8*, ...)

declare void @_lfortran_printf(i8*, ...)

declare void @_lpython_free_argv()
