; ModuleID = 'LFortran'
source_filename = "LFortran"
target datalayout = "..."

%string_descriptor = type <{ i8*, i64 }>
%complex_4 = type <{ float, float }>

@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info = private unnamed_addr constant [8 x i8] c"{R4,R4}\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
@serialization_info.1 = private unnamed_addr constant [8 x i8] c"{R4,R4}\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
@serialization_info.2 = private unnamed_addr constant [8 x i8] c"{R4,R4}\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:
  %stringFormat_desc4 = alloca %string_descriptor, align 8
  %stringFormat_desc1 = alloca %string_descriptor, align 8
  %stringFormat_desc = alloca %string_descriptor, align 8
  %2 = call i8* @_lfortran_get_default_allocator()
  call void @_lpython_call_initial_functions(i32 %0, i8** %1)
  %x = alloca %complex_4, align 8
  store %complex_4 <{ float 3.000000e+00, float 4.000000e+00 }>, %complex_4* %x, align 1
  %3 = load %complex_4, %complex_4* %x, align 1
  %4 = extractvalue %complex_4 %3, 0
  %5 = extractvalue %complex_4 %3, 1
  %6 = fmul float %4, 4.000000e+00
  %7 = fmul float %5, 0.000000e+00
  %8 = fmul float %4, 0.000000e+00
  %9 = fmul float %5, 4.000000e+00
  %10 = fsub float %6, %7
  %11 = fadd float %8, %9
  %12 = insertvalue %complex_4 undef, float %10, 0
  %13 = insertvalue %complex_4 %12, float %11, 1
  store %complex_4 %13, %complex_4* %x, align 1
  %14 = alloca i64, align 8
  %15 = call i8* (i8*, i8*, i64, i8*, i64*, i32, i32, i32, i32, i32, ...) @_lcompilers_string_format_fortran(i8* %2, i8* null, i64 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @serialization_info, i32 0, i32 0), i64* %14, i32 0, i32 0, i32 0, i32 0, i32 0, %complex_4* %x)
  %16 = load i64, i64* %14, align 8
  %17 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
  store i8* %15, i8** %17, align 8
  %18 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
  store i64 %16, i64* %18, align 8
  %19 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
  %20 = load i8*, i8** %19, align 8
  %21 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
  %22 = load i64, i64* %21, align 8
  %23 = trunc i64 %22 to i32
  call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %20, i32 %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0), i32 1)
  %24 = icmp eq i8* %15, null
  br i1 %24, label %free_done, label %free_nonnull

free_nonnull:                                     ; preds = %.entry
  call void @_lfortran_free_alloc(i8* %2, i8* %15)
  br label %free_done

free_done:                                        ; preds = %free_nonnull, %.entry
  %25 = load %complex_4, %complex_4* %x, align 1
  %26 = extractvalue %complex_4 %25, 0
  %27 = extractvalue %complex_4 %25, 1
  %28 = fmul float 2.000000e+00, %26
  %29 = fmul float 0.000000e+00, %27
  %30 = fmul float 2.000000e+00, %27
  %31 = fmul float 0.000000e+00, %26
  %32 = fsub float %28, %29
  %33 = fadd float %30, %31
  %34 = insertvalue %complex_4 undef, float %32, 0
  %35 = insertvalue %complex_4 %34, float %33, 1
  store %complex_4 %35, %complex_4* %x, align 1
  %36 = alloca i64, align 8
  %37 = call i8* (i8*, i8*, i64, i8*, i64*, i32, i32, i32, i32, i32, ...) @_lcompilers_string_format_fortran(i8* %2, i8* null, i64 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @serialization_info.1, i32 0, i32 0), i64* %36, i32 0, i32 0, i32 0, i32 0, i32 0, %complex_4* %x)
  %38 = load i64, i64* %36, align 8
  %39 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
  store i8* %37, i8** %39, align 8
  %40 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 1
  store i64 %38, i64* %40, align 8
  %41 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 0
  %42 = load i8*, i8** %41, align 8
  %43 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc1, i32 0, i32 1
  %44 = load i64, i64* %43, align 8
  %45 = trunc i64 %44 to i32
  call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @3, i32 0, i32 0), i8* %42, i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @2, i32 0, i32 0), i32 1)
  %46 = icmp eq i8* %37, null
  br i1 %46, label %free_done3, label %free_nonnull2

free_nonnull2:                                    ; preds = %free_done
  call void @_lfortran_free_alloc(i8* %2, i8* %37)
  br label %free_done3

free_done3:                                       ; preds = %free_nonnull2, %free_done
  %47 = load %complex_4, %complex_4* %x, align 1
  %48 = extractvalue %complex_4 %47, 0
  %49 = extractvalue %complex_4 %47, 1
  %50 = fmul float %48, 0.000000e+00
  %51 = fmul float %49, 3.000000e+00
  %52 = fmul float %48, 3.000000e+00
  %53 = fmul float %49, 0.000000e+00
  %54 = fsub float %50, %51
  %55 = fadd float %52, %53
  %56 = insertvalue %complex_4 undef, float %54, 0
  %57 = insertvalue %complex_4 %56, float %55, 1
  store %complex_4 %57, %complex_4* %x, align 1
  %58 = alloca i64, align 8
  %59 = call i8* (i8*, i8*, i64, i8*, i64*, i32, i32, i32, i32, i32, ...) @_lcompilers_string_format_fortran(i8* %2, i8* null, i64 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @serialization_info.2, i32 0, i32 0), i64* %58, i32 0, i32 0, i32 0, i32 0, i32 0, %complex_4* %x)
  %60 = load i64, i64* %58, align 8
  %61 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 0
  store i8* %59, i8** %61, align 8
  %62 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 1
  store i64 %60, i64* %62, align 8
  %63 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 0
  %64 = load i8*, i8** %63, align 8
  %65 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 1
  %66 = load i64, i64* %65, align 8
  %67 = trunc i64 %66 to i32
  call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @5, i32 0, i32 0), i8* %64, i32 %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @4, i32 0, i32 0), i32 1)
  %68 = icmp eq i8* %59, null
  br i1 %68, label %free_done6, label %free_nonnull5

free_nonnull5:                                    ; preds = %free_done3
  call void @_lfortran_free_alloc(i8* %2, i8* %59)
  br label %free_done6

free_done6:                                       ; preds = %free_nonnull5, %free_done3
  br label %return

return:                                           ; preds = %free_done6
  br label %FINALIZE_SYMTABLE_complex2

FINALIZE_SYMTABLE_complex2:                       ; preds = %return
  call void @_lfortran_internal_alloc_finalize()
  ret i32 0
}

declare void @_lpython_call_initial_functions(i32, i8**)

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

declare i8* @_lfortran_get_default_allocator()

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

declare void @_lfortran_free_alloc(i8*, i8*)

declare void @_lfortran_internal_alloc_finalize()
