A chance of operation, the graph save trouble, pull the write wrong location variables directly selected moved to within a for loop, from the position of the global variable to the location of the local variable, after running the program is called the error,
Part of the problem is that variables, although it's location decision right now it should be a local variable, but it in the storage address determines it is still a global variable,
Function, therefore, is a global variables or local variables mainly depends on its address in the store, rather than a context,