(command.CommandList children: [ (C {(Id.KW_Set set)} {(-e)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:buildDir) op: assign_op.Equal rhs: {(../build)} spids: [45] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {($ Id.VSub_Pound '$#')} {(-gt)} {(0)} {(Id.Lit_RBracket ']')}) terminator: (Token id:Id.Op_Semi val:';' span_id:59) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:buildDir) op: assign_op.Equal rhs: {($ Id.VSub_Number '$1')} spids: [64] ) ] ) ] spids: [48 61] ) ] ) (command.ForEach iter_name: testSource iter_words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:76) command_list: (command.CommandList children: [(C {(ls)} {(-1)} {(Id.Lit_Star '*') (.cc)})] ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:90) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ Id.VSub_DollarName '$testSource')}) (C {(sed)} {(-e)} {(SQ (Token id:Id.Lit_Chars val:'s/\\.cc$//' span_id:102))} ) ] negated: F ) ] ) ) } spids: [89] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(Id.KW_Bang '!')} {(-x)} {($ Id.VSub_DollarName '$buildDir') (/fuzz/) ($ Id.VSub_DollarName '$test')} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:121) ) ] action: [ (C {(echo)} {(DQ ('Failed to find binary for ') ($ Id.VSub_DollarName '$test'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:134) arg_word: {(1)} ) ] spids: [107 123] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(Id.KW_Bang '!')} {(-d)} {(${ Id.VSub_Name test) (_corpus)} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:156) ) ] action: [ (C {(echo)} {(DQ ('Failed to find corpus directory for ') ($ Id.VSub_DollarName '$test'))} ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:169) arg_word: {(1)} ) ] spids: [142 158] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(-d)} {(${ Id.VSub_Name test) (_corpus_old)} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:189) ) ] action: [ (C {(echo)} { (DQ ('Old corpus directory for ') ($ Id.VSub_DollarName '$test') (' already exists') ) } ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:203) arg_word: {(1)} ) ] spids: [177 191] ) ] ) ] ) ) (command.ForEach iter_name: testSource iter_words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:219) command_list: (command.CommandList children: [(C {(ls)} {(-1)} {(Id.Lit_Star '*') (.cc)})] ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:233) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ Id.VSub_DollarName '$testSource')}) (C {(sed)} {(-e)} {(SQ (Token id:Id.Lit_Chars val:'s/\\.cc$//' span_id:245))} ) ] negated: F ) ] ) ) } spids: [232] ) ] ) (C {(mv)} {(${ Id.VSub_Name test) (_corpus)} {(${ Id.VSub_Name test) (_corpus_old)}) (C {(mkdir)} {(${ Id.VSub_Name test) (_corpus)}) (C {($ Id.VSub_DollarName '$buildDir') (/fuzz/) ($ Id.VSub_DollarName '$test')} {(-max_len) (Id.Lit_Equals '=') (50000)} {(-merge) (Id.Lit_Equals '=') (1)} {(${ Id.VSub_Name test) (_corpus)} {(${ Id.VSub_Name test) (_corpus_old)} ) (C {(rm)} {(-Rf)} {(${ Id.VSub_Name test) (_corpus_old)}) ] ) ) ] )