-
公开(公告)号:US20240201968A1
公开(公告)日:2024-06-20
申请号:US18407383
申请日:2024-01-08
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Zhikang Liu , Lingfei Wu , Jinglei Lu , Ziming Xu , Chen Cheng
IPC: G06F8/41
CPC classification number: G06F8/4441
Abstract: This application discloses a program compilation method including: obtaining a first program, where the first program includes a plurality of layers of loop statements, a loop condition of each layer of loop statement in the plurality of layers of loop statements includes a variable and a value interval of the variable, and a loop body of the plurality of layers of loop statements includes at least one conditional statement; processing a value interval of a first variable in a first loop statement included in the plurality of layers of loop statements, to obtain a second loop statement; and compiling the first program based on at least one loop statement to obtain a compilation result of the first program.