2024-06-13 09:40:41 +08:00
|
|
|
; ModuleID = 'main'
|
|
|
|
|
source_filename = "main"
|
|
|
|
|
|
|
|
|
|
%"github.com/goplus/llgo/internal/runtime.String" = type { ptr, i64 }
|
|
|
|
|
%"github.com/goplus/llgo/internal/runtime.eface" = type { ptr, ptr }
|
|
|
|
|
%main.T = type { i64, i64, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.eface" }
|
|
|
|
|
%"github.com/goplus/llgo/internal/runtime.Slice" = type { ptr, i64, i64 }
|
|
|
|
|
%main.N = type {}
|
|
|
|
|
%"github.com/goplus/llgo/internal/abi.StructField" = type { %"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1 }
|
|
|
|
|
|
2024-06-14 09:57:23 +08:00
|
|
|
@"main.init$guard" = global i1 false, align 1
|
2024-06-13 09:40:41 +08:00
|
|
|
@0 = private unnamed_addr constant [6 x i8] c"failed", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@_llgo_string = linkonce global ptr null, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
@1 = private unnamed_addr constant [5 x i8] c"hello", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@_llgo_int = linkonce global ptr null, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
@2 = private unnamed_addr constant [2 x i8] c"ok", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw" = linkonce global ptr null, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
@3 = private unnamed_addr constant [4 x i8] c"main", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@_llgo_main.T = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@4 = private unnamed_addr constant [6 x i8] c"main.T", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@5 = private unnamed_addr constant [1 x i8] c"X", align 1
|
|
|
|
|
@6 = private unnamed_addr constant [1 x i8] c"Y", align 1
|
|
|
|
|
@7 = private unnamed_addr constant [1 x i8] c"Z", align 1
|
|
|
|
|
@8 = private unnamed_addr constant [1 x i8] c"V", align 1
|
|
|
|
|
@9 = private unnamed_addr constant [1 x i8] c"T", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@_llgo_main.N = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@10 = private unnamed_addr constant [6 x i8] c"main.N", align 1
|
|
|
|
|
@11 = private unnamed_addr constant [1 x i8] c"N", align 1
|
2024-07-07 20:30:02 +08:00
|
|
|
@"map[_llgo_int]_llgo_string" = linkonce global ptr null, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
@12 = private unnamed_addr constant [7 x i8] c"topbits", align 1
|
|
|
|
|
@13 = private unnamed_addr constant [4 x i8] c"keys", align 1
|
|
|
|
|
@14 = private unnamed_addr constant [5 x i8] c"elems", align 1
|
|
|
|
|
@15 = private unnamed_addr constant [8 x i8] c"overflow", align 1
|
2024-06-14 09:57:23 +08:00
|
|
|
@__llgo_argc = global i32 0, align 4
|
|
|
|
|
@__llgo_argv = global ptr null, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
define void @main.assert(i1 %0) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
|
|
|
%1 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 0
|
|
|
|
|
store ptr @0, ptr %2, align 8
|
|
|
|
|
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %1, i32 0, i32 1
|
|
|
|
|
store i64 6, ptr %3, align 4
|
|
|
|
|
%4 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %1, align 8
|
|
|
|
|
%5 = load ptr, ptr @_llgo_string, align 8
|
|
|
|
|
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %4, ptr %6, align 8
|
|
|
|
|
%7 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 0
|
|
|
|
|
store ptr %5, ptr %8, align 8
|
|
|
|
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 1
|
|
|
|
|
store ptr %6, ptr %9, align 8
|
|
|
|
|
%10 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface" %10)
|
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_0
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @main.init() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = load i1, ptr @"main.init$guard", align 1
|
|
|
|
|
br i1 %0, label %_llgo_2, label %_llgo_1
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
|
|
|
store i1 true, ptr @"main.init$guard", align 1
|
|
|
|
|
call void @"main.init$after"()
|
|
|
|
|
call void @"main.init#1"()
|
|
|
|
|
call void @"main.init#2"()
|
|
|
|
|
call void @"main.init#3"()
|
|
|
|
|
call void @"main.init#4"()
|
|
|
|
|
call void @"main.init#5"()
|
2024-07-07 20:30:02 +08:00
|
|
|
call void @"main.init#6"()
|
|
|
|
|
call void @"main.init#7"()
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#1"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
|
|
|
|
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 8)
|
|
|
|
|
%2 = getelementptr inbounds { ptr }, ptr %1, i32 0, i32 0
|
|
|
|
|
store ptr %0, ptr %2, align 8
|
|
|
|
|
%3 = alloca { ptr, ptr }, align 8
|
|
|
|
|
%4 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
|
|
|
|
|
store ptr @"main.init#1$2", ptr %4, align 8
|
|
|
|
|
%5 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
|
|
|
|
|
store ptr %1, ptr %5, align 8
|
|
|
|
|
%6 = load { ptr, ptr }, ptr %3, align 8
|
2024-07-07 20:30:02 +08:00
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
call void @main.assert(i1 true)
|
2024-07-19 09:04:12 +08:00
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
call void @main.assert(i1 true)
|
2024-06-13 09:40:41 +08:00
|
|
|
%7 = extractvalue { ptr, ptr } %6, 0
|
2024-07-19 09:04:12 +08:00
|
|
|
%8 = icmp ne ptr %7, null
|
|
|
|
|
call void @main.assert(i1 %8)
|
|
|
|
|
%9 = extractvalue { ptr, ptr } %6, 0
|
|
|
|
|
%10 = icmp ne ptr null, %9
|
|
|
|
|
call void @main.assert(i1 %10)
|
2024-07-07 20:30:02 +08:00
|
|
|
call void @main.assert(i1 true)
|
2024-06-13 09:40:41 +08:00
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-17 19:30:59 +08:00
|
|
|
define i64 @"main.init#1$1"(i64 %0, i64 %1) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%2 = add i64 %0, %1
|
|
|
|
|
ret i64 %2
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#1$2"(ptr %0) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%1 = load { ptr }, ptr %0, align 8
|
|
|
|
|
%2 = extractvalue { ptr } %1, 0
|
|
|
|
|
%3 = load i64, ptr %2, align 4
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64 %3)
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8 10)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-13 09:40:41 +08:00
|
|
|
define void @"main.init#2"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
%0 = alloca [3 x i64], align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @llvm.memset(ptr %0, i8 0, i64 24, i1 false)
|
|
|
|
|
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
|
|
|
|
%2 = getelementptr inbounds i64, ptr %0, i64 1
|
|
|
|
|
%3 = getelementptr inbounds i64, ptr %0, i64 2
|
|
|
|
|
store i64 1, ptr %1, align 4
|
|
|
|
|
store i64 2, ptr %2, align 4
|
|
|
|
|
store i64 3, ptr %3, align 4
|
|
|
|
|
%4 = alloca [3 x i64], align 8
|
|
|
|
|
call void @llvm.memset(ptr %4, i8 0, i64 24, i1 false)
|
|
|
|
|
%5 = getelementptr inbounds i64, ptr %4, i64 0
|
|
|
|
|
%6 = getelementptr inbounds i64, ptr %4, i64 1
|
|
|
|
|
%7 = getelementptr inbounds i64, ptr %4, i64 2
|
|
|
|
|
store i64 1, ptr %5, align 4
|
|
|
|
|
store i64 2, ptr %6, align 4
|
|
|
|
|
store i64 3, ptr %7, align 4
|
|
|
|
|
%8 = load [3 x i64], ptr %0, align 4
|
|
|
|
|
%9 = load [3 x i64], ptr %4, align 4
|
|
|
|
|
%10 = extractvalue [3 x i64] %8, 0
|
|
|
|
|
%11 = extractvalue [3 x i64] %9, 0
|
|
|
|
|
%12 = icmp eq i64 %10, %11
|
|
|
|
|
%13 = and i1 true, %12
|
|
|
|
|
%14 = extractvalue [3 x i64] %8, 1
|
|
|
|
|
%15 = extractvalue [3 x i64] %9, 1
|
|
|
|
|
%16 = icmp eq i64 %14, %15
|
|
|
|
|
%17 = and i1 %13, %16
|
|
|
|
|
%18 = extractvalue [3 x i64] %8, 2
|
|
|
|
|
%19 = extractvalue [3 x i64] %9, 2
|
|
|
|
|
%20 = icmp eq i64 %18, %19
|
|
|
|
|
%21 = and i1 %17, %20
|
|
|
|
|
call void @main.assert(i1 %21)
|
|
|
|
|
%22 = getelementptr inbounds i64, ptr %4, i64 1
|
|
|
|
|
store i64 1, ptr %22, align 4
|
|
|
|
|
%23 = load [3 x i64], ptr %0, align 4
|
|
|
|
|
%24 = load [3 x i64], ptr %4, align 4
|
|
|
|
|
%25 = extractvalue [3 x i64] %23, 0
|
|
|
|
|
%26 = extractvalue [3 x i64] %24, 0
|
|
|
|
|
%27 = icmp eq i64 %25, %26
|
|
|
|
|
%28 = and i1 true, %27
|
|
|
|
|
%29 = extractvalue [3 x i64] %23, 1
|
|
|
|
|
%30 = extractvalue [3 x i64] %24, 1
|
|
|
|
|
%31 = icmp eq i64 %29, %30
|
|
|
|
|
%32 = and i1 %28, %31
|
|
|
|
|
%33 = extractvalue [3 x i64] %23, 2
|
|
|
|
|
%34 = extractvalue [3 x i64] %24, 2
|
|
|
|
|
%35 = icmp eq i64 %33, %34
|
|
|
|
|
%36 = and i1 %32, %35
|
|
|
|
|
%37 = xor i1 %36, true
|
|
|
|
|
call void @main.assert(i1 %37)
|
2024-06-13 09:40:41 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#3"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = alloca %main.T, align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @llvm.memset(ptr %0, i8 0, i64 48, i1 false)
|
|
|
|
|
%1 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 0
|
|
|
|
|
%2 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 1
|
|
|
|
|
%3 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 2
|
|
|
|
|
%4 = getelementptr inbounds %main.T, ptr %0, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %1, align 4
|
|
|
|
|
store i64 20, ptr %2, align 4
|
|
|
|
|
%5 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %6, align 8
|
|
|
|
|
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %5, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %7, align 4
|
|
|
|
|
%8 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %5, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %8, ptr %3, align 8
|
|
|
|
|
%9 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%10 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%11 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 0
|
|
|
|
|
store ptr %9, ptr %11, align 8
|
|
|
|
|
%12 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 1 to ptr), ptr %12, align 8
|
|
|
|
|
%13 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %10, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %13, ptr %4, align 8
|
|
|
|
|
%14 = alloca %main.T, align 8
|
|
|
|
|
call void @llvm.memset(ptr %14, i8 0, i64 48, i1 false)
|
|
|
|
|
%15 = getelementptr inbounds %main.T, ptr %14, i32 0, i32 0
|
|
|
|
|
%16 = getelementptr inbounds %main.T, ptr %14, i32 0, i32 1
|
|
|
|
|
%17 = getelementptr inbounds %main.T, ptr %14, i32 0, i32 2
|
|
|
|
|
%18 = getelementptr inbounds %main.T, ptr %14, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %15, align 4
|
|
|
|
|
store i64 20, ptr %16, align 4
|
|
|
|
|
%19 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %20, align 8
|
|
|
|
|
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %21, align 4
|
|
|
|
|
%22 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %19, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %22, ptr %17, align 8
|
|
|
|
|
%23 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%24 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%25 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i32 0, i32 0
|
|
|
|
|
store ptr %23, ptr %25, align 8
|
|
|
|
|
%26 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 1 to ptr), ptr %26, align 8
|
|
|
|
|
%27 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %24, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %27, ptr %18, align 8
|
|
|
|
|
%28 = alloca %main.T, align 8
|
|
|
|
|
call void @llvm.memset(ptr %28, i8 0, i64 48, i1 false)
|
|
|
|
|
%29 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 0
|
|
|
|
|
%30 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 1
|
|
|
|
|
%31 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 2
|
|
|
|
|
%32 = getelementptr inbounds %main.T, ptr %28, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %29, align 4
|
|
|
|
|
store i64 20, ptr %30, align 4
|
|
|
|
|
%33 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %33, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %34, align 8
|
|
|
|
|
%35 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %33, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %35, align 4
|
|
|
|
|
%36 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %33, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %36, ptr %31, align 8
|
|
|
|
|
%37 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 0
|
|
|
|
|
store ptr @2, ptr %38, align 8
|
|
|
|
|
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 1
|
|
|
|
|
store i64 2, ptr %39, align 4
|
|
|
|
|
%40 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %37, align 8
|
|
|
|
|
%41 = load ptr, ptr @_llgo_string, align 8
|
|
|
|
|
%42 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %40, ptr %42, align 8
|
|
|
|
|
%43 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, i32 0, i32 0
|
|
|
|
|
store ptr %41, ptr %44, align 8
|
|
|
|
|
%45 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, i32 0, i32 1
|
|
|
|
|
store ptr %42, ptr %45, align 8
|
|
|
|
|
%46 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %43, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %46, ptr %32, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
call void @main.assert(i1 true)
|
2024-09-14 15:46:34 +08:00
|
|
|
%47 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.String" zeroinitializer)
|
|
|
|
|
%48 = and i1 true, %47
|
|
|
|
|
%49 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer, %"github.com/goplus/llgo/internal/runtime.eface" zeroinitializer)
|
|
|
|
|
%50 = and i1 %48, %49
|
|
|
|
|
call void @main.assert(i1 %50)
|
|
|
|
|
%51 = load %main.T, ptr %0, align 8
|
|
|
|
|
%52 = load %main.T, ptr %14, align 8
|
|
|
|
|
%53 = extractvalue %main.T %51, 0
|
|
|
|
|
%54 = extractvalue %main.T %52, 0
|
|
|
|
|
%55 = icmp eq i64 %53, %54
|
|
|
|
|
%56 = and i1 true, %55
|
|
|
|
|
%57 = extractvalue %main.T %51, 1
|
|
|
|
|
%58 = extractvalue %main.T %52, 1
|
|
|
|
|
%59 = icmp eq i64 %57, %58
|
|
|
|
|
%60 = and i1 %56, %59
|
|
|
|
|
%61 = extractvalue %main.T %51, 2
|
|
|
|
|
%62 = extractvalue %main.T %52, 2
|
|
|
|
|
%63 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %61, %"github.com/goplus/llgo/internal/runtime.String" %62)
|
|
|
|
|
%64 = and i1 %60, %63
|
|
|
|
|
%65 = extractvalue %main.T %51, 3
|
|
|
|
|
%66 = extractvalue %main.T %52, 3
|
|
|
|
|
%67 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %65, %"github.com/goplus/llgo/internal/runtime.eface" %66)
|
|
|
|
|
%68 = and i1 %64, %67
|
|
|
|
|
call void @main.assert(i1 %68)
|
|
|
|
|
%69 = load %main.T, ptr %0, align 8
|
|
|
|
|
%70 = load %main.T, ptr %28, align 8
|
|
|
|
|
%71 = extractvalue %main.T %69, 0
|
|
|
|
|
%72 = extractvalue %main.T %70, 0
|
|
|
|
|
%73 = icmp eq i64 %71, %72
|
|
|
|
|
%74 = and i1 true, %73
|
|
|
|
|
%75 = extractvalue %main.T %69, 1
|
|
|
|
|
%76 = extractvalue %main.T %70, 1
|
|
|
|
|
%77 = icmp eq i64 %75, %76
|
|
|
|
|
%78 = and i1 %74, %77
|
|
|
|
|
%79 = extractvalue %main.T %69, 2
|
|
|
|
|
%80 = extractvalue %main.T %70, 2
|
|
|
|
|
%81 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %79, %"github.com/goplus/llgo/internal/runtime.String" %80)
|
|
|
|
|
%82 = and i1 %78, %81
|
|
|
|
|
%83 = extractvalue %main.T %69, 3
|
|
|
|
|
%84 = extractvalue %main.T %70, 3
|
|
|
|
|
%85 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %83, %"github.com/goplus/llgo/internal/runtime.eface" %84)
|
|
|
|
|
%86 = and i1 %82, %85
|
|
|
|
|
%87 = xor i1 %86, true
|
|
|
|
|
call void @main.assert(i1 %87)
|
|
|
|
|
%88 = load %main.T, ptr %14, align 8
|
|
|
|
|
%89 = load %main.T, ptr %28, align 8
|
|
|
|
|
%90 = extractvalue %main.T %88, 0
|
|
|
|
|
%91 = extractvalue %main.T %89, 0
|
|
|
|
|
%92 = icmp eq i64 %90, %91
|
|
|
|
|
%93 = and i1 true, %92
|
|
|
|
|
%94 = extractvalue %main.T %88, 1
|
|
|
|
|
%95 = extractvalue %main.T %89, 1
|
|
|
|
|
%96 = icmp eq i64 %94, %95
|
|
|
|
|
%97 = and i1 %93, %96
|
|
|
|
|
%98 = extractvalue %main.T %88, 2
|
|
|
|
|
%99 = extractvalue %main.T %89, 2
|
|
|
|
|
%100 = call i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String" %98, %"github.com/goplus/llgo/internal/runtime.String" %99)
|
|
|
|
|
%101 = and i1 %97, %100
|
|
|
|
|
%102 = extractvalue %main.T %88, 3
|
|
|
|
|
%103 = extractvalue %main.T %89, 3
|
|
|
|
|
%104 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %102, %"github.com/goplus/llgo/internal/runtime.eface" %103)
|
|
|
|
|
%105 = and i1 %101, %104
|
|
|
|
|
%106 = xor i1 %105, true
|
|
|
|
|
call void @main.assert(i1 %106)
|
2024-06-13 09:40:41 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#4"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 24)
|
|
|
|
|
%1 = getelementptr inbounds i64, ptr %0, i64 0
|
|
|
|
|
store i64 1, ptr %1, align 4
|
|
|
|
|
%2 = getelementptr inbounds i64, ptr %0, i64 1
|
|
|
|
|
store i64 2, ptr %2, align 4
|
|
|
|
|
%3 = getelementptr inbounds i64, ptr %0, i64 2
|
|
|
|
|
store i64 3, ptr %3, align 4
|
|
|
|
|
%4 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%5 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 0
|
|
|
|
|
store ptr %0, ptr %5, align 8
|
|
|
|
|
%6 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 1
|
|
|
|
|
store i64 3, ptr %6, align 4
|
|
|
|
|
%7 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, i32 0, i32 2
|
|
|
|
|
store i64 3, ptr %7, align 4
|
|
|
|
|
%8 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %4, align 8
|
|
|
|
|
%9 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
|
|
|
|
%10 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %9, i64 8, i64 2, i64 0, i64 2, i64 2)
|
|
|
|
|
%11 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 16)
|
|
|
|
|
%12 = call %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr %11, i64 8, i64 2, i64 0, i64 0, i64 2)
|
|
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
%13 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %8, 0
|
|
|
|
|
%14 = icmp ne ptr %13, null
|
|
|
|
|
call void @main.assert(i1 %14)
|
|
|
|
|
%15 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %10, 0
|
|
|
|
|
%16 = icmp ne ptr %15, null
|
|
|
|
|
call void @main.assert(i1 %16)
|
|
|
|
|
%17 = extractvalue %"github.com/goplus/llgo/internal/runtime.Slice" %12, 0
|
|
|
|
|
%18 = icmp ne ptr %17, null
|
|
|
|
|
call void @main.assert(i1 %18)
|
|
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#5"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = load ptr, ptr @_llgo_int, align 8
|
2024-06-23 06:51:09 +08:00
|
|
|
%1 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%2 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %1, i32 0, i32 0
|
|
|
|
|
store ptr %0, ptr %2, align 8
|
|
|
|
|
%3 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %1, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 100 to ptr), ptr %3, align 8
|
|
|
|
|
%4 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %1, align 8
|
|
|
|
|
%5 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
|
|
|
|
%6 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
store {} zeroinitializer, ptr %6, align 1
|
|
|
|
|
%7 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%8 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 0
|
|
|
|
|
store ptr %5, ptr %8, align 8
|
|
|
|
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, i32 0, i32 1
|
|
|
|
|
store ptr %6, ptr %9, align 8
|
|
|
|
|
%10 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %7, align 8
|
|
|
|
|
%11 = alloca %main.T, align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
call void @llvm.memset(ptr %11, i8 0, i64 48, i1 false)
|
|
|
|
|
%12 = getelementptr inbounds %main.T, ptr %11, i32 0, i32 0
|
|
|
|
|
%13 = getelementptr inbounds %main.T, ptr %11, i32 0, i32 1
|
|
|
|
|
%14 = getelementptr inbounds %main.T, ptr %11, i32 0, i32 2
|
|
|
|
|
%15 = getelementptr inbounds %main.T, ptr %11, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %12, align 4
|
|
|
|
|
store i64 20, ptr %13, align 4
|
|
|
|
|
%16 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%17 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %17, align 8
|
|
|
|
|
%18 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %16, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %18, align 4
|
|
|
|
|
%19 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %16, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %19, ptr %14, align 8
|
|
|
|
|
%20 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%21 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%22 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, i32 0, i32 0
|
|
|
|
|
store ptr %20, ptr %22, align 8
|
|
|
|
|
%23 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 1 to ptr), ptr %23, align 8
|
|
|
|
|
%24 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %21, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %24, ptr %15, align 8
|
|
|
|
|
%25 = load %main.T, ptr %11, align 8
|
|
|
|
|
%26 = load ptr, ptr @_llgo_main.T, align 8
|
|
|
|
|
%27 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
|
|
|
|
store %main.T %25, ptr %27, align 8
|
|
|
|
|
%28 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 0
|
|
|
|
|
store ptr %26, ptr %29, align 8
|
|
|
|
|
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, i32 0, i32 1
|
2024-06-23 06:51:09 +08:00
|
|
|
store ptr %27, ptr %30, align 8
|
2024-09-14 15:46:34 +08:00
|
|
|
%31 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %28, align 8
|
|
|
|
|
%32 = alloca %main.T, align 8
|
|
|
|
|
call void @llvm.memset(ptr %32, i8 0, i64 48, i1 false)
|
|
|
|
|
%33 = getelementptr inbounds %main.T, ptr %32, i32 0, i32 0
|
|
|
|
|
%34 = getelementptr inbounds %main.T, ptr %32, i32 0, i32 1
|
|
|
|
|
%35 = getelementptr inbounds %main.T, ptr %32, i32 0, i32 2
|
|
|
|
|
%36 = getelementptr inbounds %main.T, ptr %32, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %33, align 4
|
|
|
|
|
store i64 20, ptr %34, align 4
|
|
|
|
|
%37 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%38 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %38, align 8
|
|
|
|
|
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %37, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %39, align 4
|
|
|
|
|
%40 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %37, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %40, ptr %35, align 8
|
|
|
|
|
%41 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%42 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %42, i32 0, i32 0
|
|
|
|
|
store ptr %41, ptr %43, align 8
|
|
|
|
|
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %42, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 1 to ptr), ptr %44, align 8
|
|
|
|
|
%45 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %42, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %45, ptr %36, align 8
|
|
|
|
|
%46 = alloca %main.T, align 8
|
|
|
|
|
call void @llvm.memset(ptr %46, i8 0, i64 48, i1 false)
|
|
|
|
|
%47 = getelementptr inbounds %main.T, ptr %46, i32 0, i32 0
|
|
|
|
|
%48 = getelementptr inbounds %main.T, ptr %46, i32 0, i32 1
|
|
|
|
|
%49 = getelementptr inbounds %main.T, ptr %46, i32 0, i32 2
|
|
|
|
|
%50 = getelementptr inbounds %main.T, ptr %46, i32 0, i32 3
|
|
|
|
|
store i64 10, ptr %47, align 4
|
|
|
|
|
store i64 20, ptr %48, align 4
|
|
|
|
|
%51 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%52 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %51, i32 0, i32 0
|
|
|
|
|
store ptr @1, ptr %52, align 8
|
|
|
|
|
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %51, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %53, align 4
|
|
|
|
|
%54 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %51, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %54, ptr %49, align 8
|
|
|
|
|
%55 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%56 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 0
|
|
|
|
|
store ptr @2, ptr %56, align 8
|
|
|
|
|
%57 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %55, i32 0, i32 1
|
|
|
|
|
store i64 2, ptr %57, align 4
|
|
|
|
|
%58 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %55, align 8
|
|
|
|
|
%59 = load ptr, ptr @_llgo_string, align 8
|
|
|
|
|
%60 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 16)
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.String" %58, ptr %60, align 8
|
|
|
|
|
%61 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%62 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %61, i32 0, i32 0
|
|
|
|
|
store ptr %59, ptr %62, align 8
|
|
|
|
|
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %61, i32 0, i32 1
|
|
|
|
|
store ptr %60, ptr %63, align 8
|
|
|
|
|
%64 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %61, align 8
|
|
|
|
|
store %"github.com/goplus/llgo/internal/runtime.eface" %64, ptr %50, align 8
|
|
|
|
|
%65 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%66 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%67 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %66, i32 0, i32 0
|
|
|
|
|
store ptr %65, ptr %67, align 8
|
|
|
|
|
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %66, i32 0, i32 1
|
|
|
|
|
store ptr inttoptr (i64 100 to ptr), ptr %68, align 8
|
|
|
|
|
%69 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %66, align 8
|
|
|
|
|
%70 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %4, %"github.com/goplus/llgo/internal/runtime.eface" %69)
|
|
|
|
|
call void @main.assert(i1 %70)
|
|
|
|
|
%71 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
|
|
|
|
%72 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
store {} zeroinitializer, ptr %72, align 1
|
|
|
|
|
%73 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, i32 0, i32 0
|
|
|
|
|
store ptr %71, ptr %74, align 8
|
|
|
|
|
%75 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, i32 0, i32 1
|
|
|
|
|
store ptr %72, ptr %75, align 8
|
|
|
|
|
%76 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %73, align 8
|
|
|
|
|
%77 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %10, %"github.com/goplus/llgo/internal/runtime.eface" %76)
|
|
|
|
|
call void @main.assert(i1 %77)
|
|
|
|
|
%78 = load ptr, ptr @_llgo_main.N, align 8
|
|
|
|
|
%79 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
store %main.N zeroinitializer, ptr %79, align 1
|
|
|
|
|
%80 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%81 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, i32 0, i32 0
|
|
|
|
|
store ptr %78, ptr %81, align 8
|
|
|
|
|
%82 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, i32 0, i32 1
|
|
|
|
|
store ptr %79, ptr %82, align 8
|
|
|
|
|
%83 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %80, align 8
|
|
|
|
|
%84 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %10, %"github.com/goplus/llgo/internal/runtime.eface" %83)
|
|
|
|
|
%85 = xor i1 %84, true
|
|
|
|
|
call void @main.assert(i1 %85)
|
|
|
|
|
%86 = load %main.T, ptr %32, align 8
|
|
|
|
|
%87 = load ptr, ptr @_llgo_main.T, align 8
|
|
|
|
|
%88 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
|
|
|
|
store %main.T %86, ptr %88, align 8
|
|
|
|
|
%89 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%90 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, i32 0, i32 0
|
|
|
|
|
store ptr %87, ptr %90, align 8
|
|
|
|
|
%91 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, i32 0, i32 1
|
|
|
|
|
store ptr %88, ptr %91, align 8
|
|
|
|
|
%92 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %89, align 8
|
|
|
|
|
%93 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %31, %"github.com/goplus/llgo/internal/runtime.eface" %92)
|
|
|
|
|
call void @main.assert(i1 %93)
|
|
|
|
|
%94 = load %main.T, ptr %46, align 8
|
|
|
|
|
%95 = load ptr, ptr @_llgo_main.T, align 8
|
|
|
|
|
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 48)
|
|
|
|
|
store %main.T %94, ptr %96, align 8
|
|
|
|
|
%97 = alloca %"github.com/goplus/llgo/internal/runtime.eface", align 8
|
|
|
|
|
%98 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, i32 0, i32 0
|
|
|
|
|
store ptr %95, ptr %98, align 8
|
|
|
|
|
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, i32 0, i32 1
|
|
|
|
|
store ptr %96, ptr %99, align 8
|
|
|
|
|
%100 = load %"github.com/goplus/llgo/internal/runtime.eface", ptr %97, align 8
|
|
|
|
|
%101 = call i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface" %31, %"github.com/goplus/llgo/internal/runtime.eface" %100)
|
|
|
|
|
%102 = xor i1 %101, true
|
|
|
|
|
call void @main.assert(i1 %102)
|
2024-06-13 09:40:41 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-07 20:30:02 +08:00
|
|
|
define void @"main.init#6"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 0)
|
|
|
|
|
%1 = call ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64 8, i64 0)
|
|
|
|
|
%2 = icmp eq ptr %0, %0
|
|
|
|
|
call void @main.assert(i1 %2)
|
|
|
|
|
%3 = icmp ne ptr %0, %1
|
|
|
|
|
call void @main.assert(i1 %3)
|
|
|
|
|
%4 = icmp ne ptr %0, null
|
|
|
|
|
call void @main.assert(i1 %4)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init#7"() {
|
|
|
|
|
_llgo_0:
|
2024-08-06 22:24:21 +08:00
|
|
|
%0 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%1 = load ptr, ptr @_llgo_string, align 8
|
|
|
|
|
%2 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8
|
|
|
|
|
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr %2, i64 0)
|
|
|
|
|
%4 = icmp ne ptr %3, null
|
|
|
|
|
call void @main.assert(i1 %4)
|
2024-07-07 20:30:02 +08:00
|
|
|
call void @main.assert(i1 true)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-13 09:40:41 +08:00
|
|
|
define i32 @main(i32 %0, ptr %1) {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
store i32 %0, ptr @__llgo_argc, align 4
|
|
|
|
|
store ptr %1, ptr @__llgo_argv, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
|
|
|
|
call void @main.init()
|
|
|
|
|
ret i32 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @main.test() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define void @"main.init$after"() {
|
|
|
|
|
_llgo_0:
|
|
|
|
|
%0 = load ptr, ptr @_llgo_string, align 8
|
|
|
|
|
%1 = icmp eq ptr %0, null
|
|
|
|
|
br i1 %1, label %_llgo_1, label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_1: ; preds = %_llgo_0
|
|
|
|
|
%2 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
|
|
|
store ptr %2, ptr @_llgo_string, align 8
|
|
|
|
|
br label %_llgo_2
|
|
|
|
|
|
|
|
|
|
_llgo_2: ; preds = %_llgo_1, %_llgo_0
|
|
|
|
|
%3 = load ptr, ptr @_llgo_int, align 8
|
|
|
|
|
%4 = icmp eq ptr %3, null
|
|
|
|
|
br i1 %4, label %_llgo_3, label %_llgo_4
|
|
|
|
|
|
|
|
|
|
_llgo_3: ; preds = %_llgo_2
|
2024-07-04 08:23:57 +08:00
|
|
|
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
2024-06-13 09:40:41 +08:00
|
|
|
store ptr %5, ptr @_llgo_int, align 8
|
|
|
|
|
br label %_llgo_4
|
|
|
|
|
|
|
|
|
|
_llgo_4: ; preds = %_llgo_3, %_llgo_2
|
2024-07-04 08:23:57 +08:00
|
|
|
%6 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
|
|
|
|
%7 = icmp eq ptr %6, null
|
|
|
|
|
br i1 %7, label %_llgo_5, label %_llgo_6
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
_llgo_5: ; preds = %_llgo_4
|
2024-07-04 08:23:57 +08:00
|
|
|
%8 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%9 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 0
|
|
|
|
|
store ptr @3, ptr %9, align 8
|
|
|
|
|
%10 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %8, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %10, align 4
|
|
|
|
|
%11 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %8, align 8
|
|
|
|
|
%12 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
%13 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%14 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %13, i32 0, i32 0
|
|
|
|
|
store ptr %12, ptr %14, align 8
|
|
|
|
|
%15 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %13, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %15, align 4
|
|
|
|
|
%16 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %13, i32 0, i32 2
|
|
|
|
|
store i64 0, ptr %16, align 4
|
|
|
|
|
%17 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %13, align 8
|
|
|
|
|
%18 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %11, i64 0, %"github.com/goplus/llgo/internal/runtime.Slice" %17)
|
|
|
|
|
store ptr %18, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_6
|
|
|
|
|
|
|
|
|
|
_llgo_6: ; preds = %_llgo_5, %_llgo_4
|
2024-09-05 21:27:40 +08:00
|
|
|
%19 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%20 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 0
|
|
|
|
|
store ptr @4, ptr %20, align 8
|
|
|
|
|
%21 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %19, i32 0, i32 1
|
|
|
|
|
store i64 6, ptr %21, align 4
|
|
|
|
|
%22 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %19, align 8
|
|
|
|
|
%23 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %22, i64 25, i64 48, i64 0, i64 0)
|
|
|
|
|
%24 = load ptr, ptr @_llgo_main.T, align 8
|
|
|
|
|
%25 = icmp eq ptr %24, null
|
|
|
|
|
br i1 %25, label %_llgo_7, label %_llgo_8
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
_llgo_7: ; preds = %_llgo_6
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr %23, ptr @_llgo_main.T, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_8
|
|
|
|
|
|
|
|
|
|
_llgo_8: ; preds = %_llgo_7, %_llgo_6
|
2024-09-05 21:27:40 +08:00
|
|
|
%26 = load ptr, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
|
|
|
|
%27 = icmp eq ptr %26, null
|
|
|
|
|
br i1 %27, label %_llgo_9, label %_llgo_10
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
_llgo_9: ; preds = %_llgo_8
|
2024-07-04 08:23:57 +08:00
|
|
|
%28 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%29 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @5, ptr %29, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%30 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %28, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 1, ptr %30, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%31 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %28, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%32 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%33 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %32, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %33, align 8
|
|
|
|
|
%34 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %32, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %34, align 4
|
|
|
|
|
%35 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %32, align 8
|
|
|
|
|
%36 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
|
|
|
|
%37 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %31, ptr %36, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %35, i1 false)
|
2024-07-04 08:23:57 +08:00
|
|
|
%38 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%39 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %38, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @6, ptr %39, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%40 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %38, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 1, ptr %40, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%41 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %38, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%42 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%43 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %42, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %43, align 8
|
|
|
|
|
%44 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %42, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %44, align 4
|
|
|
|
|
%45 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %42, align 8
|
|
|
|
|
%46 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
|
|
|
|
%47 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %41, ptr %46, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %45, i1 false)
|
2024-07-04 08:23:57 +08:00
|
|
|
%48 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%49 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @7, ptr %49, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%50 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %48, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 1, ptr %50, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%51 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %48, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%52 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%53 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %52, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %53, align 8
|
|
|
|
|
%54 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %52, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %54, align 4
|
|
|
|
|
%55 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %52, align 8
|
|
|
|
|
%56 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
|
|
|
%57 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %51, ptr %56, i64 16, %"github.com/goplus/llgo/internal/runtime.String" %55, i1 false)
|
2024-07-04 08:23:57 +08:00
|
|
|
%58 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%59 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %58, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @8, ptr %59, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%60 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %58, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 1, ptr %60, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%61 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %58, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%62 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%63 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %62, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %63, align 8
|
|
|
|
|
%64 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %62, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %64, align 4
|
|
|
|
|
%65 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %62, align 8
|
|
|
|
|
%66 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 0)
|
|
|
|
|
%67 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%68 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %67, i32 0, i32 0
|
|
|
|
|
store ptr %66, ptr %68, align 8
|
|
|
|
|
%69 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %67, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %69, align 4
|
|
|
|
|
%70 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %67, i32 0, i32 2
|
|
|
|
|
store i64 0, ptr %70, align 4
|
|
|
|
|
%71 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %67, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%72 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%73 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @3, ptr %73, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%74 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %72, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 4, ptr %74, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%75 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %72, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%76 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%77 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %77, align 8
|
|
|
|
|
%78 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %76, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %78, align 4
|
|
|
|
|
%79 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %76, align 8
|
|
|
|
|
%80 = call ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String" %75, %"github.com/goplus/llgo/internal/runtime.String" %79, %"github.com/goplus/llgo/internal/runtime.Slice" %71)
|
|
|
|
|
%81 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %61, ptr %80, i64 32, %"github.com/goplus/llgo/internal/runtime.String" %65, i1 false)
|
|
|
|
|
%82 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%83 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 0
|
|
|
|
|
store ptr @3, ptr %83, align 8
|
|
|
|
|
%84 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %82, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %84, align 4
|
|
|
|
|
%85 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %82, align 8
|
|
|
|
|
%86 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224)
|
|
|
|
|
%87 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %37, ptr %87, align 8
|
|
|
|
|
%88 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 1
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %47, ptr %88, align 8
|
|
|
|
|
%89 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 2
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %57, ptr %89, align 8
|
|
|
|
|
%90 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %86, i64 3
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %81, ptr %90, align 8
|
|
|
|
|
%91 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%92 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 0
|
|
|
|
|
store ptr %86, ptr %92, align 8
|
|
|
|
|
%93 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %93, align 4
|
|
|
|
|
%94 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, i32 0, i32 2
|
|
|
|
|
store i64 4, ptr %94, align 4
|
|
|
|
|
%95 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %91, align 8
|
|
|
|
|
%96 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %85, i64 48, %"github.com/goplus/llgo/internal/runtime.Slice" %95)
|
|
|
|
|
store ptr %96, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
2024-06-25 14:41:32 +08:00
|
|
|
br label %_llgo_10
|
|
|
|
|
|
|
|
|
|
_llgo_10: ; preds = %_llgo_9, %_llgo_8
|
2024-09-05 21:27:40 +08:00
|
|
|
%97 = load ptr, ptr @"_llgo_struct$5D_KhR3tDEp-wpx9caTiVZca43wS-XW6slE9Bsr8rsk", align 8
|
|
|
|
|
br i1 %25, label %_llgo_11, label %_llgo_12
|
2024-06-25 14:41:32 +08:00
|
|
|
|
|
|
|
|
_llgo_11: ; preds = %_llgo_10
|
2024-07-04 08:23:57 +08:00
|
|
|
%98 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%99 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %98, i32 0, i32 0
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr @3, ptr %99, align 8
|
2024-07-04 08:23:57 +08:00
|
|
|
%100 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %98, i32 0, i32 1
|
2024-09-05 21:27:40 +08:00
|
|
|
store i64 4, ptr %100, align 4
|
2024-07-04 08:23:57 +08:00
|
|
|
%101 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %98, align 8
|
2024-09-05 21:27:40 +08:00
|
|
|
%102 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%103 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 0
|
|
|
|
|
store ptr @9, ptr %103, align 8
|
|
|
|
|
%104 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %102, i32 0, i32 1
|
|
|
|
|
store i64 1, ptr %104, align 4
|
|
|
|
|
%105 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %102, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %23, %"github.com/goplus/llgo/internal/runtime.String" %101, %"github.com/goplus/llgo/internal/runtime.String" %105, ptr %97, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_12
|
|
|
|
|
|
|
|
|
|
_llgo_12: ; preds = %_llgo_11, %_llgo_10
|
2024-09-05 21:27:40 +08:00
|
|
|
%106 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%107 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 0
|
|
|
|
|
store ptr @10, ptr %107, align 8
|
|
|
|
|
%108 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %106, i32 0, i32 1
|
|
|
|
|
store i64 6, ptr %108, align 4
|
|
|
|
|
%109 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %106, align 8
|
|
|
|
|
%110 = call ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String" %109, i64 25, i64 0, i64 0, i64 0)
|
|
|
|
|
%111 = load ptr, ptr @_llgo_main.N, align 8
|
|
|
|
|
%112 = icmp eq ptr %111, null
|
|
|
|
|
br i1 %112, label %_llgo_13, label %_llgo_14
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
_llgo_13: ; preds = %_llgo_12
|
2024-09-05 21:27:40 +08:00
|
|
|
store ptr %110, ptr @_llgo_main.N, align 8
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_14
|
|
|
|
|
|
|
|
|
|
_llgo_14: ; preds = %_llgo_13, %_llgo_12
|
2024-09-05 21:27:40 +08:00
|
|
|
%113 = load ptr, ptr @"_llgo_struct$n1H8J_3prDN3firMwPxBLVTkE5hJ9Di-AqNvaC9jczw", align 8
|
|
|
|
|
br i1 %112, label %_llgo_15, label %_llgo_16
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
_llgo_15: ; preds = %_llgo_14
|
2024-09-05 21:27:40 +08:00
|
|
|
%114 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%115 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %114, i32 0, i32 0
|
|
|
|
|
store ptr @3, ptr %115, align 8
|
|
|
|
|
%116 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %114, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %116, align 4
|
|
|
|
|
%117 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %114, align 8
|
|
|
|
|
%118 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%119 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %118, i32 0, i32 0
|
|
|
|
|
store ptr @11, ptr %119, align 8
|
|
|
|
|
%120 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %118, i32 0, i32 1
|
|
|
|
|
store i64 1, ptr %120, align 4
|
|
|
|
|
%121 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %118, align 8
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr %110, %"github.com/goplus/llgo/internal/runtime.String" %117, %"github.com/goplus/llgo/internal/runtime.String" %121, ptr %113, { ptr, i64, i64 } zeroinitializer, { ptr, i64, i64 } zeroinitializer)
|
2024-06-13 09:40:41 +08:00
|
|
|
br label %_llgo_16
|
|
|
|
|
|
|
|
|
|
_llgo_16: ; preds = %_llgo_15, %_llgo_14
|
2024-09-05 21:27:40 +08:00
|
|
|
%122 = load ptr, ptr @"map[_llgo_int]_llgo_string", align 8
|
|
|
|
|
%123 = icmp eq ptr %122, null
|
|
|
|
|
br i1 %123, label %_llgo_17, label %_llgo_18
|
2024-07-07 20:30:02 +08:00
|
|
|
|
|
|
|
|
_llgo_17: ; preds = %_llgo_16
|
2024-09-05 21:27:40 +08:00
|
|
|
%124 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
|
|
|
|
%125 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
|
|
|
%126 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%127 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 0
|
|
|
|
|
store ptr @12, ptr %127, align 8
|
|
|
|
|
%128 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %126, i32 0, i32 1
|
|
|
|
|
store i64 7, ptr %128, align 4
|
|
|
|
|
%129 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %126, align 8
|
|
|
|
|
%130 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%131 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %130, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %131, align 8
|
|
|
|
|
%132 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %130, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %132, align 4
|
|
|
|
|
%133 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %130, align 8
|
|
|
|
|
%134 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 40)
|
|
|
|
|
%135 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %134)
|
|
|
|
|
%136 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %129, ptr %135, i64 0, %"github.com/goplus/llgo/internal/runtime.String" %133, i1 false)
|
|
|
|
|
%137 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%138 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 0
|
|
|
|
|
store ptr @13, ptr %138, align 8
|
|
|
|
|
%139 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %137, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %139, align 4
|
|
|
|
|
%140 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %137, align 8
|
|
|
|
|
%141 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%142 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %141, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %142, align 8
|
|
|
|
|
%143 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %141, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %143, align 4
|
|
|
|
|
%144 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %141, align 8
|
|
|
|
|
%145 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 34)
|
|
|
|
|
%146 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %145)
|
|
|
|
|
%147 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %140, ptr %146, i64 8, %"github.com/goplus/llgo/internal/runtime.String" %144, i1 false)
|
|
|
|
|
%148 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%149 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %148, i32 0, i32 0
|
|
|
|
|
store ptr @14, ptr %149, align 8
|
|
|
|
|
%150 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %148, i32 0, i32 1
|
|
|
|
|
store i64 5, ptr %150, align 4
|
|
|
|
|
%151 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %148, align 8
|
|
|
|
|
%152 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%153 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %152, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %153, align 8
|
|
|
|
|
%154 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %152, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %154, align 4
|
|
|
|
|
%155 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %152, align 8
|
|
|
|
|
%156 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 24)
|
|
|
|
|
%157 = call ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64 8, ptr %156)
|
|
|
|
|
%158 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %151, ptr %157, i64 72, %"github.com/goplus/llgo/internal/runtime.String" %155, i1 false)
|
|
|
|
|
%159 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%160 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %159, i32 0, i32 0
|
|
|
|
|
store ptr @15, ptr %160, align 8
|
|
|
|
|
%161 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %159, i32 0, i32 1
|
|
|
|
|
store i64 8, ptr %161, align 4
|
|
|
|
|
%162 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %159, align 8
|
|
|
|
|
%163 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%164 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %163, i32 0, i32 0
|
|
|
|
|
store ptr null, ptr %164, align 8
|
|
|
|
|
%165 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %163, i32 0, i32 1
|
|
|
|
|
store i64 0, ptr %165, align 4
|
|
|
|
|
%166 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %163, align 8
|
|
|
|
|
%167 = call ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64 58)
|
|
|
|
|
%168 = call %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String" %162, ptr %167, i64 200, %"github.com/goplus/llgo/internal/runtime.String" %166, i1 false)
|
|
|
|
|
%169 = alloca %"github.com/goplus/llgo/internal/runtime.String", align 8
|
|
|
|
|
%170 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %169, i32 0, i32 0
|
|
|
|
|
store ptr @3, ptr %170, align 8
|
|
|
|
|
%171 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.String", ptr %169, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %171, align 4
|
|
|
|
|
%172 = load %"github.com/goplus/llgo/internal/runtime.String", ptr %169, align 8
|
|
|
|
|
%173 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64 224)
|
|
|
|
|
%174 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %173, i64 0
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %136, ptr %174, align 8
|
|
|
|
|
%175 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %173, i64 1
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %147, ptr %175, align 8
|
|
|
|
|
%176 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %173, i64 2
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %158, ptr %176, align 8
|
|
|
|
|
%177 = getelementptr %"github.com/goplus/llgo/internal/abi.StructField", ptr %173, i64 3
|
|
|
|
|
store %"github.com/goplus/llgo/internal/abi.StructField" %168, ptr %177, align 8
|
|
|
|
|
%178 = alloca %"github.com/goplus/llgo/internal/runtime.Slice", align 8
|
|
|
|
|
%179 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %178, i32 0, i32 0
|
|
|
|
|
store ptr %173, ptr %179, align 8
|
|
|
|
|
%180 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %178, i32 0, i32 1
|
|
|
|
|
store i64 4, ptr %180, align 4
|
|
|
|
|
%181 = getelementptr inbounds %"github.com/goplus/llgo/internal/runtime.Slice", ptr %178, i32 0, i32 2
|
|
|
|
|
store i64 4, ptr %181, align 4
|
|
|
|
|
%182 = load %"github.com/goplus/llgo/internal/runtime.Slice", ptr %178, align 8
|
|
|
|
|
%183 = call ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String" %172, i64 208, %"github.com/goplus/llgo/internal/runtime.Slice" %182)
|
|
|
|
|
%184 = call ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr %124, ptr %125, ptr %183, i64 4)
|
|
|
|
|
call void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr %184)
|
|
|
|
|
store ptr %184, ptr @"map[_llgo_int]_llgo_string", align 8
|
2024-07-07 20:30:02 +08:00
|
|
|
br label %_llgo_18
|
|
|
|
|
|
|
|
|
|
_llgo_18: ; preds = %_llgo_17, %_llgo_16
|
2024-06-13 09:40:41 +08:00
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Basic"(i64)
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocU"(i64)
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.Panic"(%"github.com/goplus/llgo/internal/runtime.eface")
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
|
|
|
|
|
2024-06-17 19:30:59 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintInt"(i64)
|
2024-06-13 09:40:41 +08:00
|
|
|
|
2024-06-17 19:30:59 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.PrintByte"(i8)
|
2024-06-13 09:40:41 +08:00
|
|
|
|
2024-09-14 15:46:34 +08:00
|
|
|
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
|
|
|
|
|
declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
declare i1 @"github.com/goplus/llgo/internal/runtime.StringEqual"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String")
|
|
|
|
|
|
|
|
|
|
declare i1 @"github.com/goplus/llgo/internal/runtime.EfaceEqual"(%"github.com/goplus/llgo/internal/runtime.eface", %"github.com/goplus/llgo/internal/runtime.eface")
|
|
|
|
|
|
|
|
|
|
declare %"github.com/goplus/llgo/internal/runtime.Slice" @"github.com/goplus/llgo/internal/runtime.NewSlice3"(ptr, i64, i64, i64, i64, i64)
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Struct"(%"github.com/goplus/llgo/internal/runtime.String", i64, %"github.com/goplus/llgo/internal/runtime.Slice")
|
|
|
|
|
|
|
|
|
|
declare %"github.com/goplus/llgo/internal/abi.StructField" @"github.com/goplus/llgo/internal/runtime.StructField"(%"github.com/goplus/llgo/internal/runtime.String", ptr, i64, %"github.com/goplus/llgo/internal/runtime.String", i1)
|
|
|
|
|
|
2024-09-05 21:27:40 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.NewNamed"(%"github.com/goplus/llgo/internal/runtime.String", i64, i64, i64, i64)
|
2024-06-13 09:40:41 +08:00
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.Interface"(%"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.Slice")
|
|
|
|
|
|
|
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.InitNamed"(ptr, %"github.com/goplus/llgo/internal/runtime.String", %"github.com/goplus/llgo/internal/runtime.String", ptr, %"github.com/goplus/llgo/internal/runtime.Slice", %"github.com/goplus/llgo/internal/runtime.Slice")
|
|
|
|
|
|
2024-07-07 20:30:02 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.NewChan"(i64, i64)
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.MapOf"(ptr, ptr, ptr, i64)
|
|
|
|
|
|
|
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.ArrayOf"(i64, ptr)
|
|
|
|
|
|
2024-07-08 20:19:25 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.SetDirectIface"(ptr)
|
|
|
|
|
|
2024-07-07 20:30:02 +08:00
|
|
|
declare ptr @"github.com/goplus/llgo/internal/runtime.MakeMap"(ptr, i64)
|
|
|
|
|
|
2024-06-13 09:40:41 +08:00
|
|
|
declare void @"github.com/goplus/llgo/internal/runtime.init"()
|
2024-09-14 15:46:34 +08:00
|
|
|
|
|
|
|
|
attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
|