<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> target_arches = { <EOL> '<STR_LIT>' , <EOL> } <EOL> def run_echo_haha ( arch ) : <EOL> p = angr . Project ( os . path . join ( test_location , arch , '<STR_LIT>' ) , use_sim_procedures = False ) <EOL> s = p . factory . full_init_state ( mode = '<STR_LIT>' , args = [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> pg = p . factory . path_group ( s ) <EOL> pg . step ( until = lambda lpg : len ( lpg . active ) != <NUM_LIT:1> ) <EOL> assert len ( pg . deadended ) == <NUM_LIT:1> <EOL> assert len ( pg . active ) == <NUM_LIT:0> <EOL> assert pg . deadended [ <NUM_LIT:0> ] . state . posix . dumps ( <NUM_LIT:1> ) == '<STR_LIT>' <EOL> def test_echo_haha ( ) : <EOL> for arch in target_arches : <EOL> yield run_echo_haha , arch <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> for r , a in test_echo_haha ( ) : <EOL> r ( a ) </s>
