{"pub_number":"US12379872B2","doc_number":"12379872","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Program detection method and apparatus","abstract_text":"A program detection method includes receiving a program provided by a user, and obtaining, based on a query parameter and the program, a result of the program running in a weak memory environment. The query parameter indicates a maximum interval between two operations on which reordering occurs and that are of the program.","claims":[{"number":1,"text":"A program detection method, comprising: receiving, from a user, a program running in a weak memory environment; calculating a first interval between a first operation in a first thread of the program and a second operation in the first thread, and a second interval between a third operation in a second thread of the program and a fourth operation in the second thread, wherein the first operation and the third operation are a first pair of read and write operations performed on a first variable, wherein the second operation and the fourth operation are a second pair of read and write operations","independent":true}],"description":"","inventors":[{"name":"Zhang Rutao","slug":"zhang-rutao","country":"CN"},{"name":"Zhou Qing","slug":"zhou-qing","country":"CN"}],"assignees":[{"name":"Huawei Tech Co Ltd","slug":"huawei-tech-co-ltd","country":"CN"}],"examiners":["Vo Ted T."],"cpc_codes":["G06F 11/3612","G06F 11/3632","G06F 11/3688","G06F 2201/81","G06F 3/0604","G06F 3/0659","G06F 3/0673","G06F 8/433","G06F 9/467"],"ipc_codes":["G06F 11/362","G06F 3/06","G06F 8/41","G06F 9/46"],"filing_date":"2023-06-27","pub_date":"2025-08-05","grant_date":"2025-08-05","priority_date":"2020-12-29","expiration_date":"2043-06-27","application_number":"US-202318342388-A","family_id":"FAM-82133018","family_members":[],"citations_made":[{"pub_number":"US5758051A","category":"SEA"},{"pub_number":"US5872990A","category":"APP"},{"pub_number":"US2006161897A1","category":"SEA"},{"pub_number":"CN101939724A","category":"APP"},{"pub_number":"US8510604B2","category":"SEA"},{"pub_number":"US8813038B2","category":"SEA"},{"pub_number":"CN104050043A","category":"APP"},{"pub_number":"CN104137081A","category":"APP"},{"pub_number":"US9432298B1","category":"SEA"},{"pub_number":"CN106201889A","category":"APP"},{"pub_number":"CN107861830A","category":"APP"},{"pub_number":"US10445094B2","category":"SEA"}],"non_patent_literature":["Brian Norris, et al., “CDSCHECKER: Checking Concurrent Data Structures Written with C/C++ Atomics” OOPSLA, Oct. 29-31, 2013, 19 pages.","Herb Sutter, ““Strong” and “weak” hardware memory models” , 2012, retrieved from https://herbsutter.com/2012/08/02/strong-and-weak-hardware-memory-models/, 1 page. (Year: 2012).","Herb Sutter, “Strong” and “weak” hardware memory models, Sutter's Mill, Aug. 2, 2012, 1 pages.","Jeff Preshing, “Deep Graph Matching and Searching for Semantic Code Retrieval”, 2019, https://web.archive.org/web/20190824043640/https://preshing.com/20120515/memory-reordering-caught-in-the-act/, 15 pages. (Year: 2019).","Manson et al., “The Java Memory Model”, 2005, ACM, 14 pages. (Year: 2005)."],"drawings_count":0,"source_id":"google_patents_public","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":12,"npl_citations":5,"citations_per_year":0.0,"pagerank":0.5550359487533569,"citation_rank":134458498,"pagerank_rank":134458498,"velocity_rank":134458498,"family_citations":0}}