<s> import angr <EOL> import logging <EOL> l = logging . getLogger ( "<STR_LIT>" ) <EOL> import os <EOL> test_location = str ( os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , '<STR_LIT>' ) ) <EOL> def test_block_cache ( ) : <EOL> p = angr . Project ( os . path . join ( test_location , "<STR_LIT>" , "<STR_LIT>" ) , translation_cache = True ) <EOL> b = p . factory . block ( p . entry ) <EOL> assert p . factory . block ( p . entry ) is b <EOL> p = angr . Project ( os . path . join ( test_location , "<STR_LIT>" , "<STR_LIT>" ) , translation_cache = False ) <EOL> b = p . factory . block ( p . entry ) <EOL> assert p . factory . block ( p . entry ) is not b <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_block_cache ( ) </s>
