test: regenerate test files with gentests

This commit is contained in:
Li Jie
2025-01-13 10:38:46 +08:00
parent 85d01d6f28
commit f06d292382
110 changed files with 6107 additions and 6985 deletions

View File

@@ -1,7 +1,7 @@
; ModuleID = 'main'
source_filename = "main"
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testrt/tpabi'
source_filename = "github.com/goplus/llgo/compiler/cl/_testrt/tpabi"
%"main.T[string,int]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", i64 }
%"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", i64 }
%"github.com/goplus/llgo/runtime/internal/runtime.String" = type { ptr, i64 }
%"github.com/goplus/llgo/runtime/internal/runtime.eface" = type { ptr, ptr }
%"github.com/goplus/llgo/runtime/internal/runtime.iface" = type { ptr, ptr }
@@ -10,16 +10,14 @@ source_filename = "main"
%"github.com/goplus/llgo/runtime/abi.Method" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr, ptr, ptr }
%"github.com/goplus/llgo/runtime/abi.Imethod" = type { %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr }
@"main.init$guard" = global i1 false, align 1
@__llgo_argc = global i32 0, align 4
@__llgo_argv = global ptr null, align 8
@"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.init$guard" = global i1 false, align 1
@0 = private unnamed_addr constant [1 x i8] c"a", align 1
@"_llgo_main.T[string,int]" = linkonce global ptr null, align 8
@1 = private unnamed_addr constant [4 x i8] c"main", align 1
@"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" = linkonce global ptr null, align 8
@1 = private unnamed_addr constant [48 x i8] c"github.com/goplus/llgo/compiler/cl/_testrt/tpabi", align 1
@2 = private unnamed_addr constant [13 x i8] c"T[string,int]", align 1
@_llgo_string = linkonce global ptr null, align 8
@_llgo_int = linkonce global ptr null, align 8
@"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk" = linkonce global ptr null, align 8
@"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk" = linkonce global ptr null, align 8
@3 = private unnamed_addr constant [1 x i8] c"m", align 1
@4 = private unnamed_addr constant [1 x i8] c"n", align 1
@5 = private unnamed_addr constant [4 x i8] c"Demo", align 1
@@ -27,107 +25,103 @@ source_filename = "main"
@6 = private unnamed_addr constant [4 x i8] c"Info", align 1
@7 = private unnamed_addr constant [21 x i8] c"type assertion failed", align 1
@8 = private unnamed_addr constant [5 x i8] c"hello", align 1
@"*_llgo_main.T[string,int]" = linkonce global ptr null, align 8
@"*_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" = linkonce global ptr null, align 8
@"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs" = linkonce global ptr null, align 8
define void @main.init() {
define void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.init"() {
_llgo_0:
%0 = load i1, ptr @"main.init$guard", align 1
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.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"()
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.init$guard", align 1
call void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.init$after"()
br label %_llgo_2
_llgo_2: ; preds = %_llgo_1, %_llgo_0
ret void
}
define i32 @main(i32 %0, ptr %1) {
define void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.main"() {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = alloca %"main.T[string,int]", align 8
call void @llvm.memset(ptr %2, i8 0, i64 24, i1 false)
%3 = getelementptr inbounds %"main.T[string,int]", ptr %2, i32 0, i32 0
%4 = getelementptr inbounds %"main.T[string,int]", ptr %2, i32 0, i32 1
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 1 }, ptr %3, align 8
store i64 1, ptr %4, align 4
%5 = load %"main.T[string,int]", ptr %2, align 8
%6 = load ptr, ptr @"_llgo_main.T[string,int]", align 8
%7 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24)
store %"main.T[string,int]" %5, ptr %7, align 8
%8 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %6, 0
%9 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %8, ptr %7, 1
%10 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 0
%11 = load ptr, ptr @"_llgo_main.T[string,int]", align 8
%12 = icmp eq ptr %10, %11
br i1 %12, label %_llgo_1, label %_llgo_2
%0 = alloca %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
call void @llvm.memset(ptr %0, i8 0, i64 24, i1 false)
%1 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, i32 0, i32 0
%2 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, i32 0, i32 1
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @0, i64 1 }, ptr %1, align 8
store i64 1, ptr %2, align 4
%3 = load %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, align 8
%4 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
%5 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 24)
store %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" %3, ptr %5, align 8
%6 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %4, 0
%7 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %6, ptr %5, 1
%8 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, 0
%9 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
%10 = icmp eq ptr %8, %9
br i1 %10, label %_llgo_1, label %_llgo_2
_llgo_1: ; preds = %_llgo_0
%13 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %9, 1
%14 = load %"main.T[string,int]", ptr %13, align 8
%15 = extractvalue %"main.T[string,int]" %14, 0
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %15)
%11 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %7, 1
%12 = load %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %11, align 8
%13 = extractvalue %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" %12, 0
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %13)
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
%16 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24)
%17 = getelementptr inbounds %"main.T[string,int]", ptr %16, i32 0, i32 0
%18 = getelementptr inbounds %"main.T[string,int]", ptr %16, i32 0, i32 1
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 5 }, ptr %17, align 8
store i64 100, ptr %18, align 4
%19 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8
%20 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
%21 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
%22 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %21, ptr %19)
%23 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %22, 0
%24 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %23, ptr %16, 1
%25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %24)
%26 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %24, 0
%27 = getelementptr ptr, ptr %26, i64 3
%28 = load ptr, ptr %27, align 8
%29 = insertvalue { ptr, ptr } undef, ptr %28, 0
%30 = insertvalue { ptr, ptr } %29, ptr %25, 1
%31 = extractvalue { ptr, ptr } %30, 1
%32 = extractvalue { ptr, ptr } %30, 0
call void %32(ptr %31)
%33 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
%34 = getelementptr inbounds i64, ptr %33, i64 0
%35 = getelementptr inbounds i64, ptr %33, i64 1
%36 = getelementptr inbounds i64, ptr %33, i64 2
%37 = getelementptr inbounds i64, ptr %33, i64 3
store i64 1, ptr %34, align 4
store i64 2, ptr %35, align 4
store i64 3, ptr %36, align 4
store i64 4, ptr %37, align 4
%38 = getelementptr [4 x i64], ptr %33, i64 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %38)
%14 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 24)
%15 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %14, i32 0, i32 0
%16 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %14, i32 0, i32 1
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @8, i64 5 }, ptr %15, align 8
store i64 100, ptr %16, align 4
%17 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
%18 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
%19 = load ptr, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
%20 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewItab"(ptr %19, ptr %17)
%21 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" undef, ptr %20, 0
%22 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %21, ptr %14, 1
%23 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.IfacePtrData"(%"github.com/goplus/llgo/runtime/internal/runtime.iface" %22)
%24 = extractvalue %"github.com/goplus/llgo/runtime/internal/runtime.iface" %22, 0
%25 = getelementptr ptr, ptr %24, i64 3
%26 = load ptr, ptr %25, align 8
%27 = insertvalue { ptr, ptr } undef, ptr %26, 0
%28 = insertvalue { ptr, ptr } %27, ptr %23, 1
%29 = extractvalue { ptr, ptr } %28, 1
%30 = extractvalue { ptr, ptr } %28, 0
call void %30(ptr %29)
%31 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocZ"(i64 32)
%32 = getelementptr inbounds i64, ptr %31, i64 0
%33 = getelementptr inbounds i64, ptr %31, i64 1
%34 = getelementptr inbounds i64, ptr %31, i64 2
%35 = getelementptr inbounds i64, ptr %31, i64 3
store i64 1, ptr %32, align 4
store i64 2, ptr %33, align 4
store i64 3, ptr %34, align 4
store i64 4, ptr %35, align 4
%36 = getelementptr [4 x i64], ptr %31, i64 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %36)
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
%39 = getelementptr [4 x i64], ptr %33, i64 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %39)
%37 = getelementptr [4 x i64], ptr %31, i64 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintPointer"(ptr %37)
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 10)
ret i32 0
ret void
_llgo_2: ; preds = %_llgo_0
%40 = load ptr, ptr @_llgo_string, align 8
%41 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %41, align 8
%42 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %40, 0
%43 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %42, ptr %41, 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %43)
%38 = load ptr, ptr @_llgo_string, align 8
%39 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 16)
store %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @7, i64 21 }, ptr %39, align 8
%40 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" undef, ptr %38, 0
%41 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.eface" %40, ptr %39, 1
call void @"github.com/goplus/llgo/runtime/internal/runtime.Panic"(%"github.com/goplus/llgo/runtime/internal/runtime.eface" %41)
unreachable
}
define linkonce void @"main.T[string,int].Info"(%"main.T[string,int]" %0) {
define linkonce void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int].Info"(%"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" %0) {
_llgo_0:
%1 = alloca %"main.T[string,int]", align 8
%1 = alloca %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
call void @llvm.memset(ptr %1, i8 0, i64 24, i1 false)
store %"main.T[string,int]" %0, ptr %1, align 8
%2 = getelementptr inbounds %"main.T[string,int]", ptr %1, i32 0, i32 0
store %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" %0, ptr %1, align 8
%2 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %1, i32 0, i32 0
%3 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %2, align 8
%4 = getelementptr inbounds %"main.T[string,int]", ptr %1, i32 0, i32 1
%4 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %1, i32 0, i32 1
%5 = load i64, ptr %4, align 4
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %3)
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
@@ -136,11 +130,11 @@ _llgo_0:
ret void
}
define linkonce void @"main.(*T[string,int]).Demo"(ptr %0) {
define linkonce void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Demo"(ptr %0) {
_llgo_0:
%1 = getelementptr inbounds %"main.T[string,int]", ptr %0, i32 0, i32 0
%1 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, i32 0, i32 0
%2 = load %"github.com/goplus/llgo/runtime/internal/runtime.String", ptr %1, align 8
%3 = getelementptr inbounds %"main.T[string,int]", ptr %0, i32 0, i32 1
%3 = getelementptr inbounds %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, i32 0, i32 1
%4 = load i64, ptr %3, align 4
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintString"(%"github.com/goplus/llgo/runtime/internal/runtime.String" %2)
call void @"github.com/goplus/llgo/runtime/internal/runtime.PrintByte"(i8 32)
@@ -149,27 +143,25 @@ _llgo_0:
ret void
}
define void @"main.(*T[string,int]).Info"(ptr %0) {
define void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Info"(ptr %0) {
_llgo_0:
%1 = load %"main.T[string,int]", ptr %0, align 8
call void @"main.T[string,int].Info"(%"main.T[string,int]" %1)
%1 = load %"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", ptr %0, align 8
call void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int].Info"(%"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]" %1)
ret void
}
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset(ptr nocapture writeonly, i8, i64, i1 immarg) #0
define void @"main.init$after"() {
define void @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.init$after"() {
_llgo_0:
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 13 }, i64 25, i64 24, i64 1, i64 2)
%1 = load ptr, ptr @"_llgo_main.T[string,int]", align 8
%0 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 13 }, i64 25, i64 24, i64 1, i64 2)
%1 = load ptr, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
%2 = icmp eq ptr %1, null
br i1 %2, label %_llgo_1, label %_llgo_2
_llgo_1: ; preds = %_llgo_0
store ptr %0, ptr @"_llgo_main.T[string,int]", align 8
store ptr %0, ptr @"_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
br label %_llgo_2
_llgo_2: ; preds = %_llgo_1, %_llgo_0
@@ -207,9 +199,9 @@ _llgo_6: ; preds = %_llgo_5, %_llgo_4
%18 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %15, 0
%19 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %18, i64 2, 1
%20 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %19, i64 2, 2
%21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20)
store ptr %21, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
%22 = load ptr, ptr @"main.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
%21 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Struct"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 48 }, i64 24, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %20)
store ptr %21, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
%22 = load ptr, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.struct$A2OTYqQyUOqOQ-i_F5iXeAKWtxeWGEuyeN7HCfULCDk", align 8
br i1 %2, label %_llgo_7, label %_llgo_8
_llgo_7: ; preds = %_llgo_6
@@ -218,8 +210,8 @@ _llgo_7: ; preds = %_llgo_6
br i1 %24, label %_llgo_9, label %_llgo_10
_llgo_8: ; preds = %_llgo_10, %_llgo_6
%25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 13 }, i64 25, i64 24, i64 1, i64 2)
%26 = load ptr, ptr @"*_llgo_main.T[string,int]", align 8
%25 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.NewNamed"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @2, i64 13 }, i64 25, i64 24, i64 1, i64 2)
%26 = load ptr, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %_llgo_11, label %_llgo_12
@@ -240,15 +232,15 @@ _llgo_9: ; preds = %_llgo_7
_llgo_10: ; preds = %_llgo_9, %_llgo_7
%37 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
%38 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @5, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %37, 1
%39 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %38, ptr @"main.(*T[string,int]).Demo", 2
%40 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %39, ptr @"main.(*T[string,int]).Demo", 3
%39 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %38, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Demo", 2
%40 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %39, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Demo", 3
%41 = load ptr, ptr @"_llgo_func$2_iS07vIlF2_rZqWB5eU0IvP_9HviM4MYZNkXZDvbac", align 8
%42 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1
%43 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %42, ptr @"main.(*T[string,int]).Info", 2
%44 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %43, ptr @"main.(*T[string,int]).Info", 3
%43 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %42, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Info", 2
%44 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %43, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Info", 3
%45 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" { %"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @6, i64 4 }, ptr undef, ptr undef, ptr undef }, ptr %41, 1
%46 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %45, ptr @"main.(*T[string,int]).Info", 2
%47 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %46, ptr @"main.T[string,int].Info", 3
%46 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %45, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.(*T[string,int]).Info", 2
%47 = insertvalue %"github.com/goplus/llgo/runtime/abi.Method" %46, ptr @"github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int].Info", 3
%48 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.AllocU"(i64 40)
%49 = getelementptr %"github.com/goplus/llgo/runtime/abi.Method", ptr %48, i64 0
store %"github.com/goplus/llgo/runtime/abi.Method" %47, ptr %49, align 8
@@ -269,7 +261,7 @@ _llgo_10: ; preds = %_llgo_9, %_llgo_7
_llgo_11: ; preds = %_llgo_8
%59 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.PointerTo"(ptr %25)
call void @"github.com/goplus/llgo/runtime/internal/runtime.SetDirectIface"(ptr %59)
store ptr %59, ptr @"*_llgo_main.T[string,int]", align 8
store ptr %59, ptr @"*_llgo_github.com/goplus/llgo/compiler/cl/_testrt/tpabi.T[string,int]", align 8
br label %_llgo_12
_llgo_12: ; preds = %_llgo_11, %_llgo_8
@@ -286,7 +278,7 @@ _llgo_13: ; preds = %_llgo_12
%66 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" undef, ptr %64, 0
%67 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %66, i64 1, 1
%68 = insertvalue %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %67, i64 1, 2
%69 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 4 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68)
%69 = call ptr @"github.com/goplus/llgo/runtime/internal/runtime.Interface"(%"github.com/goplus/llgo/runtime/internal/runtime.String" { ptr @1, i64 48 }, %"github.com/goplus/llgo/runtime/internal/runtime.Slice" %68)
store ptr %69, ptr @"_llgo_iface$BP0p_lUsEd-IbbtJVukGmgrdQkqzcoYzSiwgUvgFvUs", align 8
br label %_llgo_14