(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _valgrind body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs:(lhs_expr.LhsName name:cur) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:prev) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:words) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:cword) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:split) op:Equal) ] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(lhs_expr.LhsName name:i) op:Equal)] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) cond: (arith_expr.ArithBinary op_id: Arith_LessEqual left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike COMP_CWORD>) ) update: (arith_expr.UnaryAssign op_id:Node_PostDPlus child:(lhs_expr.LhsName name:i)) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.BoolBinary op_id: BoolBinary_GlobNEqual left: { (word_part.BracedVarSub token: <VSub_Name COMP_WORDS> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) ) } right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{('[-=]')}] ) (Lit_Other '*') } ) right: (bool_expr.BoolBinary op_id: BoolBinary_GlobNEqual left: { (word_part.BracedVarSub token: <VSub_Name COMP_WORDS> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) right: (arith_expr.ArithWord w: {(Lit_Digits 1)} ) ) ) ) } right: {(BoolBinary_GlobEqual '=')} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_command_offset)} {($ VSub_DollarName '$i')}) (command.ControlFlow token: <ControlFlow_Return return> ) ] ) ] ) ] ) ) (command.Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(lhs_expr.LhsName name:tool) op:Equal)] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) cond: (arith_expr.ArithBinary op_id: Arith_Less left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) right: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Name words> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) ) } ) ) update: (arith_expr.UnaryAssign op_id:Node_PostDPlus child:(lhs_expr.LhsName name:i)) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) ) } right: {(--tool) (BoolBinary_GlobEqual '=') (Lit_Other '?') (Lit_Other '*') } ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tool) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) ) ) } ) ] ) (command.ControlFlow token: <ControlFlow_Break break> ) ] ) ] ) ] ) ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-h)} {(--help)} {(--help-debug)} {(--version)}] action: [(command.ControlFlow token:<ControlFlow_Return return>)] ) (case_arm pat_list: [{(--tool)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'$(\n'> < ' for f in /usr{,/local}/lib{,64}/valgrind/*; do\n' > <' [[ $f != *.so && -x $f ]] &&\n'> < ' sed -ne "s/^.*\\/\\(.*\\)-\\([^-]*\\)-\\([^-]*\\)/\\1/p" <<<$f\n' > <' done )'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(--sim-hints)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'lax-ioctls enable-outer'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(--soname-synonyms)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <somalloc>)} {(-S)} {(Lit_Other '=')} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(--kernel-variant)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <bproc>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(--callgrind-out-file)}] action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)] ) (case_arm pat_list: [{(--sort-by)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'max-bytes-live tot-bytes-allocd\n'> <' max-blocks-live'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(--time-unit)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'i ms B'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [ {(--) (word_part.ExtGlobPart op:<ExtGlob_Plus '+('> arms:[{('[-A-Za-z0-9_]')}])} ] action: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:value) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {($ VSub_Number '$1')} {(--help-debug)} {($ VSub_DollarName '$tool')} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-ne)} { (DQ ('s|^[') (Lit_Other '$') ("' ") (Lit_Other '\\') ("t']*") ($ VSub_DollarName '$prev') ('=') (Lit_Other '\\') ('([^') (Lit_Other '$') ("' ") (Lit_Other '\\') ("t']") (Lit_Other '\\') ('{1,') (Lit_Other '\\') ('}') (Lit_Other '\\') (').*|') (Lit_Other '\\') ('1|p') ) } ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> ) } ) ] ) (command.Case to_match: {($ VSub_DollarName '$value')} arms: [ (case_arm pat_list: [ {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (file) (Lit_Other '*') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\>'>) } ] action: [ (C {(_filedir)}) (command.ControlFlow token: <ControlFlow_Return return> ) ] ) (case_arm pat_list: [ {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (command) (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\>'> ) } ] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-c)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] ) (case_arm pat_list: [ {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [{('[0-9]')}] ) (..) (word_part.ExtGlobPart op:<ExtGlob_Plus '+('> arms:[{('[0-9]')}]) (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\>'> ) } ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ ('{') (word_part.BracedVarSub token: <VSub_Name value> suffix_op: (suffix_op.Slice begin: (arith_expr.ArithWord w: {(Lit_Digits 1)} ) length: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Name value> prefix_op: VSub_Pound ) } ) right: (arith_expr.ArithWord w: {(Lit_Digits 2)} ) ) ) ) ('}') ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] ) (case_arm pat_list: [ {(yes)} {(word_part.ExtGlobPart op:<ExtGlob_Plus '+('> arms:[{('[-a-z0-9]')}]) (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\|'> ) (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [ {('[-a-z0-9') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\|'> ) (']') } ] ) } ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand words: [ {(compgen)} {(-W)} {(SQ <'$value'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ] more_env: [(env_pair name:IFS val:{(SQ <'|'>)})] ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] ) ] ) ] ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$cur')} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" "--help $tool" )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_valgrind)} {(valgrind)}) ] )