(command.CommandList children: [ (C {(set)} {(-e)}) (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:buildDir) op:Equal rhs:{(../build)})] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-gt)} {(0)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:buildDir) op: Equal rhs: {($ VSub_Number '$1')} ) ] ) ] ) ] ) (command.ForEach iter_name: testSource iter_words: [ { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(ls)} {(-1)} {(Lit_Other '*') (.cc)})]) left_token: <Left_CommandSub '$('> ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ VSub_DollarName '$testSource')}) (C {(sed)} {(-e)} {(SQ <'s/\\.cc$//'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> ) } ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-x)} {($ VSub_DollarName '$buildDir') (/fuzz/) ($ VSub_DollarName '$test')} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('Failed to find binary for ') ($ VSub_DollarName '$test'))}) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(${ VSub_Name test) (_corpus)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('Failed to find corpus directory for ') ($ VSub_DollarName '$test'))} ) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-d)} {(${ VSub_Name test) (_corpus_old)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} { (DQ ('Old corpus directory for ') ($ VSub_DollarName '$test') (' already exists') ) } ) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) ] ) ] ) ) (command.ForEach iter_name: testSource iter_words: [ { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(ls)} {(-1)} {(Lit_Other '*') (.cc)})]) left_token: <Left_CommandSub '$('> ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ VSub_DollarName '$testSource')}) (C {(sed)} {(-e)} {(SQ <'s/\\.cc$//'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> ) } ) ] ) (C {(mv)} {(${ VSub_Name test) (_corpus)} {(${ VSub_Name test) (_corpus_old)}) (C {(mkdir)} {(${ VSub_Name test) (_corpus)}) (C {($ VSub_DollarName '$buildDir') (/fuzz/) ($ VSub_DollarName '$test')} {(-max_len) (Lit_Other '=') (50000)} {(-merge) (Lit_Other '=') (1)} {(${ VSub_Name test) (_corpus)} {(${ VSub_Name test) (_corpus_old)} ) (C {(rm)} {(-Rf)} {(${ VSub_Name test) (_corpus_old)}) ] ) ) ] )