@ -1,5 +1,5 @@
"""
"""
Module detecting state uninitialized storage variables
Module detecting uninitialized storage variables
Recursively explore the CFG to only report uninitialized storage variables that are
Recursively explore the CFG to only report uninitialized storage variables that are
written before being read
written before being read
@ -58,7 +58,7 @@ Bob calls `func`. As a result, `owner` is override to 0.
if self . key in father . context :
if self . key in father . context :
fathers_context + = father . context [ self . key ]
fathers_context + = father . context [ self . key ]
# Exclude path that dont bring further information
# Exclude paths that dont bring further information
if node in self . visited_all_paths :
if node in self . visited_all_paths :
if all ( f_c in self . visited_all_paths [ node ] for f_c in fathers_context ) :
if all ( f_c in self . visited_all_paths [ node ] for f_c in fathers_context ) :
return
return
@ -84,11 +84,11 @@ Bob calls `func`. As a result, `owner` is override to 0.
def _detect ( self ) :
def _detect ( self ) :
""" Detect uninitialized stat e variables
""" Detect uninitialized storag e variables
Recursively visit the calls
Recursively visit the calls
Returns :
Returns :
dict : [ contract name ] = set ( stat e variable uninitialized )
dict : [ contract name ] = set ( storag e variable uninitialized )
"""
"""
results = [ ]
results = [ ]