检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:李显伟 潘伟丰[1] 王家乐[1] 潘云[1] 袁成祥[1] Li Xianwei;Pan Weifeng;Wang Jiale;Pan Yun;Yuan Chengxiang(School of Computer Science&Technology,Zhejiang Gongshang University,Hangzhou 310018,China)
机构地区:[1]浙江工商大学计算机科学与技术学院,杭州310018
出 处:《计算机应用研究》2023年第12期3545-3550,共6页Application Research of Computers
基 金:浙江省科技厅公益项目(LGF19F020007);国家自然科学基金资助项目(62272412,61976187);浙江省自然科学基金资助项目(LY22F020007)。
摘 要:针对现有智能合约缺陷预测方法未考虑合约代码内部结构对缺陷产生的影响的不足,提出了一种基于网络度量元的Solidity智能合约缺陷预测方法。首先,通过Solidity-Antlr4工具构建Solidity智能合约的抽象语法树(abstract syntax tree, AST);其次,根据抽象语法树构建合约网络,网络中的节点代表函数和属性,边代表函数间的调用关系和函数对属性的操作关系;然后,引入复杂网络领域的知识,构建了一套针对Solidity智能合约的网络度量元;最后,基于多种回归模型和分类模型构建智能合约缺陷预测模型,进而比较不同类型的度量元在Solidity智能合约缺陷预测方面的性能。数据实验表明,结合了网络度量元的缺陷预测模型的预测性能比相应没有结合网络度量元的模型要好。Existing smart contract defect prediction methods are not aware of the impact of the internal structure of contracts on defects prediction.To fill this gap,this paper proposed a novel Solidity smart contract defect prediction method based on a network metric suite.Firstly,it constructed the abstract syntax tree(AST)of the solidity smart contract by using the Solidity-Antlr4 tool.Secondly,it built the contract network based on the AST,with nodes representing functions and attributes,and edges representing the function-call relationship between functions and the operation relationship between functions and attri-butes.Then,it introduced the theory in the field of complex networks to build a network metric suite for Solidity smart contracts.Finally,it build smart contract defect prediction models based on multiple regression and classification models,and compared the performance of different metric in smart contract defect prediction.Comparative results show that defect prediction models combined with network metric suite outperform corresponding models without the network metric suite.
关 键 词:智能合约 软件缺陷预测 网络度量元集 SOLIDITY 抽象语法树
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.118.155.106