next steps for guarded data flow analysis

This commit is contained in:
Araq 2013-06-11 00:31:40 +02:00
commit c156f2d493
7 changed files with 330 additions and 58 deletions

View file

@ -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)