next steps for guarded data flow analysis
This commit is contained in:
parent
8f97f3180a
commit
c156f2d493
7 changed files with 330 additions and 58 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
errormsg: "'y' is provably nil"
|
||||
line:22
|
||||
line:25
|
||||
"""
|
||||
|
||||
import strutils
|
||||
|
|
@ -15,6 +15,9 @@ proc q(x: pointer not nil) =
|
|||
|
||||
proc p() =
|
||||
var x: pointer
|
||||
if not x.isNil:
|
||||
q(x)
|
||||
|
||||
let y = x
|
||||
if not y.isNil:
|
||||
q(y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue