DEVICE AND METHOD FOR PROGRAM REPAIR FOR TYPE ERRORS IN DYNAMICALLY TYPED LANGUAGE

    公开(公告)号:US20240320084A1

    公开(公告)日:2024-09-26

    申请号:US18602265

    申请日:2024-03-12

    CPC classification number: G06F11/0793 G06F11/3604

    Abstract: Disclosed is a device and method for automatically repairing type errors occurring in a dynamically typed language. A method of automatically repairing a type error refers to a method of automatically repairing a type error occurring in a dynamically typed language, performed by a computing device including a processor and includes acquiring a buggy program, a testcase, and error information; collecting a candidate variable in which a type error occurs; inferring a negative type that is a type of the candidate variable observed from a negative testcase and a positive type that is a type of the candidate variable observed from a positive testcase; estimating a fault location at which the type error occurs; generating a patch; and generating a fixed program by applying the patch to the buggy program, and the collecting of the candidate variable includes selecting a variable included in the error information as the candidate variable.

Patent Agency Ranking