Detecting data race and atomicity violation via typestate-guided static analysis
AssigneeMicrosoft Corporation
InventorsYue Yang, Anna Gringauze, Dinghao Wu, Henning K. Rohde
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsYue Yang, Anna Gringauze, Dinghao Wu, Henning K. Rohde
Estimating the term…
Mechanisms for analyzing computer instructions implementing a program in which typestate analysis is informed by concurrency analysis. The concurrency-guided typestate analysis may simulate the “worst case” scenario due to thread interleaving by transitioning a simulated state of the variable to a special state whenever the variable is not guarded by its intended guarding lock. While in the special state, the analysis may assume that the state of the simulated variable is the worst possible state with respect to processing operations that may lead to an error depending on the state of the variable. Thus, the analysis performed may assume that referencing the variable in a state-dependent operation while the simulated state of the variable is in the special state may lead to an error, and the analysis may generate a warning, accordingly. The analysis may process the computer instructions to infer which lock is intended to guard a shared variable.
A method of analyzing computer instructions, the computer instructions specifying actions by a computer and the computer instructions implementing a program, the method comprising:
A computer-readable memory having stored therein computer-executable instructions for performing operations to analyze a representation of a computer program, the operations comprising:
Dependencies are inferred from the claim text.