#NEWLINE# def test_0( self ) : #NEWLINE# #INDENT# nodes = [ ] #NEWLINE# def wrap( i , node , th ) : #NEWLINE# #INDENT# nodes . append ( node . op ) #NEWLINE# #UNINDENT# ( x , y , z ) = inputs ( ) #NEWLINE# e = mul ( add ( x , y ) , div ( x , y ) ) #NEWLINE# ( fn , i , o ) = wrap_linker ( FunctionGraph ( [ x , y , z ] , [ e ] ) , [ PerformLinker ( allow_gc = False ) ] , wrap ) . make_thunk ( ) #NEWLINE# i [ 0 ] . data = 1 #NEWLINE# i [ 1 ] . data = 2 #NEWLINE# fn ( ) #NEWLINE# assert ( nodes == [ div , add , mul ] ) #NEWLINE# assert ( o [ 0 ] . data is None )