(command.CommandList children: [ (C {(set)} {(-e)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:buildDir spids:[45]) op: Equal rhs: {(../build)} spids: [45] ) ] spids: [45] ) (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 spids:[64]) op: Equal rhs: {($ VSub_Number '$1')} spids: [64] ) ] spids: [64] ) ] spids: [16777215 61] ) ] spids: [16777215 67] ) (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 '$('> spids: [76 83] ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test spids:[89]) 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 '$('> spids: [90 104] ) } spids: [89] ) ] spids: [89] ) (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)} ) ] spids: [16777215 123] ) ] spids: [16777215 139] ) (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)} ) ] spids: [16777215 158] ) ] spids: [16777215 174] ) (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)} ) ] spids: [16777215 191] ) ] spids: [16777215 208] ) ] spids: [86 210] ) spids: [75 84] ) (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 '$('> spids: [219 226] ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test spids:[232]) 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 '$('> spids: [233 247] ) } spids: [232] ) ] spids: [232] ) (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)}) ] spids: [229 303] ) spids: [218 227] ) ] )