(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 spids:[13]) op: Equal spids: [13] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[15]) op: Equal spids: [15] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[17]) op: Equal spids: [17] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[19]) op: Equal spids: [19] ) (assign_pair lhs: (lhs_expr.LhsName name:split spids:[21]) op: Equal spids: [21] ) ] spids: [11] ) (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 spids:[36]) op:Equal spids:[36])] spids: [34] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[55]) 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 spids:[67]) ) 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> ) ) spids: [81 86] ) } right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{('[-=]')}] spids: [90 92] ) (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)} ) ) ) spids: [97 104] ) } right: {(BoolBinary_GlobEqual '=')} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_command_offset)} {($ VSub_DollarName '$i')}) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [16777215 113] ) ] spids: [16777215 124] ) ] spids: [74 127] ) ) (command.Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(lhs_expr.LhsName name:tool spids:[133]) op:Equal spids:[133])] spids: [131] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[140]) 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) spids: [149 155] ) } ) ) update: (arith_expr.UnaryAssign op_id: Node_PostDPlus child: (lhs_expr.LhsName name:i spids:[158]) ) 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> ) ) spids: [172 177] ) } 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 spids:[192]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) ) spids: [193 198] ) } spids: [192] ) ] spids: [192] ) (command.ControlFlow token: <ControlFlow_Break break> ) ] spids: [16777215 189] ) ] spids: [16777215 204] ) ] spids: [165 207] ) ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-h)} {(--help)} {(--help-debug)} {(--version)}] action: [(command.ControlFlow token:<ControlFlow_Return return>)] spids: [218 225 231 16777215] ) (case_arm pat_list: [{(--tool)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[246]) 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 '$('> spids: [249 269] ) } ] ) } spids: [246] ) ] spids: [246] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [234 235 277 16777215] ) (case_arm pat_list: [{(--sim-hints)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[284]) 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 '$('> spids: [287 303] ) } ] ) } spids: [284] ) ] spids: [284] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [280 281 311 16777215] ) (case_arm pat_list: [{(--soname-synonyms)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[318]) 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 '$('> spids: [321 341] ) } ] ) } spids: [318] ) ] spids: [318] ) (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>) ] spids: [314 315 369 16777215] ) (case_arm pat_list: [{(--kernel-variant)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[376]) 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 '$('> spids: [379 395] ) } ] ) } spids: [376] ) ] spids: [376] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [372 373 403 16777215] ) (case_arm pat_list: [{(--callgrind-out-file)}] action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [410 411 420 16777215] ) (case_arm pat_list: [{(--sort-by)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[431]) 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 '$('> spids: [434 451] ) } ] ) } spids: [431] ) ] spids: [431] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [427 428 459 16777215] ) (case_arm pat_list: [{(--time-unit)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[470]) 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 '$('> spids: [473 489] ) } ] ) } spids: [470] ) ] spids: [470] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [466 467 497 16777215] ) (case_arm pat_list: [ {(--) (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [{('[-A-Za-z0-9_]')}] spids: [505 507] ) } ] action: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:value spids:[513]) 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 '$('> spids: [514 557] ) } spids: [513] ) ] spids: [511] ) (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> ) ] spids: [567 571 580 16777215] ) (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 spids:[596]) 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 '$('> spids: [599 611] ) } ] ) } spids: [596] ) ] spids: [596] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [583 586 619 16777215] ) (case_arm pat_list: [ {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [{('[0-9]')}] spids: [623 625] ) (..) (word_part.ExtGlobPart op:<ExtGlob_Plus '+('> arms:[{('[0-9]')}] spids:[627 629]) (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\>'> ) } ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[634]) 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 spids: [652 655] ) } ) right: (arith_expr.ArithWord w: {(Lit_Digits 2)} ) ) ) spids: [645 660] ) ('}') ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [637 672] ) } ] ) } spids: [634] ) ] spids: [634] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [622 631 680 16777215] ) (case_arm pat_list: [ {(yes)} { (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [{('[-a-z0-9]')}] spids: [693 695] ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\|'>) (word_part.ExtGlobPart op: <ExtGlob_Plus '+('> arms: [ {('[-a-z0-9') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\|'> ) (']') } ] spids: [697 701] ) } ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[705]) 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 <'|'>)} spids: [710] ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [708 729] ) } ] ) } spids: [705] ) ] spids: [705] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [691 702 737 16777215] ) ] spids: [560 564 740] ) ] spids: [504 508 743 16777215] ) ] spids: [211 215 746] ) (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 spids:[775]) 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 '$('> spids: [778 796] ) } ] ) } spids: [775] ) ] spids: [775] ) (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>) ] spids: [16777215 772] ) ] spids: [16777215 824] ) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_valgrind)} {(valgrind)}) ] )