Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Jan. 31, 2016
Jan. 25, 2015
Operating activities    
Net income $ 22,121 $ 4,560
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation 63,829 61,934
Amortization of intangible assets 6,503 6,539
Amortization of debt issuance costs 462 534
Stock-based compensation expense 35,677 34,194
Loss (gain) on sale or retirement of assets and asset disposal group (496) 704
Impairment of long-lived assets 1,901 5,767
Equity in earnings of equity method investment (950) (530)
Amortization of discount on 0.50% Convertible Senior Notes due 2033 7,156 6,819
Changes in operating assets and liabilities:    
Accounts receivable (28,150) 15,356
Inventories (1,786) (31,452)
Other assets 10,507 (18,432)
Accounts payable (270) 4,409
Accrued compensation 3,453 (11,748)
Other accrued liabilities 4,996 920
Deferred revenue 4,044 (5,081)
Net cash provided by operating activities 128,997 74,493
Investing activities    
Additions to property, equipment and improvements (99,514) (106,189)
Net proceeds from sale of property and equipment and asset disposal group 799 42
Purchases of short-term investments (185,821) (320,453)
Maturities of short-term investments 215,542 240,000
Acquisition, net of cash acquired 0 (2,728)
Net cash used in investing activities (68,994) (189,328)
Financing activities    
Repayments of term loans (216) (306)
Proceeds from the issuance of shares under equity plans and employee stock purchase plan 11,100 10,384
Net cash provided by financing activities 10,884 10,078
Net increase (decrease) in cash and cash equivalents 70,887 (104,757)
Cash and cash equivalents at beginning of period 197,443 303,101
Cash and cash equivalents at end of period 268,330 198,344
Supplemental disclosure of cash flow information    
Cash paid for interest 1,314 2,330
Cash paid for taxes 7,127 4,304
Supplemental disclosure of non-cash transactions    
Issuance of common stock upon conversion of 5.0% Convertible Senior Notes due 2029 $ 0 $ 40,015